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

Method reduce_margin

python/ccxt/async_support/ascendex.py:2952–2960  ·  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

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

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected