Merge pull request #38 from sniper24/patch-2
Update vnoanda.py,修复API里面getPriceHistory的一处bug
This commit is contained in:
commit
1c399676fb
@ -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',
|
||||
@ -605,4 +605,4 @@ class OandaApi(object):
|
||||
if not self.active:
|
||||
break
|
||||
else:
|
||||
self.onError(error, -1)
|
||||
self.onError(error, -1)
|
||||
|
Loading…
Reference in New Issue
Block a user