簡體   English   中英

精度超過為該資產定義的最大值。 幣安?

[英]Precision is over the maximum defined for this asset. Binance?

我的代碼

if side == "LONG" and client.futures_get_open_orders(symbol=symbol) == []:
    print(data)
    pos = "BUY"
    q = tbal / price

    q = round(q, 1)
    print(tbal)
    print(q)
    client.futures_change_leverage(symbol=symbol, leverage=info.laverage)
    buyorder = client.futures_create_order(symbol=symbol, side=pos, type="LIMIT", quantity=q, price=price, timeInForce="GTC")

錯誤:

binance.exceptions.BinanceAPIException: APIError(code=-1111): Precision is over the maximum defined for this asset.

我已經嘗試了一切,但它仍然無法正常工作

錯誤 1111 僅僅是因為您使用的價格高於允許的最大小數位數。

例如,如果 tickSize 返回 0.01,則該交易品種允許的最大小數位數為 2。

您需要從幣安交換信息端點獲取允許的 pricePrecision 對。

這是幣安文檔的鏈接

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM