pip install akshare
python
import akshare as ak
python
stock_zh_a_spot = ak.stock_zh_a_spot()
print(stock_zh_a_spot)
python
import pandas as pd
df = pd.DataFrame(stock_zh_a_spot)
print(df.head())
python
import matplotlib.pyplot as plt
df['close'].plot()
plt.show()