1.Tushare 簡介
Tushare是一個免費、開源的python財經資料介面包,擁有如股票、基金、期貨等行情資料,公司財務、基金經理等基本面資料,以及債券、外匯、行業、大資料、區塊鏈,Tushare回傳的絕大部分的資料格式都是pandas DataFrame型別,因此非常方便用于進行資料分析和可視化,目前現已升級到tushare pro版本,
2.注冊
地址: Tushare


3.安裝
安裝依賴:
pip3 install lxml numpy pandas
安裝tushare:
pip3 install tushare
4.使用
import tushare as ts
ts.set_token('your token here')
pro = ts.pro_api()
data = pro.stock_basic(exchange='', list_status='L', fields='ts_code,symbol,name,area,industry,list_date')
print(data)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/141893.html
標籤:其他
