Closed overstartup closed 2 years ago
i want to remove all algo orders, it seems there is an issue in converting. Could you please have a look at it?
api.GetAlgoOrderList(OkexAlgoOrderType.OCO,instrumentId:preOrder.Symbol );
But i got this error:
{: [115] Deserialize JsonSerializationException: Error setting value to 'ActualSide' on 'Okex.Net.RestObjects.Trade.OkexAlgoOrder'. data: { "code": "0", "data": [ { "activePx": "", "activePxType": "", "actualPx": "", "actualSide": "", "actualSz": "0", "algoId": "432333195139489792", "cTime": "1649348266083", "callbackRatio": "", "callbackSpread": "", "ccy": "", "ctVal": "0.1", "instId": "ETH-USDT-SWAP", "instType": "SWAP", "last": "3210.29", "lever": "20", "moveTriggerPx": "", "notionalUsd": "", "ordId": "0", "ordPx": "", "ordType": "oco", "posSide": "short", "pxLimit": "", "pxSpread": "", "pxVar": "", "side": "buy", "slOrdPx": "-1", "slTriggerPx": "3223.14", "slTriggerPxType": "last", "state": "live", "sz": "19", "szLimit": "", "tag": "", "tdMode": "isolated", "tgtCcy": "", "timeInterval": "", "tpOrdPx": "-1", "tpTriggerPx": "3176.89", "tpTriggerPxType": "last", "triggerPx": "", "triggerPxType": "", "triggerTime": "", "uly": "ETH-USDT" } ], "msg": "" } { "code": "0", "data": [ { "activePx": "", "activePxType": "", "actualPx": "", "actualSide": "", "actualSz": "0", "algoId": "432333195139489792", "cTime": "1649348266083", "callbackRatio": "", "callbackSpread": "", "ccy": "", "ctVal": "0.1", "instId": "ETH-USDT-SWAP", "instType": "SWAP", "last": "3210.29", "lever": "20", "moveTriggerPx": "", "notionalUsd": "", "ordId": "0", "ordPx": "", "ordType": "oco", "posSide": "short", "pxLimit": "", "pxSpread": "", "pxVar": "", "side": "buy", "slOrdPx": "-1", "slTriggerPx": "3223.14", "slTriggerPxType": "last", "state": "live", "sz": "19", "szLimit": "", "tag": "", "tdMode": "isolated", "tgtCcy": "", "timeInterval": "", "tpOrdPx": "-1", "tpTriggerPx": "3176.89", "tpTriggerPxType": "last", "triggerPx": "", "triggerPxType": "", "triggerTime": "", "uly": "ETH-USDT" } ], "msg": "" }}
Fixed in 5.2.4 and 5.2.5
i want to remove all algo orders, it seems there is an issue in converting. Could you please have a look at it?
api.GetAlgoOrderList(OkexAlgoOrderType.OCO,instrumentId:preOrder.Symbol );
But i got this error: