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

Feature request: Max Buy and Max Sell #39

Closed
nunoarruda opened this issue Sep 27, 2024 · 1 comment
Closed

Feature request: Max Buy and Max Sell #39

nunoarruda opened this issue Sep 27, 2024 · 1 comment

Comments

@nunoarruda
Copy link

The user-facing UI includes a feature where the amount is automatically calculated when setting a price:

max-buy-sell

Is there any chance that the Binance API or Binance libraries can implement this feature?

Thanks in advance 👍

@alplabin
Copy link
Contributor

alplabin commented Oct 7, 2024

Hey,
The Binance library serves as a software package to help users integrate Binance APIs into their projects. Since the feature you’ve requested isn’t part of the Binance APIs, it unfortunately cannot be added to the library.

However, I would suggest writing a custom script using the existing Binance API to calculate the maximum Buy and Sell amounts. You can use the Account Information API to retrieve your balance for the calculation. (TypeScript library: https://github.com/binance/binance-connector-typescript/blob/main/src/modules/restful/trade/trade.ts#L518)

@alplabin alplabin closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants