Description
TradingBot is an open-source Python script for automated stock trading that works through the REST API of IG, a spread-betting broker. It is meant to run as a long-lived process that keeps analysing the markets you watch and takes actions when conditions you define are met. Its stated goal is to let you write a custom trading strategy with little effort, while the script handles the rest. You can choose the markets from a local file of IG epic IDs, from an IG watchlist, or through the API. Setup needs an IG API key, your account ID and optional demo credentials, stored in a .credentials file in the TradingBot config folder, and you can add a free AlphaVantage key for extra price data. It needs Python 3.10 or newer, and it can run in Docker. The author describes it as part academic project and part useful software. Using it on a live account carries real financial risk, so the README's demo-account setup is a sensible place to start.…
Highlights
- Custom trading strategy with little effort
- Uses the IG REST API and other price sources
- Markets from a file, an IG watchlist or the API
- Long-running process with optional Docker
- Requires Python 3.10 or newer
Ratings & Reviews
No ratings yet
Be the first to rate TradingBot.
People also visit
TradingBot FAQ
What is TradingBot?
A Python script that watches markets through the IG REST API and takes actions when conditions you set are met.
Which broker does it use?
IG, through its REST API. You need an API key, your spread-betting account ID and, optionally, demo credentials.
Can I test it without real money?
Yes. The README covers creating demo credentials for the IG demo account.
Do I need an AlphaVantage key?
No, it is optional. The README suggests requesting a free AlphaVantage key as an extra price data source.
Is it safe to use with a live account?
The README does not make that claim. Automated trading on a live account carries real financial risk, so review the code and test on a demo account first.
What are the best TradingBot alternatives?
Popular alternatives to TradingBot include Stock Bot, Hummingbot and Moonshot. See all TradingBot alternatives



