Skip to content

Commit

Permalink
Update Messaging Logging Required for Terminal Link Configuration (#361)
Browse files Browse the repository at this point in the history
* log messages for internal input type

* update readme
  • Loading branch information
rjra2611 authored Sep 21, 2023
1 parent d43621c commit b6e5585
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ Options:
Enable a certain debugging method (see --help for more information)
--data-provider [QuantConnect|Local|Terminal Link]
Update the Lean configuration file to retrieve data from the given provider
--terminal-link-connection-type [DAPI|SAPI]
Terminal Link Connection Type [DAPI, SAPI]
--terminal-link-auth-id TEXT The Auth ID of the TerminalLink server
--terminal-link-environment [Production|Beta]
The environment to run in
--terminal-link-server-host TEXT
Expand Down Expand Up @@ -262,7 +265,7 @@ Usage: lean cloud live deploy [OPTIONS] PROJECT
--notify-insights.
Options:
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Pro|Binance|Zerodha|Samco|Trading Technologies|Kraken|TDAmeritrade]
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Pro|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|TDAmeritrade]
The brokerage to use
--ib-user-name TEXT Your Interactive Brokers username
--ib-account TEXT Your Interactive Brokers account id
Expand All @@ -272,15 +275,14 @@ Options:
this time, and will require 2FA verification. This is required by Interactive Brokers.
Use this option explicitly to override the default value.
--ib-data-feed [QuantConnect|Interactive Brokers|QuantConnect + InteractiveBrokers]
The data feed to use. These are the available ones: Interactive Brokers price data
feed, QuantConnect price data feed or QuantConnect + InteractiveBrokers price data feed.
The available price data feeds are: Interactive Brokers price data feed, QuantConnect
price data feed or QuantConnect + InteractiveBrokers price data feed
--tradier-account-id TEXT Your Tradier account id
--tradier-access-token TEXT Your Tradier access token
--tradier-environment [live|paper]
Whether the developer sandbox should be used
--tradier-data-feed [QuantConnect|Tradier Brokerage]
The data feed to use. These are the available ones: QuantConnect price data feed or
Tradier Brokerage data feed.
Whether the Tradier data feed must be used instead of the QuantConnect price data feed
--oanda-account-id TEXT Your OANDA account id
--oanda-access-token TEXT Your OANDA API token
--oanda-environment [Practice|Trade]
Expand Down Expand Up @@ -319,6 +321,19 @@ Options:
--samco-trading-segment [equity|commodity]
EQUITY if you are trading equities on NSE or BSE, COMMODITY if you are trading
commodities on MCX
--terminal-link-auth-id TEXT The Auth ID of the TerminalLink server
--terminal-link-environment [Production|Beta]
The environment to run in
--terminal-link-server-host TEXT
The host of the SAPI server
--terminal-link-server-port INTEGER
The port of the SAPI server
--terminal-link-emsx-broker TEXT
The EMSX broker to use
--terminal-link-emsx-account TEXT
The EMSX account to use
--terminal-link-openfigi-api-key TEXT
The Open FIGI API key to use for mapping options
--tt-user-name TEXT Your Trading Technologies username
--tt-session-password TEXT Your Trading Technologies session password
--tt-account-name TEXT Your Trading Technologies account name
Expand Down Expand Up @@ -1043,6 +1058,9 @@ Options:
--samco-trading-segment [equity|commodity]
EQUITY if you are trading equities on NSE or BSE, COMMODITY if you are trading
commodities on MCX
--terminal-link-connection-type [DAPI|SAPI]
Terminal Link Connection Type [DAPI, SAPI]
--terminal-link-auth-id TEXT The Auth ID of the TerminalLink server
--terminal-link-environment [Production|Beta]
The environment to run in
--terminal-link-server-host TEXT
Expand Down Expand Up @@ -1495,6 +1513,9 @@ Options:
--port INTEGER The port to run Jupyter Lab on (defaults to 8888)
--data-provider [QuantConnect|Local|Terminal Link]
Update the Lean configuration file to retrieve data from the given provider
--terminal-link-connection-type [DAPI|SAPI]
Terminal Link Connection Type [DAPI, SAPI]
--terminal-link-auth-id TEXT The Auth ID of the TerminalLink server
--terminal-link-environment [Production|Beta]
The environment to run in
--terminal-link-server-host TEXT
Expand Down
5 changes: 3 additions & 2 deletions lean/models/json_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,15 @@ def build(self,
continue
if not configuration._is_required_from_user:
continue
if type(configuration) is InternalInputUserInput:
continue
if self.__class__.__name__ == 'CloudBrokerage' and not configuration._is_cloud_property:
continue
# Lets log messages for internal input configurations as well
if configuration._log_message is not None:
log_message = configuration._log_message.strip()
if log_message:
logger.info(log_message)
if type(configuration) is InternalInputUserInput:
continue

# filter properties that were not passed as command line arguments,
# so that we prompt the user for them only when they don't have a value in the Lean config
Expand Down

0 comments on commit b6e5585

Please sign in to comment.