Hi Derek,
Thanks for the reply! Yes understand for live trading only support 1 connection. Mainly at the purpose for backtesting for now.
I added SPY (equity) and BTCUSD (crypto, market bitfinex which suppose to allow long & short order).
I did not specify the brokerageModel, thus should be the default brokerage model
self.symbols = [
Symbol.Create("SPY", SecurityType.Equity, Market.USA),
Symbol.Create("BTCUSD", SecurityType.Crypto, Market.Bitfinex),
]
When I try to short:
for symbol in self.symbols:
if not self.Portfolio[symbol].Invested:
self.SetHoldings(symbol, -0.5)
I get this error:
Backtest Handled Error: Unable to compute order quantity of BTCUSD. Reason: The cash model does not allow shorting. Returning null.
My short order for SPY went thru but not the one for BTCUSD.
Anyway to allow shorting for BTCUSD? I am willing to sacrifice the fidelity of the brokerage fees etc. Contemplating creating custom BTCUSD symbol and trading it..