add margin :param str symbol: unified market symbol :param float amount: amount of margin to add :param dict [params]: extra parameters specific to the exchange API endpoint :returns dict: a `margin structure `
(self, symbol: str, amount: float, params={})
| 2996 | return response |
| 2997 | |
| 2998 | def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 2999 | """ |
| 3000 | add margin |
| 3001 | :param str symbol: unified market symbol |
| 3002 | :param float amount: amount of margin to add |
| 3003 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 3004 | :returns dict: a `margin structure <https://docs.ccxt.com/?id=add-margin-structure>` |
| 3005 | """ |
| 3006 | request = { |
| 3007 | 'direction': 1, |
| 3008 | } |
| 3009 | return self.set_margin(symbol, amount, self.extend(request, params)) |
| 3010 | |
| 3011 | def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 3012 | """ |
nothing calls this directly
no test coverage detected