修改vnlhang.py文件中getKline的function

This commit is contained in:
Eric 2017-08-02 14:38:41 +08:00
parent 857668d27a
commit dbb94eb2b6

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
# ----------------------------------------------------------------------