修改vnlhang.py文件中getKline的function
This commit is contained in:
parent
857668d27a
commit
dbb94eb2b6
@ -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
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user