{"library":"rqdatac","title":"rqdatac - Ricequant Data SDK","description":"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.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install rqdatac"],"cli":null},"imports":["import rqdatac as rq","from rqdatac import all_instruments","from rqdatac import get_price"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import rqdatac as rq\n\n# Initialize with your token (get from https://www.ricequant.com)\nrq.init('your_token_here')\n\n# List all instruments\ninstruments = rq.all_instruments()\nprint(instruments.head())\n\n# Get historical price data for a stock\nprices = rq.get_price('000001.XSHE', start_date='2024-01-01', end_date='2024-06-01', fields=['close'])\nprint(prices.head())","lang":"python","description":"Initialize rqdatac with your API token and fetch instrument list and historical prices.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}