Ricequant Data SDK (rqdatac) provides programmatic access to Chinese financial market data, including stocks, futures, options, and index data. It offers both snapshot and historical data retrieval with a pandas-friendly API. Current version: 3.5.1.1. The library is actively maintained by Ricequant and releases follow a monthly cadence.
pip install rqdatacVerified import paths — ran on the pinned version, not inferred.
Initialize rqdatac with your API token and fetch instrument list and historical prices.
Use rq.init('your_full_token') - obtain token from Ricequant website.Always append the correct exchange suffix (e.g., '000001.XSHE', '600000.XSHG').
Check column names with .columns and refer to 'order_book_id' for instrument identifiers.
Always pass dates as strings: start_date='2024-01-01'.
Make sure you call rq.init('valid_token_here') with a token obtained from your Ricequant account. Token must be a string.Check your rqdatac version: if <3.0, use 'code' instead. If >=3.0, use 'order_book_id'. Alternatively, use .get('order_book_id', None) or update to latest version.Ensure stock codes include exchange suffix (e.g., '000001.XSHE'). Also verify that the date range is within available data.
No dependency data recorded yet.