QuantConnect / Lean.Brokerages.Binance

Binance Brokerage Plugin
Apache License 2.0
2 stars 17 forks source link

Adds Support to StopMarketOrder #7

Open AlexCatarino opened 2 years ago

AlexCatarino commented 2 years ago

Expected Behavior

Supports StopMarketOrder.

Actual Behavior

In Lean we have the following message explaining why this implementation doesn't support StopMarketOrder: Despite Binance API allows you to post STOP_LOSS and TAKE_PROFIT order types, they always fail with the content {"code":-1013,"msg":"Take profit orders are not supported for this symbol."}

Potential Solution

N/A. Investigate whether this is still the case and why.

Checklist

AlexCatarino commented 1 year ago

We should add support to all types that Lean and Binance have in common.

fishstoryyy commented 5 months ago

Can I ask if there is an update on this? Agree with what Alex said in the issue description: Binance Futures API does support the following order types (see here):

LIMIT MARKET STOP STOP_MARKET TAKE_PROFIT TAKE_PROFIT_MARKET TRAILING_STOP_MARKET

I believe all of which are supported in Lean. Thanks.