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

Method add_margin

python/ccxt/lighter.py:2998–3009  ·  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

2996 return response
2997
2998 def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
2999 """
3000 add margin
3001 :param str symbol: unified market symbol
3002 :param float amount: amount of margin to add
3003 :param dict [params]: extra parameters specific to the exchange API endpoint
3004 :returns dict: a `margin structure <https://docs.ccxt.com/?id=add-margin-structure>`
3005 """
3006 request = {
3007 'direction': 1,
3008 }
3009 return self.set_margin(symbol, amount, self.extend(request, params))
3010
3011 def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3012 """

Callers

nothing calls this directly

Calls 2

set_marginMethod · 0.95
extendMethod · 0.45

Tested by

no test coverage detected