From 97c244893c49698f59d706bca3c346ef37f1e263 Mon Sep 17 00:00:00 2001 From: sniper24 Date: Mon, 21 Mar 2016 00:22:15 +0800 Subject: [PATCH] Update test.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改getPriceHisory方法的入参格式 --- vn.oanda/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vn.oanda/test.py b/vn.oanda/test.py index e86559bb..eb3fdb88 100644 --- a/vn.oanda/test.py +++ b/vn.oanda/test.py @@ -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'}) @@ -102,4 +102,4 @@ if __name__ == '__main__': #api.getAutochartist({'instrument': 'EUR_USD'}) # 阻塞 - input() \ No newline at end of file + input()