Merge pull request #433 from pphszx/issue-ihangapi

修改vnlhang.py文件中getKline的function
This commit is contained in:
vn.py 2017-08-03 09:33:18 +08:00 committed by GitHub
commit 612d4720f3

View File

@ -190,7 +190,7 @@ class LhangApi(object):
# ----------------------------------------------------------------------
def getKline(self, symbol, size, type_, time):
"""查询K线"""
function = FUNCTION_TRADES
function = FUNCTION_KLINE
params = {
'symbol': symbol,
'size': size,
@ -226,7 +226,7 @@ class LhangApi(object):
# ----------------------------------------------------------------------
def getUserInfo(self):
"""查询K线"""
"""查询账户信息"""
function = FUNCTION_USERINFO
params = {}
callback = self.onGetUserInfo
@ -282,7 +282,7 @@ class LhangApi(object):
# ----------------------------------------------------------------------
def onGetUserInfo(self, data, req, reqID):
"""查询K线回报"""
"""查询账户信息"""
print data, reqID
# ----------------------------------------------------------------------