Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client): add papi_get_portfolio_negative_balance_exchange_record #1547

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -9860,7 +9860,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 @@ -9874,6 +9874,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
Loading