create an order in usdt

I’m trying to deal with binance api using python binance library
Please tell me if I have only usdt in my wallet and if I send an order like
order = client.order_market_buy(symbol='XRPUSDT ', quantity=100)
100 means I want to buy XRP with 100 USDT or does it mean I am trying to buy 100 XRP
Sorry for the stupid question, I’m not very clear on this point,
how do i buy a certain coin for a certain amount in USDT
Thanks

That means you want to buy 100XRP. Alternatively, if you want to buy 100 USDT worth of XRP, you can make use of the parameter quoteOrderQty. That parameter refers to the USDT amount.

1 Like

it’s more clear now, thanks