Hi QC community,
I'm trying to backtest a long short strategy on Binance crypto data. I tried two brokerages but nothing worked:
1.
self.SetBrokerageModel(BrokerageName.QuantConnectBrokerage, AccountType.Margin)
The error I got was
Backtest Handled Error: Unable to compute order quantity of BTCUSDT. Reason: The cash model does not allow shorting. Returning null.
2.
Another thing I tried was using
self.SetBrokerageModel(BrokerageName.Bitfinex, AccountType.Margin)
The data I use must be from Market.Binance because it has higher data quality. When I use these two at the same time, I got a strange error
Backtest Handled Error: OrderID: 1 Warning - Code: NotSupported - The minimum order quantity for BTCUSDT is 10. Order quantity was -0.03449
It is ridiculous to ask for the order to be at least 10 BTC so I'd assume something is wrong.