FTX CCXT

出自TSK WIKI
於 2021年11月4日 (四) 20:18 由 Unknown user​(留言) 所做的修訂
跳至導覽 跳至搜尋
  • <php>

//掛單小數精度換算 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) </php>