Welcome to the ThetaData Library repository! This library, built on .NET 6, provides seamless integration with the QuantConnect LEAN Algorithmic Trading Engine. It empowers users to interact with ThetaData's financial dataset to create powerful trading algorithms.
ThetaData Library is an open-source project written in C#, designed to simplify the process of accessing real-time and historical financial market data. With support for Options Data across all exchanges and low latency, it offers a comprehensive solution for algorithmic trading.
Seamlessly incorporate ThetaData into your trading strategies within the QuantConnect LEAN environment.
Access a wealth of financial data including real-time and historical information. Subscribe to different option contracts with various expiry dates, strikes, and rights.
Customize the library to suit your needs with flexible configuration options.
- Equity
- Equity Option
- Index
- Index Option
- Equity
- Equity Option
- Index - support tickers list
- IndexOption - support tickers list
Utilize the power of QuantConnect.LEAN CLI to test and optimize your trading algorithms in both backtest and research modes.
You can use the following command line arguments to launch the LEAN CLI pip project with ThetaData. For more detailed information, refer to the ThetaData documentation.
lean data download --data-provider-historical ThetaData --data-type Trade --resolution Daily --security-type Option --ticker NVDA,AMD --start 20240303 --end 20240404 --thetadata-subscription-plan Standard
lean backtest "My Project" --data-provider-historical ThetaData --thetadata-subscription-plan Standard
lean research "My Project" --data-provider-historical ThetaData --thetadata-subscription-plan Standard
lean live deploy "My Project" --data-provider-live ThetaData --thetadata-subscription-plan Standard --brokerage "Paper Trading"
Contributions to the project are highly encouraged! Feel free to open issues, submit pull requests, or contribute in any way you see fit.
To contribute to the ThetaData API Connector Library for .NET 6 within QuantConnect LEAN, follow these steps:
- Obtain ThetaData client and follow thier instaction to run client.
- Fork the Project: Fork the repository by clicking the "Fork" button at the top right of the GitHub page.
- Clone Your Forked Repository:
https://github.com/QuantConnect/Lean.DataSource.ThetaData.git
- Configuration:
- [optional] Set the thetadata-subscription-plan (by default: Free)
{
"thetadata-subscription-plan": ""
}
For detailed information on ThetaData's pricing plans, please refer to the ThetaData Pricing page.
For detailed documentation on how to use ThetaData Library, please visit documentation.
This project is licensed under the MIT License - see the LICENSE file for details.
Happy coding and algorithmic trading! 📈💻