FTX CCXT
語法
<python>
- 掛單小數精度換算
symbol = 'BTC/USDT' ftx.load_markets() amount = 1.2345678 # amount in base currency BTC price = 87654.321 # price in quote currency USDT formatted_amount = ftx.amount_to_precision(symbol, amount) formatted_price = ftx.price_to_precision(symbol, price) print(formatted_amount, formatted_price) </python>