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

Method add_margin

python/ccxt/hyperliquid.py:3640–3653  ·  view source on GitHub ↗

add margin https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin :param str symbol: unified market symbol :param float amount: amount of margin to add :param dict [params]: extra parameters specific to t

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

Source from the content-addressed store, hash-verified

3638 return response
3639
3640 def add_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3641 """
3642 add margin
3643
3644 https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
3645
3646 :param str symbol: unified market symbol
3647 :param float amount: amount of margin to add
3648 :param dict [params]: extra parameters specific to the exchange API endpoint
3649 :param str [params.vaultAddress]: the vault address
3650 :param str [params.subAccountAddress]: sub account user address
3651 :returns dict: a `margin structure <https://docs.ccxt.com/?id=margin-structure>`
3652 """
3653 return self.modify_margin_helper(symbol, amount, 'add', params)
3654
3655 def reduce_margin(self, symbol: str, amount: float, params={}) -> MarginModification:
3656 """

Callers

nothing calls this directly

Calls 1

modify_margin_helperMethod · 0.95

Tested by

no test coverage detected