init
This commit is contained in:
10
code/data/daily_data.py
Normal file
10
code/data/daily_data.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import tushare as ts
|
||||
ts.set_token('3a0741c702ee7e5e5f2bf1f0846bafaafe4e320833240b2a7e4a685f')
|
||||
pro = ts.pro_api()
|
||||
|
||||
import pandas as pd
|
||||
import time
|
||||
|
||||
# 读取本地保存的股票列表 CSV 文件(假设文件名为 stocks_data.csv)
|
||||
df = ts.pro_bar(ts_code='000001.SZ', adj='hfq', start_date='20180101')
|
||||
print(df)
|
||||
Reference in New Issue
Block a user