binance-exchange / node-binance-api

Node Binance API is an asynchronous node.js library for the Binance API designed to be easy to use.
MIT License
528 stars 145 forks source link

quoteOrderQty request sometimes not working on 100% buy market #222

Open donmezburak opened 3 years ago

donmezburak commented 3 years ago

Hello,

I am sending market buy request with 100% wallet USDT. However, api returns {"code":-2010,"msg":"Account has insufficient balance for requested action."}

example request:

symbol=ATOMUSDT&side=BUY&type=MARKET&quoteOrderQty=12&timestamp=1614205013494&recvWindow=5000&signature=xx

symbol=ATOMUSDT&side=BUY&type=MARKET&quoteOrderQty=13&timestamp=1614205013774&recvWindow=5000&signature=xx

Excepted result:

Api returns coins with value less than or equal to quoteOrderQty.