--- name: fetch-tencent-ohlcv description: Fetch raw completed daily OHLCV for `XSHG` and `XSHE` equities and funds from Tencent Finance via `aq-python`, converting reported lots to shares (`×100`). --- # Fetch Tencent OHLCV Fetch raw Mainland China daily OHLCV (`XSHG` / `XSHE`) from Tencent Finance's historical `day` route. ## Fetch 1. Prepare [assets-format.md](references/assets-format.md) with explicit `equity` or `fund` classes. 2. Choose completed daily sessions and run: ```bash aq-python scripts/fetch_tencent_daily.py \ --output /tmp/aq-fetch/ \ --assets /absolute/path/assets.json \ --dataset-id \ --start YYYY-MM-DD \ --end-exclusive YYYY-MM-DD \ --panel observed-only \ --terms "caller-authorized research retrieval; Tencent and exchange terms apply" ``` The script converts Tencent `day` volume from lots to shares (`×100`) and logs the conversion in `provider-audit.json`. ## Inspect & Ingest 1. Check `provider-audit.json` to ensure the returned first/last session dates were not truncated and suspension gaps are expected. 2. Ingest directly into `/data/`: ```bash uv run aq data ingest . /tmp/aq-fetch/ \ --project \ --dataset-id \ --source tencent-raw \ --json ```