A-Share Retail Investors' 'Automatic Market Monitoring': No Cost, No Staring at Screens – What Makes Sequoia-X Worth 6,800 Saves?

marsbitPublished on 2026-09-08Last updated on 2026-09-08

Abstract

This article introduces Sequoia-X, a GitHub project with over 6,800 stars that provides A-share retail investors with an automated, free post-market stock screening tool. It solves the problems of manually screening thousands of stocks and accessing data by building a fully automated pipeline using Python. The system has three layers: * **Data Layer:** Uses the free, unlimited baostock API to incrementally update a local SQLite database with daily K-line data. * **Strategy Layer:** Core feature with 7 built-in quantitative strategies (including a modified Turtle Trading breakout strategy adapted for A-shares) that screen the entire market using vectorized pandas computations for speed. * **Notification Layer:** Sends results daily via Feishu (Lark) bot webhooks after the market closes. Key advantages highlighted are its use of free data sources, transparent and modifiable strategy logic, and fully automated workflow requiring only 2-3 minutes to run daily after initial setup. The author's engineering approach treats stock screening as a reliable message-passing system. The article emphasizes that the tool generates a "watchlist," not buy signals, and is presented as a modern Python engineering template that helps investors maintain discipline by automating repetitive screening tasks.

At 3:00 PM, the A-share market closes, freezing the K-line charts of over five thousand stocks. Retail investors open their trading software, flipping through K-lines, comparing patterns, and monitoring trading volumes, trying to pick out a few worthy of a second glance tomorrow from the pool of over five thousand candidates. But after checking five hundred, the remaining four and a half thousand are left to chance. The human brain is naturally ill-suited for processing vast amounts of information, and even worse at maintaining discipline when fatigued—and stock selection happens to require both.

Someone decided not to battle their own eyes any longer. They wrote the entire "post-market stock screening" process into code, threw it on GitHub, and named it Sequoia-X. In half a year, the project's stars grew from 3,000 to over 6,800, even hitting GitHub Trending in early September. What makes a Python tool for "automated post-market stock screening and Lark push notifications" attract so much attention? This article breaks it down: what problem it solves, how it works, the origin of its strategies, and how to get started quickly.

