Search code examples
apicryptocurrencybinance

Is there a way to put Binance API market buy orders in a way that decides the max buyable quantity itself and that I don't have to calculate it?


I want my buy order to be executed instantly at the market price and the quantity should be the max buyable quantity, I shouldn't have to calculate it like myBalance/coinPrice sort of thing. I want to know if we can do that using binance API.

Thanks!


Solution

  • There is a special field quoteOrderQty for MARKET binance order types, where you can put quote currency amount.