Hello,
My question might be stupid but I’m trying to understand the quantity/values I got in my order response message.
I have implemented a small java code that get the latest BNB/BUSD ticker price and then issue an order to just buy BNB with 50 BUSD.
Here are my logs:
TickerPrice[symbol=BNBBUSD,price=547.00000000]
NewOrder
[symbol=BNBBUSD,
side=BUY,
type=MARKET,
timeInForce=,
quantity=0.09140768,
quoteOrderQty=50.0,
price=,
newClientOrderId=,
stopPrice=,
stopLimitPrice=,
icebergQty=,
newOrderRespType=FULL,
recvWindow=50000,
timestamp=1640462613811]
NewOrderResponse
[symbol=BNBBUSD,
orderId=1064271601,
clientOrderId=XXX,
transactTime=1640462613512,
price=0.00000000,
origQty=0.09100000,
executedQty=0.09100000,
status=FILLED,
timeInForce=GTC,
type=MARKET,
side=BUY,
fills=Trade[id=130077798,
symbol=,
price=547.10000000,
qty=0.09100000,
quoteQty=,
commission=0.00006825,
commissionAsset=BNB,
time=0,
buyer=false,
maker=false,
bestMatch=false,
orderId=]]
Estimated BNB quantity = 0.09140767824497258
Executed BNB quantity = 0.091
So as part of my estimation I want to buy 0.09140767824497258 of BNB at 547 BNB/BUSD with 50 BUSD
So in the worse case let say BNB/BUSD price climb to 547,1 at the moment I issue the order then I would expect 50/547,1 = 0,0913909705721075 BNB in the Response but I only get qty=0.09100000
I would be happy if someone could tell where I’m wrong with this simple Market Order?
Thanks