(Project Address: https://github.com/sngyai/Sequoia-X)

What You Need Isn't More Software, But an Assembly Line for Stock Selection

Retail investors face three major difficulties in stock selection. The first is quantity: manually covering over five thousand A-share stocks is an impossible task. The second is data: free APIs are either incomplete or rate-limited; paid ones cost thousands or tens of thousands; trying to scrape it yourself, East Money's anti-scraping mechanisms can drive your scripts mad. The third is time: monitoring technical patterns requires continuous attention, which office workers simply don't have. By the time they open their software after work, the patterns to watch have already played out.

Sequoia-X offers an engineering solution: transforming the entire process into an unattended assembly line. It uses baostock as the data source—free, no registration required, no rate limits; historical K-line data is pulled and stored in a local SQLite database, so the data is entirely yours; it runs automatically once after the market closes each day, scanning the entire market with 7 built-in technical pattern strategies, and pushes results to group chats via Lark Webhook. The next morning before the market opens, you just need to glance at your phone.

This model takes about 12 minutes for the initial backfill, and only 2-3 minutes for daily runs on subsequent trading days.

The project author, YangYuDong, has an interesting background. His GitHub showcases MQTT middleware, instant messaging services—a row of underlying infrastructure projects, all emphasizing "massive data, stability first". His approach to A-share quantitative trading is to design stock selection like a messaging system: data in, results out, all engineering in between. Sequoia-X has also undergone a complete rewrite: V1 primarily relied on akshare, feature-rich but dependent on web interfaces, plagued by constant anti-scraping and missing fields, often breaking mid-run; V2 switched to baostock and was rewritten to modern engineering standards—the "King's Return" at the beginning of the README is exactly that.

Dismantling the Production Line: Data, Strategy, Push

▲ System Architecture: The complete assembly line from data to push

The entire system is divided into three layers:

The data layer is the foundation. It pulls post-adjusted daily K-lines from baostock. Post-adjusted prices are benchmarked to the latest price; after rights and dividends adjustments, historical prices are proportionally adjusted. The benefit: when appending a new day's K-line, the new data maintains the same price basis as existing data in the database, avoiding isolated daily jumps. Thus, each day only requires adding the single new K-line, without re-pulling history: 8 processes run in parallel, incremental updates for the entire market take only 2-3 minutes. For comparison: a full re-pull takes over ten minutes; incrementally adding just one line per stock reduces data volume by a factor of over a hundred. "Initial full load, daily incremental" is the standard approach for local quantitative systems.

The strategy layer is the core. All 7 strategies perform vectorized calculations, using pandas' rolling windows for batch processing instead of looping through K-lines one by one. The code even explicitly prohibits "iterrows" as a performance red line. The reason for such rigor is simple: with over a million rows of data for the entire market, line-by-line Python loops would be agonizingly slow, while underlying C-language batch operations are dozens of times faster. Different coding approaches lead to vastly different performance—this is the hidden value of engineering capability in quant.

The notification layer handles the last mile. Each strategy can be bound to an independent Lark robot; Turtles push to the "Turtle" group, RPS pushes to the "RPS" group, each on its own track. The details are thoughtful: when pushing, the system queries baostock to retrieve the stock name—many similar projects only push a string of codes, leaving you to search for the company yourself. This kind of "finish the job" attention to detail is precisely the source of its reputation.

Choosing SQLite for storage is also pragmatic: a single-file database requiring no service installation, easy backup and migration—this "one person can maintain" lightweight approach fits personal projects perfectly.

▲ README directory structure

The A-Share Adapted Version of Classic Tactics

Architecture is the skeleton; strategy is the soul.

First, the flagship strategy: Turtle Breakout. In 1983, legendary trader Richard Dennis made a bet: can trading ability be trained? Starting with $400, he built a fortune worth hundreds of millions during a commodity bull market. He recruited 13 people with diverse backgrounds—professional gamblers and complete novices—from ads in the Wall Street Journal, trained them for two weeks, and gave each a real trading account worth millions.

Four years later, the "Turtles" achieved an average annual return of around 80%, proving that great traders could be trained with rules. The secret: enter when the price breaks above the highest point of the past 20 days, exit when it falls below the lowest point of the past 10 days. No prediction, just following. In 2007, student Curtis Faith wrote "The Complete TurtleTrader," becoming an introductory text for countless quants.

▲ Turtle Breakout: Closing price above the highest point of the past 20 days

Sequoia-X transplants these rules into the A-share market, adding three "defensive moves": Trading volume must exceed 100 million, ensuring liquidity; the daily candle must be a solid bullish candle, rejecting large bearish candles that gap up and close down; today's closing price must be higher than yesterday's, filtering out "false bullish candles" that surge intraday but fall back. Finally, sort by circulating market cap from largest to smallest, prioritizing large caps to reduce the risk of manipulation by hot money.

The code comments happen to record the origin of these defenses: "【New defensive condition】Reject Zhengzhou Coal & Electric-style large bearish candles that gap up and close down!"—clearly having been burned in practice, they wrote the lesson into the rule. Strategies aren't designed; they're forged by stepping on landmines.

▲ Turtle strategy source code: Three core selection conditions

The remaining 6 strategies can be understood at a glance with this table:

Among them, RPS Breakout is worth mentioning: originating from William O'Neil's "How to Make Money in Stocks," it only buys stocks with high relative strength rankings—those outperforming the market tend to continue doing so, embodying momentum thinking. Private Placement Monitoring, however, is not a technical pattern at all, but event-driven: watching announcements for signals. The 7 strategies cover four dimensions: trend, pattern, sentiment, and events, ensuring if one area is dim, another might shine.

You'll notice a pattern: none of these strategies predict "whether it will rise tomorrow"; they only answer one question—"who should we focus our attention on right now." Replacing "guess" with "filter" is precisely the fundamental difference between quantitative methods and trading based on gut feeling.

Three Steps to Get It Running: For Those Who Want to Get Hands-On

The entry barrier is lower than imagined; the only environment requirement is Python 3.10 or higher.

Step one, install dependencies. uv is recommended, one command does it:

Step two, configure push notifications. Copy .env.example to .env, fill in the Lark robot's Webhook address.

Step three, backfill data. Run python main.py --backfill to backfill historical data, then run python main.py daily to see results. Add a crontab scheduled task, and you won't even need to execute it manually:

Want to add your own strategy? It's not difficult either: inherit the BaseStrategy base class, implement a run() method that returns a stock list, then register it with one line in main.py, and you're done. The skeleton for data fetching, logging, and exception handling is all set up for you by the base class.

For industry insiders, it's also a "modern Python engineering exemplar": Configuration managed with Pydantic-settings, logging with rich for structured output, property-based testing with hypothesis, quality gates with ruff and pytest, dependencies locked with uv. AI's presence is even visible in the commit history—many commits are authored by claude. An experienced programmer plus an AI assistant sustains a 6,800-star project.

If you don't understand the code, that's okay too: data stored locally, strategies run automatically daily, results pushed to Lark—just think of it as a "stock screening assistant who works the night shift for you every day."

The popularity of Sequoia-X is less a victory of "stock selection" and more the convergence of three trends.

Trend one: The democratization of quant. Algorithmic trading is no longer exclusive to institutions; an ordinary computer and a free data source are enough to get started.

Trend two: The awakening of data sources. Free, unlimited APIs like baostock finally free individual developers from being repeatedly exploited over data.

Trend three: AI-assisted development becoming the norm. The collaborative division between the author and Claude exemplifies "one person being a whole team," and the over 6,800 Stars are votes of trust in this model.

Returning to the initial question: Why did it become popular? There are plenty of stock screening tools out there, each with its own rationale. But Sequoia-X offers a rare combination: free data source, transparent strategy logic, fully automated workflow, and source code you can modify yourself. It doesn't make decisions for you; it supplies the "information gap" and "discipline" needed to make decisions—and for retail investors, these two things are precisely the most expensive.

Finally, a practical word: Sequoia-X is a tool, not a money-printing machine. Technical patterns are games of probability; any strategy has periods of ineffectiveness. What it outputs is a "watchlist," not a "buy order." It's best to validate it with small positions for a while before increasing investment.

And discipline is precisely the scarcest resource in the hands of retail investors. ((This article was first published on Titanium Media APP, author | Silicon Valley Tech-news, editor | Jiao Yan))

Related Questions

QWhat is the core problem Sequoia-X aims to solve for A-share retail investors, and what is its primary solution?

ASequoia-X aims to solve three main difficulties for A-share retail investors: the overwhelming number of stocks (over 5000), the difficulty in accessing complete and reliable free market data, and the lack of time to continuously monitor technical patterns. Its primary solution is an automated, unattended 'assembly line' workflow. This system pulls free market data from baostock, stores it locally, runs seven technical pattern strategies on the entire market after the daily close, and automatically pushes the results via a Feishu (Lark) Webhook, requiring only a glance at the phone before the market opens.

QDescribe the three-layer system architecture of Sequoia-X as explained in the article.

AThe three-layer system architecture of Sequoia-X consists of: 1. **Data Layer (Foundation)**: Uses baostock to fetch and store adjusted daily K-line data in a local SQLite database. It employs an 'initial full-load, daily incremental' approach for efficient updates. 2. **Strategy Layer (Core)**: Implements seven quantitative technical strategies using vectorized calculations with pandas (avoiding slow row-by-row loops) for processing over a million rows of data efficiently. 3. **Notification Layer (Last Mile)**: Delivers results by pushing stock codes and names (looked up via baostock) to separate Feishu (Lark) chat groups configured for each specific strategy.

QWhat are the key defensive modifications made to the classic 'Turtle Trading' strategy in Sequoia-X for the A-share market?

AThe A-share adapted 'Turtle Trading' strategy in Sequoia-X adds three key defensive filters: 1. **Liquidity Check**: The daily trading volume must exceed 100 million RMB. 2. **Positive Candle**: The day's candlestick must be a solid bullish (yang) line, rejecting large bearish candles with high opens and low closes (specifically mentioned to avoid patterns like 'Zhengzhou Coal & Electric Power'). 3. **Upward Momentum**: Today's closing price must be higher than yesterday's, filtering out 'fake bullish' lines where prices intraday high but close lower. The final list is also sorted by market capitalization (largest first) to reduce manipulation risk.

QAccording to the article, what are the three underlying trends that contributed to Sequoia-X's popularity?

AThe article attributes Sequoia-X's popularity to the convergence of three trends: 1. **Democratization of Quantitative Trading**: Programmatic trading is no longer exclusive to institutions; a regular computer and free data sources are sufficient to start. 2. **Awakening of Data Sources**: The availability of free, unlimited-flow data interfaces like baostock prevents individual developers from being repeatedly exploited for data costs. 3. **AI-Assisted Development as the Norm**: The project exemplifies the 'one-person team' model, with the author collaborating with Claude (an AI assistant), and its 6800+ GitHub stars represent a vote of confidence in this development paradigm.

QWhat practical advice and disclaimer does the article provide regarding the use of Sequoia-X?

AThe article provides the practical advice that Sequoia-X is a tool, not a money-printing machine. It emphasizes that technical patterns are probabilistic, and any strategy has periods of ineffectiveness. The results generated by Sequoia-X are an 'observation list,' not a 'buy order.' Users are advised to validate the strategy with small positions first before increasing investment. The key value offered is in reducing the 'information gap' and enforcing 'discipline,' which are the most valuable yet scarce resources for retail investors.

Related Reads

Strategy stock sheds 5% amid MSCI index removal, Bitcoin sell-off

Strategy (Michael Saylor's Bitcoin treasury company) fell 6.49% on Thursday to close at $114.41, after MSCI confirmed the company's removal from its global equity indexes, compounded by a broader crypto market sell-off. The removal takes effect after the Nov. 30 market close and could trigger selling by index-tracking funds; JPMorgan previously estimated roughly $2.8 billion in potential selling pressure. Ryan Kirkley, CEO of Global Settlement Network, said the decision could distinguish Bitcoin treasury companies from traditional operating businesses and limit indirect crypto exposure for passive investors, noting that index inclusion had given ordinary passive investors leveraged Bitcoin exposure they never chose. He added it raises questions about whether such companies should be classified alongside traditional operating businesses, arguing that buying and holding an asset isn't an operating business but rather a fund that doesn't follow fund rules. In its Aug. 31 response to MSCI's proposed rules, Strategy called the changes a pretext for targeting digital asset treasury companies and downplayed the impact, saying MSCI-linked funds held about 13 million of its shares, just 3.1% of basic shares outstanding. The decline coincided with a broader crypto sell-off, with Bitcoin near $71,340, down 4.3% in 24 hours, and total crypto market capitalization down 3% to about $2.49 trillion.

cointelegraph1h ago

Strategy stock sheds 5% amid MSCI index removal, Bitcoin sell-off

cointelegraph1h ago

US Justice Department, business groups and DeFi firms challenge Illinois crypto tax

The US Department of Justice, business and financial industry groups, and a coalition of DeFi firms have backed a legal challenge to Illinois' 0.2% digital asset tax, arguing it unfairly targets crypto transactions and could impose taxes even without profit. The Justice Department filed a statement of interest, while the US Chamber of Commerce and SIFMA submitted an amicus filing. A coalition including Andreessen Horowitz, Paradigm, Uniswap and Aave Labs also filed a brief. The law, enacted in June, taxes the value of digital assets exchanged, transferred or stored regardless of profit. The Digital Chamber sued Illinois officials in July, followed by a separate challenge from the Blockchain Association and Crypto Council for Innovation in August. Originally set for Jan. 1, 2027, the tax was delayed to July 1, 2027. Illinois projected $60 million in fiscal year 2027 revenue. SIFMA and the Chamber warned the tax would affect banks, broker-dealers, custodians and asset managers nationwide, exposing them to compliance costs and burdening customers—someone who loses money owes the same tax as someone who profits, and moving assets between accounts could trigger tax without a sale or gain. They argued it discriminates against digital assets and may violate federal internet tax protections and constitutional interstate commerce requirements. The DOJ said the tax undermines federal efforts to promote crypto innovation, citing the Strategic Bitcoin Reserve and GENIUS Act. The DeFi coalition warned the rules could impose obligations on software developers and blockchain participants lacking customer information or control over funds.

cointelegraph2h ago

US Justice Department, business groups and DeFi firms challenge Illinois crypto tax

cointelegraph2h ago

DTCC Plans Solana Expansion as Wallet Rules Limit Access

DTCC plans to connect its tokenization service to Solana in the second half of 2027, allowing certain securities held by its DTC subsidiary to be converted into digital tokens on the network. Analysts say the move could attract more traditional financial institutions to Solana, which is known for fast transactions and low fees and had about $4.94 billion in total value locked as of Nov. 12. However, the impact may be limited by US regulatory rules. Alex Lin of Reforge noted that Solana's experience handling memecoin trading served as a public stress test, giving the network credibility to handle retail-scale volume reliably. Still, under a December 2025 SEC no-action letter, DTC participants must register wallets to hold tokenized securities, and tokens can only be transferred between registered wallets. Lin said the near-term impact is overstated because the tokens remain in a walled garden, inaccessible to permissionless retail and DeFi liquidity until regulators allow these assets to function as true onchain collateral. DTCC launched its tokenization service on the Canton Network and its private Besu network on Oct. 28, with 20 DTC participants signed on, though it has not said whether any plan to use Solana. Kha Nguyen of Birdeye said Solana has already seen growing demand for tokenized stocks, with trading volume reaching around $4.9 billion in H1 2026 and over 1 million accounts holding tokenized stocks by late September. However, broader Solana activity has slowed, with transactions down nearly 40%, DEX volume down 34.4%, and fees down 39%, while tokenized RWA value rose almost 7% to $4.76 billion. Nguyen said DTCC's integration would need banks, brokers, and issuers to actively issue, trade, and settle on Solana, with enough liquidity for large trades. He stressed that assets must be active rather than idle—traded around the clock, used as collateral, and earning yield. Lin agreed that long-term impact depends on where assets are used for secondary trading and collateral activity, not where they are issued.

cointelegraph2h ago

DTCC Plans Solana Expansion as Wallet Rules Limit Access

cointelegraph2h ago

Trading

Spot
活动图片