Igosuki/binance-rs-async

Stop Loss Orders & Take Profit Orders for futures

yongkangc opened this issue · 3 comments

I love the api design so far. However, it is missing Stop Loss Orders & Take Profit Orders for futures contract. I was wondering if the reason that this is not being added was to keep the api design minimal?

just looked at the code of OrderType of futures, there has Stop/StopMarket/TakeProfit/TakeProfitMarket order types, so they should be already supported.

pub enum OrderType { Limit, Market, Stop, StopMarket, TakeProfit, TakeProfitMarket, TrailingStopMarket, }

Take profit and stop, stop market and trailing stop loss orders are supported, is there anything more you need from the current docs ? https://binance-docs.github.io/apidocs/futures/en/#public-endpoints-info

I am closing this issue as I think we got an answer, let me know if we need to reopen this for code changes.