Skip to content

Commit cca1bcf

Browse files
authored
LEAN CLI Tastytrade Brokerage support (#577)
* feat: support tastytrade * feat: support tastytrade * refactor: use general pattern to paper environment as another brokerages * refactor: tastytrade configs
1 parent a2343cb commit cca1bcf

1 file changed

Lines changed: 21 additions & 9 deletions

File tree

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Options:
165165
-d, --detach Run the backtest in a detached Docker container and return immediately
166166
--debug [pycharm|ptvsd|debugpy|vsdbg|rider|local-platform]
167167
Enable a certain debugging method (see --help for more information)
168-
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca]
168+
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca|Tastytrade]
169169
Update the Lean configuration file to retrieve data from the given historical provider
170170
--ib-user-name TEXT Your Interactive Brokers username
171171
--ib-account TEXT Your Interactive Brokers account id
@@ -233,6 +233,8 @@ Options:
233233
The TradeStation account Id
234234
--alpaca-environment [live|paper]
235235
Whether Live or Paper environment should be used
236+
--tastytrade-account-number TEXT
237+
The Tastytrade account number
236238
--download-data Update the Lean configuration file to download data from the QuantConnect API, alias
237239
for --data-provider-historical QuantConnect
238240
--data-purchase-limit INTEGER The maximum amount of QCC to spend on downloading data during the backtest when using
@@ -363,9 +365,9 @@ Usage: lean cloud live deploy [OPTIONS] PROJECT
363365
--notify-insights.
364366
365367
Options:
366-
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Bybit|TradeStation|Alpaca]
368+
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Bybit|TradeStation|Alpaca|Tastytrade]
367369
The brokerage to use
368-
--data-provider-live [QuantConnect|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Polygon|CoinApi|Bybit|TradeStation|Alpaca]
370+
--data-provider-live [QuantConnect|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Polygon|CoinApi|Bybit|TradeStation|Alpaca|Tastytrade]
369371
The live data provider to use
370372
--ib-user-name TEXT Your Interactive Brokers username
371373
--ib-account TEXT Your Interactive Brokers account id
@@ -453,6 +455,8 @@ Options:
453455
The TradeStation account Id
454456
--alpaca-environment [live|paper]
455457
Whether Live or Paper environment should be used
458+
--tastytrade-account-number TEXT
459+
The Tastytrade account number
456460
--polygon-api-key TEXT Your Polygon.io API Key
457461
--coinapi-api-key TEXT Your coinapi.io Api Key
458462
--coinapi-product [Free|Startup|Streamer|Professional|Enterprise]
@@ -860,7 +864,7 @@ Usage: lean data download [OPTIONS]
860864
https://www.quantconnect.com/datasets
861865
862866
Options:
863-
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca]
867+
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca|Tastytrade]
864868
The name of the downloader data provider.
865869
--ib-user-name TEXT Your Interactive Brokers username
866870
--ib-account TEXT Your Interactive Brokers account id
@@ -928,6 +932,8 @@ Options:
928932
The TradeStation account Id
929933
--alpaca-environment [live|paper]
930934
Whether Live or Paper environment should be used
935+
--tastytrade-account-number TEXT
936+
The Tastytrade account number
931937
--dataset TEXT The name of the dataset to download non-interactively
932938
--overwrite Overwrite existing local data
933939
-y, --yes Automatically confirm payment confirmation prompts
@@ -1296,11 +1302,11 @@ Options:
12961302
--environment TEXT The environment to use
12971303
--output DIRECTORY Directory to store results in (defaults to PROJECT/live/TIMESTAMP)
12981304
-d, --detach Run the live deployment in a detached Docker container and return immediately
1299-
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Bybit|TradeStation|Alpaca]
1305+
--brokerage [Paper Trading|Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|Bybit|TradeStation|Alpaca|Tastytrade]
13001306
The brokerage to use
1301-
--data-provider-live [Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|IQFeed|Polygon|CoinApi|ThetaData|Custom data only|Bybit|TradeStation|Alpaca]
1307+
--data-provider-live [Interactive Brokers|Tradier|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Zerodha|Samco|Terminal Link|Trading Technologies|Kraken|CharlesSchwab|IQFeed|Polygon|CoinApi|ThetaData|Custom data only|Bybit|TradeStation|Alpaca|Tastytrade]
13021308
The live data provider to use
1303-
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Bybit|TradeStation|Alpaca]
1309+
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Bybit|TradeStation|Alpaca|Tastytrade]
13041310
Update the Lean configuration file to retrieve data from the given historical provider
13051311
--ib-user-name TEXT Your Interactive Brokers username
13061312
--ib-account TEXT Your Interactive Brokers account id
@@ -1403,6 +1409,8 @@ Options:
14031409
The TradeStation account Id
14041410
--alpaca-environment [live|paper]
14051411
Whether Live or Paper environment should be used
1412+
--tastytrade-account-number TEXT
1413+
The Tastytrade account number
14061414
--ib-enable-delayed-streaming-data BOOLEAN
14071415
Whether delayed data may be used when your algorithm subscribes to a security you
14081416
don't have a market data subscription for (Optional).
@@ -1737,7 +1745,7 @@ Options:
17371745
--parameter <TEXT FLOAT FLOAT FLOAT>...
17381746
The 'parameter min max step' pairs configuring the parameters to optimize
17391747
--constraint TEXT The 'statistic operator value' pairs configuring the constraints of the optimization
1740-
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca]
1748+
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca|Tastytrade]
17411749
Update the Lean configuration file to retrieve data from the given historical provider
17421750
--download-data Update the Lean configuration file to download data from the QuantConnect API, alias
17431751
for --data-provider-historical QuantConnect
@@ -1818,6 +1826,8 @@ Options:
18181826
The TradeStation account Id
18191827
--alpaca-environment [live|paper]
18201828
Whether Live or Paper environment should be used
1829+
--tastytrade-account-number TEXT
1830+
The Tastytrade account number
18211831
--lean-config FILE The Lean configuration file that should be used (defaults to the nearest lean.json)
18221832
--verbose Enable debug logging
18231833
--help Show this message and exit.
@@ -1995,7 +2005,7 @@ Usage: lean research [OPTIONS] PROJECT
19952005
19962006
Options:
19972007
--port INTEGER The port to run Jupyter Lab on (defaults to 8888)
1998-
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca]
2008+
--data-provider-historical [Interactive Brokers|Oanda|Bitfinex|Coinbase Advanced Trade|Binance|Kraken|CharlesSchwab|IQFeed|Polygon|FactSet|AlphaVantage|CoinApi|ThetaData|QuantConnect|Local|Terminal Link|Bybit|TradeStation|Alpaca|Tastytrade]
19992009
Update the Lean configuration file to retrieve data from the given historical provider
20002010
--ib-user-name TEXT Your Interactive Brokers username
20012011
--ib-account TEXT Your Interactive Brokers account id
@@ -2063,6 +2073,8 @@ Options:
20632073
The TradeStation account Id
20642074
--alpaca-environment [live|paper]
20652075
Whether Live or Paper environment should be used
2076+
--tastytrade-account-number TEXT
2077+
The Tastytrade account number
20662078
--download-data Update the Lean configuration file to download data from the QuantConnect API, alias
20672079
for --data-provider-historical QuantConnect
20682080
--data-purchase-limit INTEGER The maximum amount of QCC to spend on downloading data during the research session

0 commit comments

Comments
 (0)