TCore Python API 行情与交易查询函数
QueryAllInstrumentInfo
查询指定类型合约列表
def QueryAllInstrumentInfo(type):
Parameters
type
期货:Future 期权:Options 证券:Stock
QueryInstrumentInfo
查询指定合约信息
def QueryInstrumentInfo(symbol):
Parameters
symbol
合约代码
SubHistory
回补历史
def SubHistory(symbol, type, startTime, endTime):
Parameters
symbol
合约代码
type
TICKS:历史ticks、1K:历史1K、DK:历史日K、DOGSS:历史Greeks秒数据、DOGSK:历史Greeks分数据
startTime
回补起始时间
endTime
回补结束时间
QryAccount
查询已登入资金账户
def QryAccount():
QryReport
查询当日委托回报
def QryReport(qryIndex=""):
Parameters
qyIndex
取得资料,从第几笔开始。
QryFillReport
查询当日成交回报
def QryFillReport(qryIndex=""):
Parameters
qryIndex
取得资料,从第几笔开始。
QryMargin
资金查询
def QryMargin(BrkAcct):
Parameters
SessionKey
connect时回传的sessionkey
BrkAcct
BrokerID-Account
QryPosition
部位查询
def QryPosition(BrkAcct,QryIndex):
Parameters
BrkAcct
BrokerID-Account
QryIndex
取得资料,从第几笔开始。
QryPositionTracker
查询持仓监控
def QryPositionTracker():
QryOptCombOrder
查询组合回报
def QueryOptCombOrder(AM,qryIndex):
OptComb
组合指令
def OptComb(Param):
Last updated
Was this helpful?