Getting Started with Data Fetching

Welcome to AKlite! The best place to start is to learn about stock data fetch!

Import package

we should import aklite firstly, just like import akshare as ak, we will call ai short for aklite

[1]:
import aklite as ai

then, we can fetch stock data by our specific parameters: 1. we can set symbols, which is a list or str contains many stocks or just one; 2. we can set timeout and proxies for httpx timeout and proxies

[2]:
stock_zh_a_hist_obj = ai.stock_zh_a_hist(symbols=["000001", "000002"],
                                         period="daily",
                                         start_date="20220101",
                                         end_date="20230601",
                                         adjust="hfq",
                                         timeout=5,
                                         proxies={})