burakoner / OKX.Api

Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper
MIT License
39 stars 15 forks source link

How to place and Order w/ Attached Take Profit Order #63

Closed javedwahid closed 1 month ago

javedwahid commented 1 month ago

Hi,

Sorry, I wasn't sure where else to ask this question. I will say, that I really appreciate this library. It has made things a lot easier.

How do I place a Limit Order w/ an attached Take Profit Order at the same time?

I've looked at Trading.PlaceOrderAsync() & Algo.PlaceOrderAsync(), but I don't see how to attach the Take Profit Order. The OKX Api documentation refers to it as the "attachAlgoOrds" parameter when making the call.

javedwahid commented 1 month ago

Hi,

I'm sorry if I missed it, but was there an answer to my question?