Use the stock.market module to access real-time, historical, and technical price data (K-lines), dividends, and capital flows.
K-line and Price Data:
stock.market.get_market(): Get K-line data (Day, Week, Month) for a single stock.stock.market.get_market_min(): Get intraday (minute) price data for a single stock (current day only).stock.market.list_market_current(): Get latest real-time quotes for multiple stocks (Sources: Sina, Tencent).stock.market.get_market_five(): Get Level 2 (5-tier) quotes for a single stock (Sources: Tencent, Baidu).stock.market.get_market_bar(): Get tick-by-tick transaction data (Source: Gushitong).
Concept and Index Data:
stock.market.get_market_concept_ths(): Get K-line data for a Tonghuashun concept (use index_code starting with 8).stock.market.get_market_concept_min_ths(): Get intraday K-line for a Tonghuashun concept.stock.market.get_market_concept_current_ths(): Get real-time quotes for a Tonghuashun concept.stock.market.get_market_concept_east(): Get K-line data for an Eastmoney concept (use index_code starting with BK).stock.market.get_market_concept_min_east(): Get intraday K-line for an Eastmoney concept.stock.market.get_market_concept_current_east(): Get real-time quotes for an Eastmoney concept.stock.market.get_market_index(): Get K-line data (Day, Week, Month) for an index.stock.market.get_market_index_min(): Get intraday K-line for an index.stock.market.get_market_index_current(): Get real-time quotes for an index.
Dividends and Capital Flow:
stock.market.get_dividend(): Get dividend information for a single stock.stock.market.get_capital_flow_min(): Get intraday capital flow for a single stock.stock.market.get_capital_flow(): Get historical daily capital flow for a single stock.stock.market.all_capital_flow_east(): Get capital flow for all Eastmoney concepts over the last N days.