Merge branch 'master' of https://github.com/lyic/vnpy
Conflicts: vn.trader/ctaAlgo/ctaBacktesting.py vn.trader/ctpGateway/ctpGateway.py
This commit is contained in:
commit
db7028cea1
@ -19,7 +19,7 @@ if __name__ == '__main__':
|
||||
#api.getPrices({'instruments': 'EUR_USD'})
|
||||
|
||||
# 获取历史数据,失败
|
||||
#api.getPriceHisory({'instruments': 'EUR_USD',
|
||||
#api.getPriceHisory({'instrument': 'EUR_USD',
|
||||
#'granularity': 'D',
|
||||
#'candleFormat': 'midpoint',
|
||||
#'count': '50'})
|
||||
|
@ -87,7 +87,7 @@ class OandaApi(object):
|
||||
self.initFunctionSetting(FUNCTIONCODE_GETPRICES, {'path': '/v1/prices',
|
||||
'method': 'GET'})
|
||||
|
||||
self.initFunctionSetting(FUNCTIONCODE_GETPRICEHISTORY, {'path': 'v1/candles',
|
||||
self.initFunctionSetting(FUNCTIONCODE_GETPRICEHISTORY, {'path': '/v1/candles',
|
||||
'method': 'GET'})
|
||||
|
||||
self.initFunctionSetting(FUNCTIONCODE_GETACCOUNTS, {'path': '/v1/accounts',
|
||||
@ -177,6 +177,7 @@ class OandaApi(object):
|
||||
#----------------------------------------------------------------------
|
||||
def exit(self):
|
||||
"""退出接口"""
|
||||
if self.active:
|
||||
self.active = False
|
||||
self.reqThread.join()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user