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={})
| 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 | """ |
nothing calls this directly
no test coverage detected