Skip to content

Commit

Permalink
feat: help message of market if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes committed Jul 31, 2024
1 parent 7ad765a commit d396d42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,8 @@ Options:
Specify the resolution of the historical data
--security-type [Equity|Index|Forex|Cfd|Future|Crypto|CryptoFuture|Option|IndexOption|Commodity|FutureOption]
Specify the security type of the historical data
--market TEXT Specify the market name for tickers (e.g., 'USA', 'NYMEX', 'Binance')
--market TEXT Specify the market name for tickers (e.g., 'USA', 'NYMEX', 'Binance') (if not provided
or empty the default market for the requested security type will be used)
--ticker TEXT Specify comma separated list of tickers to use for historical data request.
--start TEXT Specify the start date for the historical data request in the format yyyyMMdd.
--end TEXT Specify the end date for the historical data request in the format yyyyMMdd. (defaults
Expand Down
3 changes: 2 additions & 1 deletion lean/commands/data/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,8 @@ def _replace_data_type(ctx, param, value):
@option("--security-type", type=Choice(QCSecurityType.get_all_members(), case_sensitive=False),
help="Specify the security type of the historical data")
@option("--market", type=str,
help="Specify the market name for tickers (e.g., 'USA', 'NYMEX', 'Binance')")
help="Specify the market name for tickers (e.g., 'USA', 'NYMEX', 'Binance')"
" (if not provided or empty the default market for the requested security type will be used)")
@option("--ticker",
type=str,
help="Specify comma separated list of tickers to use for historical data request.")
Expand Down

0 comments on commit d396d42

Please sign in to comment.