How to use USDT to buy Bitcoin at the market price

Author: harecn, Created: 2021-05-12 09:08:00, Updated:

Buy ((-1, n) at the current market price According to the API documentation, n should be the value of the quoted currency (e.g. BTC_USDT transaction pair, n should be the value of USDT). If the USDT value is incorrectly entered and the BTC value is entered, the market price is successfully placed.


More

ktraderIf it's an accuracy issue, limit it to two digits with _N()

harecnIf you do multiple pairs of transactions, do you have to calculate each pair in advance?

The grassYou can change the price in advance.