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

Method add_margin

python/ccxt/gate.py:6716–6728  ·  view source on GitHub ↗

add margin 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: amount of margin to add :param dic

(self, symbol: str, amount: float, params={})

Source from the content-addressed store, hash-verified

6714 return self.modify_margin_helper(symbol, -amount, params)
6715
6716 def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
6717 """
6718 add margin
6719
6720 https://www.gate.com/docs/developers/apiv4/en/#update-position-margin
6721 https://www.gate.com/docs/developers/apiv4/en/#update-position-margin-2
6722
6723 :param str symbol: unified market symbol
6724 :param float amount: amount of margin to add
6725 :param dict [params]: extra parameters specific to the exchange API endpoint
6726 :returns dict: a `margin structure <https://docs.ccxt.com/?id=margin-structure>`
6727 """
6728 return self.modify_margin_helper(symbol, amount, params)
6729
6730 def fetch_open_interest_history(self, symbol: str, timeframe='5m', since: Int = None, limit: Int = None, params={}):
6731 """

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected