From 2b0f13069b2672ea293f2fb6b68308995937afbd Mon Sep 17 00:00:00 2001 From: msincenselee Date: Mon, 8 May 2017 15:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=96=E4=B8=AD=E9=87=91?= =?UTF-8?q?=E6=89=80tick=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/ctaStrategy/utilSinaClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vn.trader/ctaStrategy/utilSinaClient.py b/vn.trader/ctaStrategy/utilSinaClient.py index 9b826cfb..b623b024 100644 --- a/vn.trader/ctaStrategy/utilSinaClient.py +++ b/vn.trader/ctaStrategy/utilSinaClient.py @@ -67,7 +67,7 @@ class UtilSinaClient(object): # 从sina加载最新的M1数据 try: - url = url = u'http://stock2.finance.sina.com.cn/futures/api/jsonp.php/var%20t1nf_T1706=/InnerFuturesNewService.getMinLine?symbol={0}'.format(symbol) + url = url = u'http://stock2.finance.sina.com.cn/futures/api/jsonp.php/var%20t1nf_{0}=/InnerFuturesNewService.getMinLine?symbol={0}'.format(symbol) self.strategy.writeCtaLog(u'从sina下载{0}Tick数据 {1}'.format(symbol, url)) response_data= self.session.get(url).content