Igosuki / binance-rs-async

Async client for the Binance APIs
https://crates.io/crates/binance-rs-async
Other
171 stars 113 forks source link

Stop Loss Orders & Take Profit Orders for futures #105

Closed yongkangc closed 5 months ago

yongkangc commented 7 months ago

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?

KennyYanXM commented 6 months ago

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, }

Igosuki commented 5 months ago

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

Igosuki commented 5 months ago

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