简体   繁体   中英

Binance API quoteOrderQty

Problem with placing an order for spot trading in binance. I want to sell a currency and get another in the amount that I transfer by value. The API says :param quoteOrderQty: amount the user wants to spend (when buying) or receive (when selling) of the quote asset, applicable to MARKET orders (link ), that is, this is exactly the argument to which I pass the amount that I want to receive when selling. Example:

client.create_order(symbol="BUSDUSDT", side="sell", type="MARKET",
                                                     quoteOrderQty=15)

after executing it, I should receive 15 USDT , which doesn't happen. The order is filled and exactly 15 BUSD are sold , 14.9985 USDT are bought:)

在此处输入图像描述

What is the problem?

MARKET orders using quoteOrderQty specifies the amount the user wants to spend (when buying) or receive (when selling) the quote asset; the correct quantity will be determined based on the market liquidity and quoteOrderQty

By using quoteOrderQty for MARKET order, server will execute the order and fill as much as possible. But the final received quantity can be a little bit different than quoteOrderQty .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM