修复取中金所tick的bug

This commit is contained in:
msincenselee 2017-05-08 15:16:40 +08:00
parent bbb0db30d4
commit 2b0f13069b

View File

@ -67,7 +67,7 @@ class UtilSinaClient(object):
# 从sina加载最新的M1数据 # 从sina加载最新的M1数据
try: 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)) self.strategy.writeCtaLog(u'从sina下载{0}Tick数据 {1}'.format(symbol, url))
response_data= self.session.get(url).content response_data= self.session.get(url).content