Skip to content

Commit a0ec994

Browse files
authored
feat(client): add papi_get_portfolio_negative_balance_exchange_record (sammchardy#1547)
1 parent dba7a20 commit a0ec994

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

binance/async_client.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,6 +2601,13 @@ async def papi_get_portfolio_interest_history(self, **params):
26012601
"get", "portfolio/interest-history", signed=True, data=params
26022602
)
26032603

2604+
2605+
async def papi_get_portfolio_negative_balance_exchange_record(self, **params):
2606+
return await self._request_papi_api(
2607+
"get", "portfolio/negative-balance-exchange-record", signed=True, data=params
2608+
)
2609+
papi_get_portfolio_negative_balance_exchange_record.__doc__ = Client.papi_get_portfolio_negative_balance_exchange_record.__doc__
2610+
26042611
async def papi_fund_auto_collection(self, **params):
26052612
return await self._request_papi_api(
26062613
"post", "auto-collection", signed=True, data=params

binance/client.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9941,7 +9941,7 @@ def papi_repay_futures_negative_balance(self, **params):
99419941
)
99429942

99439943
def papi_get_portfolio_interest_history(self, **params):
9944-
"""GQuery interest history of negative balance for portfolio margin.
9944+
"""Query interest history of negative balance for portfolio margin.
99459945
99469946
https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-Portfolio-Margin-Negative-Balance-Interest-History
99479947
@@ -9955,6 +9955,22 @@ def papi_get_portfolio_interest_history(self, **params):
99559955
"get", "portfolio/interest-history", signed=True, data=params
99569956
)
99579957

9958+
9959+
def papi_get_portfolio_negative_balance_exchange_record(self, **params):
9960+
"""Query user negative balance auto exchange record.
9961+
9962+
https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Negative-Balance-Auto-Exchange-Record
9963+
9964+
:param recvWindow: optional
9965+
:type recvWindow: int
9966+
9967+
:returns: API response
9968+
9969+
"""
9970+
return self._request_papi_api(
9971+
"get", "portfolio/negative-balance-exchange-record", signed=True, data=params
9972+
)
9973+
99589974
def papi_fund_auto_collection(self, **params):
99599975
"""Fund collection for Portfolio Margin.
99609976

0 commit comments

Comments
 (0)