币安交易机器人python

时间:2021-04-25 22:49:36

标签: python python-3.x bots trading

你能帮我解决这个问题吗?

order = client.create_test_order(
    symbol = symbolTicker,
    side = SIDE_BUY,
    type = ORDER_TYPE_LIMIT,
    quantity = quantity,
    price = price,
    timeInForce = "GTC")

orders = client.get_order(
    symbol="DOGEEUR",
    orderId="orderId")
print(orders)
Error: "binance.exceptions.BinanceAPIException: APIError(code=-1100): Illegal characters found in parameter 'orderId'; legal range is '^[0-9]{1,20}$'."

这是当我在 orderId 后放置 print(orders) 时引起的。对于不知道这是对 DOGEEUR 的测试订单的人,测试订单一切正常,但订单 ID 打印不出来。如何解决?

Python-binance 0.7.10 版和 python 3.8.3 版

0 个答案:

没有答案