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):
|
def getKline(self, symbol, size, type_, time):
|
||||||
"""查询K线"""
|
"""查询K线"""
|
||||||
function = FUNCTION_TRADES
|
function = FUNCTION_KLINE
|
||||||
params = {
|
params = {
|
||||||
'symbol': symbol,
|
'symbol': symbol,
|
||||||
'size': size,
|
'size': size,
|
||||||
@ -226,7 +226,7 @@ class LhangApi(object):
|
|||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
def getUserInfo(self):
|
def getUserInfo(self):
|
||||||
"""查询K线"""
|
"""查询账户信息"""
|
||||||
function = FUNCTION_USERINFO
|
function = FUNCTION_USERINFO
|
||||||
params = {}
|
params = {}
|
||||||
callback = self.onGetUserInfo
|
callback = self.onGetUserInfo
|
||||||
@ -282,7 +282,7 @@ class LhangApi(object):
|
|||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
def onGetUserInfo(self, data, req, reqID):
|
def onGetUserInfo(self, data, req, reqID):
|
||||||
"""查询K线回报"""
|
"""查询账户信息"""
|
||||||
print data, reqID
|
print data, reqID
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user