Merge pull request #433 from pphszx/issue-ihangapi
修改vnlhang.py文件中getKline的function
This commit is contained in:
commit
612d4720f3
@ -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