“Financial document”版本间的差异
来自cslt Wiki
(2位用户的23个中间修订版本未显示) | |||
第1行: | 第1行: | ||
+ | =data update= | ||
+ | 数据每天16:00开始更新当天数据 | ||
+ | 数据地点:/nfs/finhome/fin/data/ | ||
+ | |||
=data path= | =data path= | ||
− | =data type= | + | path: /nfs/finhome/fin/data/stock_data |
+ | |||
+ | list: /nfs/finhome/fin/data/stock_data/name.csv | ||
+ | |||
+ | =data api= | ||
+ | ==获取股票数据== | ||
+ | *path: /nfs/finhome/fin/data/script/dataApi | ||
+ | *导入方式 | ||
+ | sys.path.append("/nfs/finhome/fin/data/script/dataApi") | ||
+ | from DataAPI import DataAPI | ||
+ | DataAPI.MktEqudGet(secID=u"000001.XSHE",ticker=u"",tradeDate=u"",beginDate=u"20150817",endDate=u"20150826",field=u"",pandas="1") | ||
+ | |||
+ | ==获取不同市场分类数据(A股,创业板等)== | ||
+ | *path :/nfs/finhome/fin/data/security_data | ||
+ | *导入方式 | ||
+ | sys.path.append("/nfs/finhome/fin/data/security_data") | ||
+ | from search_plate_data import Plate | ||
+ | plate = Plate() | ||
+ | search_num = "101001001005" | ||
+ | plate.get_plate_data(search_num) #获得中小板的数据 | ||
+ | |||
+ | ==获取行业分类数据== | ||
+ | *path: /nfs/finhome/fin/data/script/dataApi | ||
+ | *导入方式 | ||
+ | sys.path.append("/nfs/finhome/fin/data/script/dataApi") | ||
+ | from search_data import Tree | ||
+ | list_num = ['101001002008'] | ||
+ | stock_list = Tree.find_num(list_num) | ||
+ | |||
+ | =data type and api接口= | ||
[[k data]] | [[k data]] | ||
+ | |||
+ | [[industry list]] | ||
+ | |||
+ | [[market list]] | ||
+ | |||
+ | [[factor data]] |
2015年10月12日 (一) 12:06的最后版本
目录
data update
数据每天16:00开始更新当天数据 数据地点:/nfs/finhome/fin/data/
data path
path: /nfs/finhome/fin/data/stock_data
list: /nfs/finhome/fin/data/stock_data/name.csv
data api
获取股票数据
- path: /nfs/finhome/fin/data/script/dataApi
- 导入方式
sys.path.append("/nfs/finhome/fin/data/script/dataApi") from DataAPI import DataAPI DataAPI.MktEqudGet(secID=u"000001.XSHE",ticker=u"",tradeDate=u"",beginDate=u"20150817",endDate=u"20150826",field=u"",pandas="1")
获取不同市场分类数据(A股,创业板等)
- path :/nfs/finhome/fin/data/security_data
- 导入方式
sys.path.append("/nfs/finhome/fin/data/security_data") from search_plate_data import Plate plate = Plate() search_num = "101001001005" plate.get_plate_data(search_num) #获得中小板的数据
获取行业分类数据
- path: /nfs/finhome/fin/data/script/dataApi
- 导入方式
sys.path.append("/nfs/finhome/fin/data/script/dataApi") from search_data import Tree list_num = ['101001002008'] stock_list = Tree.find_num(list_num)