Kucoin / kucoin-futures-python-sdk

MIT License
7 stars 3 forks source link

I get the following error: Error in placing position: 200-{"msg":"error.getOrder.orderIdLength","code":"100001"} #54

Open yfprime opened 1 month ago

yfprime commented 1 month ago

` order_details = trade_client.get_order_details(order_id) print(f"Response for order placement at market price: {order_details}")

    orderStatus = order_details['status']
    bPLst.append(order_details['price'])
    price = order_details['dealSize']
    current_cost = order_details['dealValue']
    if orderStatus == "done" and check_current_positions() == 1:
        print(f"Order Status at mark price: {orderStatus}")
        return price, order_id, current_cost, 0, bitcoin_size`

Where trade_client is Trade from kucoin_futures. This leads to the return statement returning a None type.

ISAAC-XXYYZZ commented 1 month ago

Please provide more detailed code. I just tested it, and it worked perfectly without any issues