相关疑难解决方法(0)

在Python中截断为三位小数

我如何获得1324343032.324?

如下所示,以下内容不起作用:

>>1324343032.324325235 * 1000 / 1000
1324343032.3243253
>>int(1324343032.324325235 * 1000) / 1000.0
1324343032.3239999
>>round(int(1324343032.324325235 * 1000) / 1000.0,3)
1324343032.3239999
>>str(1324343032.3239999)
'1324343032.32'
Run Code Online (Sandbox Code Playgroud)

python

46
推荐指数
9
解决办法
11万
查看次数

python-Binance api:APIError(代码=-1013):过滤器失败:LOT_SIZE

尝试使用 python-binance api 下买或卖订单时,出现以下错误:

APIError(code=-1013): Filter failure: LOT_SIZE.
Run Code Online (Sandbox Code Playgroud)

现在我在iceberg_parts看到这意味着我的买卖数量可能有问题。我试图将数量增加 10 倍,但这只会给我另一个相关错误:

APIError(code=-1013): Filter failure: MIN_NOTIONAL.
Run Code Online (Sandbox Code Playgroud)

这是我的一些代码:

APIError(code=-1013): Filter failure: LOT_SIZE.
Run Code Online (Sandbox Code Playgroud)

你知道如何解决这个问题吗?

python api cryptocurrency binance

3
推荐指数
2
解决办法
2万
查看次数

标签 统计

python ×2

api ×1

binance ×1

cryptocurrency ×1