QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
189 stars 101 forks source link

Not able to specify multiple data providers with the cloud live deploy command #432

Closed lifelonginvestor closed 3 months ago

lifelonginvestor commented 4 months ago

It was working before with the param ib-data-feed. I can set a list of data providers with comma as delimiter. The new param --data-provider-live won't work now. please fix if possible.

Usage: lean cloud live deploy [OPTIONS] PROJECT

Try 'lean cloud live deploy --help' for help or go to the following url for a list of common errors: https://www.lean.io/docs/v2/lean-cli/key-concepts/troubleshooting#02-Common-Errors

Error: Invalid value for '--data-provider-live': 'QuantConnect,Interactive Brokers' is not one of 'QuantConnect', 'Interactive Brokers', 'Tradier', 'Oanda', 'Bitfinex', 'Coinbase Advanced Trade', 'Binance', 'Zerodha', 'Samco', 'Terminal Link', 'Trading Technologies', 'Kraken', 'TDAmeritrade', 'Polygon', 'IEX', 'CoinApi', 'Bybit'.

Martin-Molinero commented 3 months ago

Hey @lifelonginvestor! The error is showing you the new possible expected values, before we only allowed very specific combinations, now it's generic.

codebycase commented 3 months ago

@Martin-Molinero How do I specify multiple providers then? Below is not working for me as I was trying to specify 2 providers with comma. What's the correct way to specify multiple providers.

'--data-provider-live': 'QuantConnect,Interactive Brokers'

Martin-Molinero commented 3 months ago

For example lean cloud live deploy 17354101 --data-provider-live QuantConnect --data-provider-live "interactive brokers"

codebycase commented 3 months ago

Thanks! it works.