remove margin from a position https://www.gate.com/docs/developers/apiv4/en/#update-position-margin https://www.gate.com/docs/developers/apiv4/en/#update-position-margin-2 :param str symbol: unified market symbol :param float amount: the amount of margin to
(self, symbol: str, amount: float, params={})
| 6700 | } |
| 6701 | |
| 6702 | def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 6703 | """ |
| 6704 | remove margin from a position |
| 6705 | |
| 6706 | https://www.gate.com/docs/developers/apiv4/en/#update-position-margin |
| 6707 | https://www.gate.com/docs/developers/apiv4/en/#update-position-margin-2 |
| 6708 | |
| 6709 | :param str symbol: unified market symbol |
| 6710 | :param float amount: the amount of margin to remove |
| 6711 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 6712 | :returns dict: a `margin structure <https://docs.ccxt.com/?id=margin-structure>` |
| 6713 | """ |
| 6714 | return self.modify_margin_helper(symbol, -amount, params) |
| 6715 | |
| 6716 | def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification: |
| 6717 | """ |
nothing calls this directly
no test coverage detected