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

Has the Time Come to Buy the Dip on Nvidia?

Nvidia announced on November 12 that Jensen Huang resigned as President, CEO, and Director, effective immediately. Shares fell as much as 14% intraday to $148.8, down nearly 40% from October highs, with over $600 billion in market value briefly erased. The founder's departure triggered the selloff, but the market is repricing the entire company rather than reacting to a single risk. Nvidia now trades at roughly 12x forward PE, its lowest in 15 years and below the S&P 500's ~18x, despite strong fundamentals: FY2026 revenue of $215.9 billion (+65%), data center revenue of $62.3 billion in a single quarter, ~75% gross margins, and Q2 FY2027 revenue of $96.2 billion with $21.3 billion free cash flow. Most investment banks cut targets but maintained Buy/Overweight ratings (Barclays $210, Goldman $220, Citi $225, RBC $230), implying ~20% upside, while Truist downgraded to Hold at $174. The consensus: the business is intact, but its valuation multiple needed resetting. Supporting demand, Huang forecast at GTC 2026 that Blackwell and Rubin AI chip demand would reach at least $1 trillion by 2027, double the prior 2026 estimate. However, risks remain beyond CEO succession. CUDA's lock-in effect is eroding on the inference side—Anthropic disclosed that its Claude Mythos Preview autonomously ported core GPU kernels to AMD flagship GPUs in three days with minimal human intervention, prompting investor Marcelo P. Lima's widely cited claim that "Nvidia's CUDA moat no longer exists." Supply bottlenecks lie in HBM and packaging, not wafers: TSMC can cut over 400 million GPU dies annually, but Nvidia ships only ~10 million GPUs yearly, constrained by HBM capacity (~3.75EB globally, ~70% allocated to Nvidia, ~260GB per GPU) and tight packaging, with HBM4 adjustments possibly delaying Rubin. Huang also leaves behind highly personalized assets—strategic technology judgment, supply chain negotiation with TSMC and SK Hynix, and direct channels to customers and governments—that interim CEO Colette Kress, the long-time CFO, may not fully replace. In short, the business remains, but the "faith premium" is being systematically stripped away. At 12x forward PE, much pessimism is priced in, offering a favorable risk-reward window if AI capex holds and demand materializes. Yet cheapness alone isn't sufficient: CUDA's erosion is slow but irreversible, HBM and packaging limit revenue upside, and succession uncertainty means the founder premium may not be fully removed. As Bernstein noted, "if you see two ants in the kitchen, there are more than two," warning that chains from scandal to governance vacuum to government probes could trigger further selloffs. Until the dust settles, what a Jensen-less Nvidia is worth remains an open question.

marsbit41m ago

Has the Time Come to Buy the Dip on Nvidia?

marsbit41m ago

AI Bull Market Trap? The Big Short Seller Strikes Again

Recent signals from Goldman Sachs, the Federal Reserve, and prominent short-seller Michael Burry are converging on concerns about the AI trade. Goldman warns that AI capital expenditure growth will likely peak in early 2027, with the boost to S&P 500 earnings falling from a 12-point peak in 2026 to a 5-point drag by 2028, shifting the market from a one-way rally to two-way volatility. The Fed has flagged AI as a potential threat to asset valuations and financial stability. Burry has doubled his Nasdaq 100 put options and rebuilt short positions in a semiconductor ETF, calling this a "bull market trap" analogous to the 2000 dot-com bubble, with Nvidia's influence a key worry. Four pressures weigh on the AI narrative: peaking capex growth, high interest rates that hit long-duration AI assets and leveraged GPU cloud providers like CoreWeave and Nebius, circular financing risks among interconnected tech firms, and tighter regulation under Democrats affecting data center energy, land, and permitting. Nvidia-related turmoil has shaken the pricing anchor for the entire supply chain. However, a valuation bubble bursting does not mean the AI industry is declining. Goldman notes US cloud giants trade at just 19.7x forward P/E, below their 20-year historical range and even below defensive staples, suggesting much pessimism is already priced in. Opportunities are shifting from upstream hardware "shovel sellers" toward fairly valued cloud giants with improving free cash flow, AI application companies delivering real ROI, and deeply discounted cyclical names like Korean memory. Conversely, GPU cloud providers dependent on Nvidia orders and cash-burning startups without products are most vulnerable. Investors should diversify, hedge, and focus on assets that convert spending into stable returns.

