Skip to content

Commit

Permalink
Merge pull request #124 from bybit-exchange/woodliang
Browse files Browse the repository at this point in the history
fix normal margin trade enum name used
  • Loading branch information
dextertd authored Apr 18, 2023
2 parents 3b57cd7 + 09241ec commit 0cbd32e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pybit/_v5_spot_margin_trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand All @@ -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,
)

Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)
Expand All @@ -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,
)

0 comments on commit 0cbd32e

Please sign in to comment.