我的代码
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.
我什么都试过了,但还是没有用
发布于 2022-06-13 14:30:24
错误1111仅仅是因为您使用的价格高于允许的最大小数位数。
例如,如果tickSize返回0.01,则该符号允许的最大小数位数为2。
发布于 2022-07-07 00:07:18
您需要从二进制交换信息端点获得允许的对pricePrecision。
https://stackoverflow.com/questions/72602610
复制相似问题