Skip to content

Commit

Permalink
feat(client): add papi_get_portfolio_negative_balance_exchange_record (
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiei authored Jan 22, 2025
1 parent dba7a20 commit a0ec994
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
7 changes: 7 additions & 0 deletions binance/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2601,6 +2601,13 @@ async def papi_get_portfolio_interest_history(self, **params):
"get", "portfolio/interest-history", signed=True, data=params
)


async def papi_get_portfolio_negative_balance_exchange_record(self, **params):
return await self._request_papi_api(
"get", "portfolio/negative-balance-exchange-record", signed=True, data=params
)
papi_get_portfolio_negative_balance_exchange_record.__doc__ = Client.papi_get_portfolio_negative_balance_exchange_record.__doc__

async def papi_fund_auto_collection(self, **params):
return await self._request_papi_api(
"post", "auto-collection", signed=True, data=params
Expand Down
18 changes: 17 additions & 1 deletion binance/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9941,7 +9941,7 @@ def papi_repay_futures_negative_balance(self, **params):
)

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


def papi_get_portfolio_negative_balance_exchange_record(self, **params):
"""Query user negative balance auto exchange record.
https://developers.binance.com/docs/derivatives/portfolio-margin/account/Query-User-Negative-Balance-Auto-Exchange-Record
:param recvWindow: optional
:type recvWindow: int
:returns: API response
"""
return self._request_papi_api(
"get", "portfolio/negative-balance-exchange-record", signed=True, data=params
)

def papi_fund_auto_collection(self, **params):
"""Fund collection for Portfolio Margin.
Expand Down

0 comments on commit a0ec994

Please sign in to comment.