remove margin from a position :param str symbol: unified market symbol :param float amount: the amount of margin to remove :param dict [params]: extra parameters specific to the exchange API endpoint :returns dict: a `margin structure <https://docs.ccxt.com/?
(self, symbol: str, amount: float, params={})
| 2949 | } |
| 2950 | |
| 2951 | def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 2952 | """ |
| 2953 | remove margin from a position |
| 2954 | :param str symbol: unified market symbol |
| 2955 | :param float amount: the amount of margin to remove |
| 2956 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 2957 | :returns dict: a `margin structure <https://docs.ccxt.com/?id=margin-structure>` |
| 2958 | """ |
| 2959 | return self.modify_margin_helper(symbol, -amount, 'reduce', params) |
| 2960 | |
| 2961 | def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 2962 | """ |
nothing calls this directly
no test coverage detected