QuantConnect / lean-cli

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

How to stop this param --show-secrets? #431

Closed lifelonginvestor closed 2 months ago

lifelonginvestor commented 4 months ago

I observed the live deploy command is showing the credential secrets. How can I stop it to show the secrets. It won't work with param --show-secrets which should support boolean input. Please advise.

Martin-Molinero commented 4 months ago

Hey @lifelonginvestor! Can you please provide a screen shoot of the issue, so we know how to reproduce it, and fix it asap. See for example IB below is working correctly

image image
lifelonginvestor commented 4 months ago

I am using cloud live deploy, like below command:

As you can see at the bottom, it's printing out my username and password. I don't want them to be print out.

lean cloud live deploy "${ACCOUNT}" \
  --node "${ACCOUNT}" \
  --auto-restart yes \
  --notify-insights no \
  --notify-order-events no \
  --brokerage "Interactive Brokers" \
  --data-provider-live "${IB_DATA_FEED}" \
  --ib-weekly-restart-utc-time "22:00:00" \
  --ib-account "${ACCOUNT_ID}" \
  --ib-user-name "${USERNAME}" \
  --ib-password "${PASSWORD}"
[1/1] Pushing 'LifelongPaper'
Successfully updated name, files, and libraries for 'LifelongPaper'
[1/1] Pulling 'LifelongPaper'
Checking project status:
Project id: 17185028
Project name: LifelongPaper
Project url: https://www.quantconnect.com/project/17185028
Live status: Stopped
Live id: L-3bd12f07298e992c9ec3ca232db4d4d0
Live url: https://www.quantconnect.com/project/17185028/live
Brokerage: Interactive Brokers
Launched: 2024-03-07 11:28:39 UTC
Stopped: 2024-03-07 11:49:41 UTC
Please follow below steps to deploy and go live!
Started compiling project 'LifelongPaper'
Detected parameters: none
Build Request Successful for Project ID: 17185028, with CompileID: 94f4a91a73fe6cdef3cbf62e7b485552-3b9752cf51abda53834362f0617f78c8, Lean Version: 
2.5.0.0.16290
Successfully compiled project 'LifelongPaper'
To use IB with QuantConnect you must use IBKR Mobile. This is done from your IB Account Manage Account -> Settings -> User Settings -> Security -> Secure 
Login System. In the Secure Login System, select "IB Key Security via IBKR Mobile". Your account details are not saved on QuantConnect. Interactive 
Brokers Lite accounts do not support API trading.
Brokerage: {'id': 'InteractiveBrokersBrokerage', 'ib-agent-description': 'Individual', 'ib-trading-mode': 'paper', 'ib-user-name': '*****', 
'ib-account': '*****', 'ib-password': '******', 'ib-weekly-restart-utc-time': '22:00:00', 'live-mode-brokerage': 
'QuantConnect.Brokerages.InteractiveBrokers.InteractiveBrokersBrokerage'}
Project id: 17185028
Server name: LifelongPaper
Server type: L-MICRO
Live data providers: QuantConnectBrokerage
LEAN version: 16290
Order event notifications: No
Insight notifications: No
Automatic algorithm restarting: Yes
Live url: https://www.quantconnect.com/project/17185028/live