Self-hosted Chinese A-share stock screener with indicators, backtests and auto-trading
open sourceApache-2.0self-hostablefree
InStock (the myhhub/stock repository) is a self-hosted stock analysis system for China's A-share market and ETFs. It fetches daily market data into MySQL, computes more than 30 technical indicators with TA-Lib and pandas (MACD, KDJ, BOLL, RSI and others, matched to Tonghuashun's and Tongdaxin's results), identifies candlestick patterns and chip distribution, and screens stocks on over 200 fundamental, technical, news and popularity fields or built-in strategies. It backtests what the screens pick, keeps a watchlist, shows everything in a web UI, and has an optional auto-trading service that ships only a new-share subscription strategy and examples. It runs from source in Python or from a Docker image.
Problems it solves
- screen Chinese A-share stocks by technical indicators every day on my own server
- backtest which stock-picking strategy would have worked on A-shares
- spot candlestick patterns across the whole A-share market automatically
Features
- daily A-share and ETF data collection
- 30+ technical indicators
- candlestick pattern recognition
- chip distribution (CYQ)
- stock screening on 200+ fields
- strategy backtesting
- optional auto-trading service
- web UI
Limitations
- Covers China's A-share market and ETFs only.1
- It scrapes Eastmoney's pages, and its README suggests proxies and rotating account cookies to get past Eastmoney's rate limits.1
- The auto-trading service subscribes to new shares at 10:00 on trading days unless you remove that strategy or don't start the service.1
Alternatives
The same job
These do what InStock does.
- Daily Stock Analysis LLM-powered daily analysis of your stock watchlist, pushed to chat or email
- TradingAgents-CN Multi-agent LLM research assistant for China's A-share market, with natural-language stock screening and paper trading
- AI Hedge Fund Terminal app where AI investor agents paper-trade and backtest stock funds
