MCPcopy Create free account
hub / github.com/ccxt/ccxt / reduce_margin

Method reduce_margin

python/ccxt/gate.py:6702–6714  ·  view source on GitHub ↗

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={})

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected