{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/4"}],"enrichment":{"capability":"BaoStock retrieves historical China stock market data and returns it as pandas DataFrames, designed for financial analysis and machine learning workflows.","skillfed_tags":["financial-data","china-markets","quantitative-analysis"],"use_cases":["Fetch historical OHLC data for Chinese stocks to build backtesting datasets for quantitative trading strategies.","Retrieve valuation metrics (P/E, P/B, P/S ratios) for fundamental analysis of Chinese equities.","Export stock market data to CSV for use in machine learning models trained on market behavior.","Monitor trading status and volume changes for a portfolio of Chinese stocks over time.","Build financial dashboards that aggregate price and volume data from multiple Chinese stock codes."],"what_it_does":"BaoStock is a Python client for accessing China stock market historical data through a dedicated data server. It wraps market data queries into a simple API that returns results as pandas DataFrames, making it straightforward to load stock prices, trading volumes, and valuation metrics into analysis workflows. The package is designed for financial analysts, quantitative traders, and data scientists working with Chinese equities.\n\nThe typical workflow involves logging in, querying historical K-line (candlestick) data for specific stock codes and date ranges, iterating through result rows, and converting them into a DataFrame for further analysis or export. It handles authentication, result pagination, and format conversion automatically, reducing boilerplate code for common data retrieval tasks.","worth_installing":"Yes, if you need free historical China stock market data. The package is actively maintained, has low install friction, and integrates cleanly with pandas workflows. The main constraint is dependence on BaoStock's external data server\u2014verify uptime and rate limits for your use case before committing to production systems."},"id":"baostock","links":{"html":"https://skillfed.io/packages/baostock","md":"https://skillfed.io/packages/baostock.md","pypi":"https://pypi.org/project/baostock/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-10","license_spdx":null,"license_treatment":"permissive","name":"baostock","python_support":"unspecified","summary":"A tool for obtaining historical data of China stock market"},"popularity":{"monthly_downloads":756010,"position":5140,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.3"}