marsbit46m ago

AI Bull Market Trap? The Big Short Seller Strikes Again

marsbit46m ago

Just Offered 3.3 Million Yuan Salaries to Poach Talent, OpenAI Suddenly Dissolves Robotics Team—Is the Industry About to Change!

OpenAI has disbanded its standalone robotics research team, confirmed shortly after booking booth 208 at the CoRL robotics conference in Austin went empty on November 13. The move surprised many, given that just months earlier OpenAI was aggressively hiring robotics talent—some roles paying up to $500,000 base salary—and had expanded its San Francisco data-collection lab to about 100 workers across three shifts, with a second lab planned in Richmond, California. Researchers from the robotics team are now folded into Chief Research Officer Mark Chen's core research division, while robotics applications and hardware staff move to President Greg Brockman's Applied division. OpenAI says robotics remains part of its long-term vision and the reshuffle is meant to accelerate progress. This is not OpenAI's first robotics retreat: it ended its first independent robotics effort in 2020 to focus on large language models, which produced ChatGPT, and only rebuilt a team in 2024. OpenAI explains the latest pivot technically—researchers initially believed video-generation models like Sora could teach robots physics, but general models such as GPT-6 Astra proved capable of directly controlling robots, so robotics work is being merged into the general foundation-model team. The broader industry context supports this shift. Unitree's Wang Xingxing said his biggest mistake over the past decade was not trusting AI enough, noting GPT-6 integration exceeded expectations and that humanoid intelligence's tipping point may arrive within one to two years. Anthropic's Claude Fable 5.2 scored 64.9% on the RoboDojo Sim benchmark versus 29.8% for GPT-6 Astra, and Nvidia's Astranomy study showed GPT-6 Astra controlling simulated robots with 74.8% success using an agentic approach, beating the prior specialized-model best of 51.0%. Yet challenges remain: general models are costly and slow—GPT-6 Astra averaged 18.56 seconds per inference and about 30.9 million tokens (roughly $36.40 in API fees) per successful task—problematic for real factories where conveyor belts don't pause. Google DeepMind, Nvidia, Unitree and AgiBot continue training specialized robotics models; Google's Apollo 2 achieved 96% success sorting parts in Mercedes factories using paired reasoning and action models, while Nvidia's GR00T 2 reached 95% success after brief fine-tuning. Analysts suggest OpenAI now treats robotics as a downstream application of general intelligence, leveraging core model advances while using its data-collection and hardware capabilities to validate models on real robots.

marsbit46m ago

Just Offered 3.3 Million Yuan Salaries to Poach Talent, OpenAI Suddenly Dissolves Robotics Team—Is the Industry About to Change!

marsbit46m ago

"Strictest Ever" Wet-Lab Prediction Benchmark Released: Maxed-Out Reasoning and 5x Compute Still Won't Cut It

UniPat AI has launched Science Prediction Universe (SPU), a new benchmark that evaluates whether AI models can predict the outcomes of real wet-lab experiments before they are conducted. The benchmark covers 116 tasks and 4,207 wet-lab experiments across chemistry, materials science, biology, and medicine, drawing on recent papers and unpublished collaborations with institutions such as Stanford, Cornell, and Harvard. Models are given eight hours, an H20 GPU, internet access, and scientific software, and must submit a ranked prediction of experimental results, which is then scored against hidden ground-truth data using the Spearman correlation coefficient. To prevent memorization, evaluation runs in isolated, offline containers and screens outputs for paper identifiers. Results show that even leading models like Opus 5.5 and GPT-6 Astra remain far from reliable prediction: the best average score was 0.486, and only about half of tasks exceeded the random baseline. The study also found that increasing reasoning effort fivefold barely improved accuracy, since models often settled on an answer early and spent the rest of the time on minor adjustments. Likewise, more tool use and GPU calls did not reliably help. Performance varied sharply by measurement target, and API costs ranged 300-fold across configurations. SPU aims to give researchers and model developers a unified way to measure and improve AI's scientific judgment before investing in costly experiments.

marsbit4h ago

"Strictest Ever" Wet-Lab Prediction Benchmark Released: Maxed-Out Reasoning and 5x Compute Still Won't Cut It

marsbit4h ago

Trading

Spot
活动图片