easyquotation is a Python library that fetches real-time stock market quotations from free data sources.
The tool solves the problem of accessing live stock price data without paid subscriptions by aggregating quotations from multiple Chinese financial data providers. It retrieves market data from Sina Finance, Tencent Finance (including Hong Kong stocks), and Jisilu, completing full market queries in around 200 milliseconds under normal network conditions. The library handles the underlying API calls to these providers, allowing developers to request all market quotations, individual stocks, or multiple stocks in a single call, and also supports fetching index data alongside regular stock information.
Developers building quantitative trading systems, portfolio trackers, or financial analysis tools in China should consider this library if they need fast, free access to mainland and Hong Kong stock data. The tool is particularly suited for projects that cannot rely on paid market data feeds. The README does not compare easyquotation to alternative libraries, so no comparative guidance can be offered.
The project maintains an internal database of all market stock codes that can be updated programmatically. The library provides specialized endpoints for Hong Kong stock daily candlestick charts and real-time quotes from Tencent, as well as ETF lookup functionality through Jisilu that covers index and bond ETFs but excludes gold and currency ETFs. Cookie configuration is supported for Jisilu access to retrieve additional restricted data.