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

Lean Engine skips api key & secret input and then exits #427

Closed symbion6 closed 4 months ago

symbion6 commented 4 months ago

Expected Behavior

When executing 'lean live', Lean Engine asks for the brokerage's API Key & Secret, after selecting a brokerage & data provider from the menu.

Actual Behavior

When executing 'lean live', Lean Engine does NOT ask for the brokerage's API Key & Secret, after selecting a brokerage & data provider from the menu.

The consequence is that the connection to the exchange cannot be made and Lean Engine exits with an error.

Potential Solution

Ask for the brokerage's API Key & Secret after selecting brokerage & data provider.

Reproducing the Problem

It will now show (in case of using Kraken as brokerage):

Configure credentials for Kraken Create an API key by logging in and accessing the Kraken API Management page (https://www.kraken.com/u/security/api).

....but will not actually give a prompt to input the key & secret, as it did before and should do.

System Information

Ubuntu 22.04 TLS

Checklist

Log

lean_log_excerpt_24022024.log

Martin-Molinero commented 4 months ago

See https://github.com/QuantConnect/lean-cli/issues/426