From ea8f4d542b85eb59c2d74c1c16d6bdb84a80da28 Mon Sep 17 00:00:00 2001 From: XueShan Date: Wed, 12 Jul 2017 15:50:56 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9A1.=20getlasttick=20=E7=A9=BA?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=A4=E6=96=AD=E5=A4=B1=E8=AF=AF=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=90=8E=E7=BB=AD=E5=88=86=E6=9E=90=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=202.=20gethisbar=20=E6=97=A5=E6=9C=9F=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97=E6=9B=B4=E6=94=B9=E4=B8=BAtradingday=20=20=E4=B8=8A?= =?UTF-8?q?=E8=BF=B0=E4=BF=AE=E5=A4=8D=E5=85=A8=E9=83=A8=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vnpy/data/shcifco/vnshcifco.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/data/shcifco/vnshcifco.py b/vnpy/data/shcifco/vnshcifco.py index 425d96b8..d72ded9a 100644 --- a/vnpy/data/shcifco/vnshcifco.py +++ b/vnpy/data/shcifco/vnshcifco.py @@ -46,7 +46,7 @@ class ShcifcoApi(object): params = {'ids': symbol} data = self.getData(path, params) - if not data: + if not data or data == ';': return None data = data.split(';')[0] @@ -113,7 +113,7 @@ class ShcifcoApi(object): } # 可选参数 if date: - params['date'] = date + params['tradingday'] = date if period: params['period'] = period