Quantity Market Order

I want to place a Market Order, using quantity as a parameter.
params = {
“symbol”: “ADAUSDT”,
“leverage”: “20”,
“side”: “BUY”,
“type”: “MARKET”,
“closePosition”: “FALSE”,
“quantity”: ???
“positionSide”: “LONG”,
“recvWindow”:“20000”
}
response = send_signed_requestlong(‘POST’, ‘/fapi/v1/order’, params)

Does anybody can explain me if quantity refers to an amount of coins or to pair (USDT)?

Regards,

Orlando Gautier

Hi. Quantity refers to the amount of the base asset, ADA in this case.
Btw, so far only SPOT trade allows input quoteOrderQty (the amount of quote asset, e.g. USDT) when placing an order.