[Mod]调整DataService相关Demo的目录结构
This commit is contained in:
parent
051f00f051
commit
bd6447a708
@ -31,10 +31,11 @@ headers = {'X-CoinAPI-Key': APIKEY}
|
||||
#----------------------------------------------------------------------
|
||||
def generateVtBar(symbol, d):
|
||||
"""生成K线"""
|
||||
l = symbol.split('_')
|
||||
bar = VtBarData()
|
||||
|
||||
bar.symbol = symbol
|
||||
bar.vtSymbol = symbol
|
||||
bar.symbol = l[-2] + l[-1]
|
||||
bar.exchange = l[0]
|
||||
bar.vtSymbol = '/'.join([bar.symbol, bar.exchange])
|
||||
bar.datetime = datetime.datetime.strptime(d['time_open'], '%Y-%m-%dT%H:%M:%S.%f0Z')
|
||||
bar.date = bar.datetime.strftime('%Y%m%d')
|
||||
bar.time = bar.datetime.strftime('%H:%M:%S')
|
11
examples/DataService/README.md
Normal file
11
examples/DataService/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# DataService说明
|
||||
|
||||
* ShcifcoDataService:上海中期历史行情服务(期货)
|
||||
|
||||
* TqDataService:天勤历史行情服务(期货)
|
||||
|
||||
* TushareDataService:TuShare历史行情服务(A股)
|
||||
|
||||
* FutuDataService:富途证券历史行情服务(美股、港股)
|
||||
|
||||
* CoinapiDataService:CoinAPI.io历史行情服务(数字货币)
|
@ -20,12 +20,4 @@
|
||||
|
||||
* ServerClient:服务端(业务逻辑)和客户端(GUI界面)分离的VnTrader
|
||||
|
||||
* ShcifcoDataService:上海中期历史行情服务(期货)
|
||||
|
||||
* TqDataService:天勤历史行情服务(期货)
|
||||
|
||||
* TushareDataService:TuShare历史行情服务(A股)
|
||||
|
||||
* FutuDataService:富途证券历史行情服务(美股、港股)
|
||||
|
||||
* CoinapiDataService:CoinAPI.io历史行情服务(数字货币)
|
||||
* DataService:用于下载历史行情数据以及每日数据自动更新的数据服务
|
Loading…
Reference in New Issue
Block a user