quantdb-data-structure
Skill by qusong0627
Explains how the QuantDB local parquet data is organized and how to read it correctly. Useful for developers and analysts who query QuantDB with DuckDB or troubleshoot missing data.
Install quantdb-data-structure
Built from the published package, never by AI.
git clone --depth 1 https://github.com/qusong0627/QuantMind /tmp/QuantMind && mkdir -p ~/.claude/skills && cp -r /tmp/QuantMind/skills/quantdb-data-structure ~/.claude/skills/quantdb-data-structureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/qusong0627/QuantMind /tmp/QuantMind && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/QuantMind/skills/quantdb-data-structure ~/.gemini/antigravity-cli/skills/quantdb-data-structureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install quantdb-data-structure in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill documents how the QuantDB local data store is organized on a server. It covers the six top-level dataset folders, Hive partitions by dt in YYYYMMDD integer form, and single-file symbol parquet files. It also explains how to convert between suffix codes such as 600519.SH and prefix codes such as SH600519, and maps the server path to the container path.
It names quantdb_hub.py as the recommended single read entry point and lists the DuckDB views it mounts, such as qdb_daily_forward and qdb_alpha_library. It is meant for people who read, inspect, backfill or verify QuantDB parquet data, write DuckDB queries, or troubleshoot queries that return no data.
Written from the project's SKILL.md and checked against it.
What it can do
- Data directory mapDescribes the six top-level dataset folders from 1_kline_data to 6_ml_datasets.
- Hive partition rulesExplains dt=YYYYMMDD partitions and why dt should be filtered as an integer.
- Code format conversionCovers converting suffix codes like 600519.SH and prefix codes like SH600519.
- Single read entry pointRecommends quantdb_hub.py as the single read entry point with automatic column mapping.
- DuckDB view listLists the qdb_ views mounted for daily K-line, valuation, factors and northbound capital data.
- Server path mappingMaps the host path /opt/quantmind/data/quantdb to the container path /data/quantdb.
- Server check commandsProvides shell commands to check directory size, container visibility and daily data presence.
- Pre-coding checklistOffers a checklist for path resolution, partition filters, code formats and field units.
What you need
- A QuantDB local parquet data directory
- Docker for container access and service restarts
- DuckDB for querying parquet files
- QUANTDB_API_KEY bound in the data platform for incremental sync
Try asking
- Where is the QuantDB daily forward-adjusted K-line data stored?
- Write a DuckDB query for 600519.SH filtered by dt between two dates.
- Help me troubleshoot why a QuantDB query returns no data for a stock code.
Good to know
- The quantdb folder is official read-only data, so custom outputs should go to quantcustom.
- Passing prefix-format codes to parquet queries returns empty results without an error.
- After data updates, the services may need a restart to pick up changes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/quantdb-data-structure/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to quantdb-data-structure
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
quantdb-data-structure: common questions
How are QuantDB partitions organized?
Partitioned datasets use the layout <dataset>/dt=YYYYMMDD/data.parquet, where dt is an integer Hive partition column. Single-file datasets use {symbol}.parquet.
Why does my QuantDB query return nothing for a stock code?
The source warns that a prefix-format code such as SH600519 passed to parquet queries returns empty results silently. Parquet files use suffix-format codes such as 600519.SH.
Where should custom QuantDB outputs be written?
The source says user and mining outputs should go to the quantcustom directory, not quantdb, because quantdb holds official read-only data.
How do I install quantdb-data-structure?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is quantdb-data-structure free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is quantdb-data-structure safe to use?
It scores 75 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to quantdb-data-structure?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
