tushare

import ssl
import urllib2
import json
import demjson
import tushare as ts

import random
i=random.randint(0,100)%2
token=['0','1']
ts.set_token(token[i]
pro = ts.pro_api()

df = pro.daily(ts_code='002439.SZ',  end_date='20190308')



print df

  

 

http://tushare.org/

https://tushare.pro/

posted @ 2019-03-28 11:23  ahuo  阅读(156)  评论(0编辑  收藏  举报