CNEquity¶
A local China-market data lake for quantitative research. Collect prices, financial statements, corporate events, and flows according to your configuration, then publish them to local Parquet. Inspect coverage and research semantics, and resume unfinished collection.
flowchart LR
A["Init / daily / backfill"] --> B["Stage & validate"]
B --> C["Atomic catalog publish"]
C --> D["Python / SQL / dashboard / MCP"]
C -. "Published rows and _attempts" .-> E["Coverage planner"]
E -. "Resume remaining gaps" .-> A
30-second offline tryout¶
Run an offline query against a synthetic sample lake in an empty directory—no credentials or network required:
python -m pip install cnequity
cne init --profile sample
cne query --config configs/cnequity.sample.toml --sql "SELECT symbol, trade_date, close, source FROM daily_bars ORDER BY trade_date DESC LIMIT 5"
Explore by goal¶
-
Getting started & upgrades
Move from the offline sample to live collection scopes, or upgrade an existing lake.
- Quickstart ·
sample,demo,quick, andfullscopes plus the local dashboard - Install and upgrade · System requirements and
cne upgradecatalog migration steps
- Quickstart ·
-
Query & quantitative research
Control price adjustments, versioned historical universes, and point-in-time (PIT) financial semantics explicitly.
- Query guide · Adjustments, historical universes, PIT financials, intraday resampling, and Parquet export
- Python API ·
load(),load_with_receipt(),scan(), andload_profile() - MCP · Connect the lake as read-only tools for Claude, ChatGPT, Cursor, and other AI agents
-
Design & data dictionary
Understand catalog transactions, the coverage ledger, and every L0–L9 dataset's source limits and schema.
- Design · Lake catalog, publication gate, coverage planning, locks, and reproducibility
- Dataset catalog · L0–L9 support tiers, primary/backfill sources, and historical limits
- Fields and units · Column names, types, units (such as shares vs. lots), and domain semantics
-
Operations & compliance
Schedule daily updates, troubleshoot provider rate limits or audit findings, and review upstream data terms.
- Daily updates · Timers, run statuses, gap backfills, and snapshots
- Troubleshooting · Symptom-driven guide for publishing, locks, rate limits, and audits
- Configuration ·
extends = "builtin", credentials, and section reference - Commands and side effects · Network and write boundaries for every CLI command
- License, sources, and citation · Apache-2.0 license, upstream source matrix, and citation
See GitHub Releases for release history. Run cne --version to identify your installed version.