Quickstart¶
Run an offline query¶
Run these commands in an empty working directory. See installation for system requirements.
DuckDB downloads ducklake and sqlite_scanner the first time you build a lake. For a fully offline setup, place the .duckdb_extension files for your DuckDB version and platform in one directory and set EQUITYLAKE_EXTENSION_DIR to that directory. If initialization fails because an extension is missing, supply it and rerun the command in the same directory.
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"
The sample writes synthetic data to data/cnequity-sample/. The result identifies its rows as source=mock, for checking installation and queries.
Choose a live collection scope¶
| Command | Scope |
|---|---|
cne init --profile demo |
Collect recent daily bars for a few symbols from real sources into a separate demo lake. Query it with configs/cnequity.demo.toml. |
cne init |
The quick profile, with about three years of baseline data across the configured universe. |
cne init --profile full |
The same universe with deeper history. The default backfill starts on 2016-01-01, with actual coverage varying by dataset and source. |
To choose a data directory before initializing a production lake, run cne config create --data-root /path/to/lake. The default lookup uses an existing configs/cnequity.toml in the working directory or the user config. Run cne config path to see the active path.
Live initialization time depends on the history window, source responses, and network. Rerun the same cne init command to resume an interrupted initialization. For a degraded result, use cne check and cne status --datasets to inspect gaps. See run results for exit codes and verification.
Inspect and update the lake¶
cne serve --read-only
Open http://127.0.0.1:8787 to inspect rows, coverage, and run status. Add the corresponding --config to open a sample or demo lake. After initializing a production lake, use cne run daily to update it.

Continue with queries and research, data coverage, daily updates, or the design.