Stocks & ETFs: 3 bot ideas you can copy
From long-term investing to systematic swing trading.
Notify me when new ideas land Free Telegram channel: new guides, comparisons and bot ideas.
Monthly rebalancing and DCA
Buys your ETFs on schedule and rebalances to target weights, with a report each month.
Earnings and gap scanner
Pre-market list of stocks gapping on earnings or news that match your filters.
Momentum rotation strategy
Ranks a universe each month and rotates into the strongest, fully backtested first.
Tools behind these ideas
Alpaca (alpaca-py)
Alpaca's official Python SDK to trade stocks, crypto and options via API and download market data.
ib_async (Interactive Brokers)
Python library to connect to Interactive Brokers through TWS or IB Gateway; successor of the popular ib_insync.
bt
Python library to backtest portfolio strategies (allocation, weighting, rebalancing) built from reusable building blocks.
Massive (formerly Polygon.io)
US stock, options, forex and crypto market data API; polygon.io now redirects to massive.com.
EODHD
Global financial data API (end-of-day, intraday, fundamentals, news) covering stocks, ETFs, forex and crypto from many exchanges.
Tiingo
Affordable financial data API with 30+ years of end-of-day prices on 110,000+ securities, fundamentals, crypto and news.
Guides to get started
How to place your first paper trade from Python with Alpaca (no real money)
Send a simulated order to a paper trading account with Alpaca's official Python SDK, step by step, before you ever think about a live account.
How to download historical stock prices to a CSV file with Python (yfinance)
Download free historical prices for stocks, ETFs or crypto with yfinance, save them as a CSV and know the limits before you build a backtest on them.
How to get a daily price summary on Telegram with Python (yfinance)
Receive one Telegram message a day with the latest closing prices of your watchlist: a short Python script with yfinance, the Telegram Bot API and cron.
Tool comparisons
PyBroker vs LumiBot vs bt: free Python frameworks for backtesting strategies
Three free Python frameworks compared: PyBroker for machine-learning strategies with walk-forward tests, LumiBot for going from backtest to paper trading and a broker, and bt for portfolio allocation and rebalancing. Licences, level and who each suits.
Finnhub vs Alpha Vantage vs Massive (Polygon.io): which market data API for your bot?
The Finnhub Python client, Alpha Vantage and Massive (formerly Polygon.io) compared side by side: coverage, free tier, licence, difficulty and who each one suits.
QuantConnect vs NautilusTrader vs Zipline Reloaded: which backtesting engine to learn?
A cloud lab with data included, a fast open-source engine and a respected classic compared: cost, licence, level, markets and who each backtesting platform suits.
Coming soon: custom bots
We are preparing a service to code, backtest and automate trading and statistics bots to your own rules. It is not available yet: follow our Telegram channel to know when it opens.
Frequently asked questions
What can a bot do in stocks & etfs?
Here are 3 ideas, from monthly rebalancing and dca to momentum rotation strategy. Each one shows an example message and the tools behind it.
Do I need to code?
Not always. Every tool page shows its level (beginner, intermediate or advanced), its licence and a source for each fact, so you can pick what fits your skills.
Which tool should I start with?
If you are new to this, start with the beginner-level tools behind these ideas: Alpaca (alpaca-py), EODHD, Tiingo. Open their review pages to see limits, licence and what to know first.
Are the tools free?
8 of the 8 tools behind these ideas are free, have a free plan or are open source. Plans change, so check the official website of each tool.
Can you build one for me?
Custom bots are coming soon. Follow our Telegram channel from the subscribe page and you will know when they open.
More areas: Crypto · Forex & CFDs · Futures & commodities · Options · Market statistics & research