Binance API返回:APIError(代码=1013):筛选器失败:PRICE\u筛选器

2024-04-29 09:45:29 发布

您现在位置:Python中文网/ 问答频道 /正文

APIError(code=-1013): Filter failure: PRICE_FILTER

我想不出是什么错误。我发出此请求:

 order = self.client.create_order(
                symbol=symbol,
                side=side,
                timeInForce=TIME_IN_FORCE_GTC,
                type=order_type,
                quantity=quantity,
                price=price
            )

它通常是有效的,但偶尔会出现前面提到的错误

就我而言,数量和价格如下:

 quantity = 0.0003 
 price= 40022.4

有什么想法吗


Tags: selfclientfailuretype错误codeorderfilter
2条回答

此错误可能是因为在价格中指定的精度过高

error docs开始:

"Filter failure: PRICE_FILTER"

price is too high, too low, and/or not following the tick size rule for the symbol.

解决方案:调整price值,使其遵循过滤器中设置的规则。每对可以有不同的过滤器值。有关更多信息,请参阅RESTAPI文档的Filter部分

相关问题 更多 >