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

Method reduce_margin

python/ccxt/ascendex.py:2951–2959  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected