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

Method add_margin

python/ccxt/ascendex.py:2961–2969  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2959 return self.modify_margin_helper(symbol, -amount, 'reduce', params)
2960
2961 def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
2962 """
2963 add margin
2964 :param str symbol: unified market symbol
2965 :param float amount: amount of margin to add
2966 :param dict [params]: extra parameters specific to the exchange API endpoint
2967 :returns dict: a `margin structure <https://docs.ccxt.com/?id=margin-structure>`
2968 """
2969 return self.modify_margin_helper(symbol, amount, 'add', params)
2970
2971 def set_leverage(self, leverage: int, symbol: Str = None, params={}):
2972 """

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected