JKorf / OKX.Net

A C# .netstandard client library for the OKX REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/OKX.Net/
MIT License
28 stars 15 forks source link

error from GetAlgoOrderHistoryAsync #19

Closed dante1989 closed 8 months ago

dante1989 commented 8 months ago

When i use: ItemGetAllOrder = Await clientFutureOKX.UnifiedApi.Trading.GetAlgoOrderHistoryAsync(OKXOjectsOrderType_Algo.Trigger, OKX.Net.Enums.OKXAlgoOrderState.Live, instrumentType:=OKXInstrumentType.Swap, symbol:=Symbol) i got error: sourceIncorrect type of state

If use OKX.Net.Enums.OKXAlgoOrderState.Effective or OKX.Net.Enums.OKXAlgoOrderState.Canceled. It is ok

Please check OKXAlgoOrderState.Live

dante1989 commented 8 months ago

Sorry, i mistake: only State effective canceled order_failed