diff --git a/pybit/_v5_spot_margin_trade.py b/pybit/_v5_spot_margin_trade.py index 4433815..a6207eb 100644 --- a/pybit/_v5_spot_margin_trade.py +++ b/pybit/_v5_spot_margin_trade.py @@ -51,11 +51,11 @@ def spot_margin_trade_normal_get_margin_coin_info(self, **kwargs): Request results as dictionary. Additional information: - https://bybit-exchange.github.io/docs/v5/spot-margin-normal/switch-mode + https://bybit-exchange.github.io/docs/v5/spot-margin-normal/margin-data """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_MARGIN_COIN_INFO}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_MARGIN_COIN_INFO}", query=kwargs, ) @@ -70,7 +70,7 @@ def spot_margin_trade_normal_get_borrowable_coin_info(self, **kwargs): """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_BORROWABLE_COIN_INFO}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_BORROWABLE_COIN_INFO}", query=kwargs, ) @@ -88,7 +88,7 @@ def spot_margin_trade_normal_get_interest_quota(self, **kwargs): """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_INTEREST_QUOTA}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_INTEREST_QUOTA}", query=kwargs, auth=True, ) @@ -104,7 +104,7 @@ def spot_margin_trade_normal_get_loan_account_info(self, **kwargs): """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_LOAN_ACCOUNT_INFO}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_LOAN_ACCOUNT_INFO}", query=kwargs, auth=True, ) @@ -124,7 +124,7 @@ def spot_margin_trade_normal_borrow(self, **kwargs): """ return self._submit_request( method="POST", - path=f"{self.endpoint}{SpotMarginTrade.BORROW}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_BORROW}", query=kwargs, auth=True, ) @@ -143,7 +143,7 @@ def spot_margin_trade_normal_repay(self, **kwargs): """ return self._submit_request( method="POST", - path=f"{self.endpoint}{SpotMarginTrade.REPAY}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_REPAY}", query=kwargs, auth=True, ) @@ -159,7 +159,7 @@ def spot_margin_trade_normal_get_borrow_order_detail(self, **kwargs): """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_BORROW_ORDER_DETAIL}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_BORROW_ORDER_DETAIL}", query=kwargs, auth=True, ) @@ -175,7 +175,7 @@ def spot_margin_trade_normal_get_repayment_order_detail(self, **kwargs): """ return self._submit_request( method="GET", - path=f"{self.endpoint}{SpotMarginTrade.GET_REPAYMENT_ORDER_DETAIL}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_GET_REPAYMENT_ORDER_DETAIL}", query=kwargs, auth=True, ) @@ -194,7 +194,7 @@ def spot_margin_trade_normal_toggle_margin_trade(self, **kwargs): """ return self._submit_request( method="POST", - path=f"{self.endpoint}{SpotMarginTrade.TOGGLE_MARGIN_TRADE}", + path=f"{self.endpoint}{SpotMarginTrade.NORMAL_TOGGLE_MARGIN_TRADE}", query=kwargs, auth=True, )