burakoner / OKEx.Net

Open source .Net API wrapper for the @OKEx V5 Rest API and V5 Websocket API
MIT License
86 stars 48 forks source link

PlaceAlgoOrder issue #69

Closed arashreshadi closed 1 year ago

arashreshadi commented 2 years ago

Hi Dear Friends i have a problem with PlaceAlgoOrder? it just works in trigger mode and i can not set TP and sl prices. does anybody have a working sample? it just return 1 as error

Thanks Arash

burakoner commented 1 year ago

Fixed in version 5.2.6 Github Commit: https://github.com/burakoner/OKEx.Net/commit/de2a4cd1b698433cf112177900e68435d9f4484e Nuget Package: https://www.nuget.org/packages/OKEx.Net/5.2.6

arashreshadi commented 1 year ago

Tnx Dear Burakoner

do you have any sample for placealgoorder with TP and SL? I have updated to 5.2.6 but still not working and the status of the response is false. here is a sample : api.PlaceAlgoOrder( "XRP-USDT-SWAP", OkexTradeMode.Isolated, OkexOrderSide.Buy, OkexAlgoOrderType.Conditional, 200, null, false, OkexPositionSide.Long, null, OkexAlgoPriceType.Last, 0.24m, 0.25m, OkexAlgoPriceType.Last, 0.10m, 0.10m, 0.18m, 0.18m );