Closed vjache closed 2 months ago
Hi there, I'm using pybit, but possibly problem related to exchange service itself. I'm using API V5.
In order stream, I'm receiving the orderStatus as 'Cancelled' but not 'Canceled'.
{'topic': 'order', 'id': '57824774-22000-21679246025', 'creationTime': 1703606238157, 'data': [{'category': 'spot', 'symbol': 'DOGEUSDT', 'orderId': '1584349189335418625', 'orderLinkId': 'e491105d-a404-11ee-b73a-5cc336e5d1af', 'blockTradeId': '', 'side': 'Sell', 'positionIdx': 0, 'orderStatus': 'Cancelled', 'cancelType': 'CancelByUser', 'rejectReason': 'EC_PerCancelRequest', 'timeInForce': 'GTC', 'isLeverage': '0', 'price': '0.09284', 'qty': '10.0', 'avgPrice': '', 'leavesQty': '10.0', 'leavesValue': '0.928400', 'cumExecQty': '0.0', 'cumExecValue': '0.000000', 'cumExecFee': '0', 'orderType': 'Limit', 'stopOrderType': '', 'orderIv': '', 'triggerPrice': '0.00000', 'takeProfit': '0.00000', 'stopLoss': '0.00000', 'triggerBy': '', 'tpTriggerBy': '', 'slTriggerBy': '', 'triggerDirection': 0, 'placeType': '', 'lastPriceOnCreated': '0.09232', 'closeOnTrigger': False, 'reduceOnly': False, 'smpGroup': 0, 'smpType': 'None', 'smpOrderId': '', 'marketUnit': '', 'createdTime': '1703605141261', 'updatedTime': '1703606238157', 'feeCurrency': ''}]}```
That matches the enum in the documentation. What's the problem? https://bybit-exchange.github.io/docs/v5/enum#orderstatus
Hi there, I'm using pybit, but possibly problem related to exchange service itself. I'm using API V5.
In order stream, I'm receiving the orderStatus as 'Cancelled' but not 'Canceled'.