I'm trying to run a basic Crypto example with custom data on LEAN platform. By default it works ok, but I noticed fees are not calculated, therefor I added:

SetBrokerageModel(BrokerageName.GDAX, AccountType.Cash);

But, when I do that, I start getting errors:

20190330 22:22:38.345 ERROR:: Order Error: id: 2734, Insufficient buying power to complete order (Value:97897.68), Reason: The 'BTC' security is not supported by this cash model. Currently only SecurityType.Crypto and SecurityType.Forex are supported.

Another thing, when I set quantity to < 1 (e.g. 0.1), I get different error:

20190330 22:38:50.193 ERROR:: Unable to submit order with id -10 which quantity (0.1) is less than lot size (1).

By doing some code inspection, my first guess is that Data is not recognized ar Crypto, because AddData() doesn't specify this (<Crypto>), while AddCrypto() does:

public Security AddData<T>(string symbol, Resolution resolution = Resolution.Minute) where T : IBaseData, new() { return AddData<T>(symbol, resolution, fillDataForward: false, leverage: 1m); } public Crypto AddCrypto(string ticker, Resolution resolution = Resolution.Minute, string market = null, bool fillDataForward = true, decimal leverage = 0m) { return AddSecurity<Crypto>(SecurityType.Crypto, ticker, resolution, market, fillDataForward, leverage, false); }

Is there a way to sidestep this issue? Is there another working example?

Any help would be greatly appreciated. Thanks!