交易 DLL functions
RTCTradeAPI介面
CreateRTCTradeAPI
创建出的RTCTradeAPI
Parameters | 类型 | 说明 |
strLogPath | char* | 存放LOG档案路径,API会自动在档案结尾加上 日期,未设定预设不产生 EX:CreateRTCTradeAPI(“C:\RTCTradeAPI.txt”) |
Release
不再使用本介面对象时,调用该函数删除对象
Join
等待介面执行绪结束运行
RegisterSpi
继承自callback介面类的实例
Parameters | 类型 | 说明 |
pSpi | pointer | 指向callback指标 |
RegisterFront
连接TCore
Parameters | 类型 | 说明 |
strHostAddress | char* | TCore位址 |
strSystemName | char* | TCore系统名称 |
strServiceKey | char* | 连线TCore ID |
iConnectType | int | 固定带1 |
ReqOrderInsert
报单录入请求
Parameters | 类型 | 说明 |
pInputOrder | pointer | ICEInputOrderField data struct |
nRequestID | int |
ReqOrderAction
报单操作请求
删单的话只需要带入ReportID
Parameters | 类型 | 说明 |
pInputOrderAction | pointer | ICEInputOrderActionField data struct |
nRequestID | int |
ReqQryOrder
请求查询报单
Parameters | 类型 | 说明 |
pQryOrder | pointer | ICEQryOrderField data struct |
nRequestID | int |
ReqQryTrade
请求查询成交
Parameters | 类型 | 说明 |
pQryTrade | pointer | ICEQryTradeField data structer |
nRequestID | int |
ReqQryInvestorPosition
请求查询投资者持仓
Parameters | 类型 | 说明 |
pQryInvestorPosition | pointer | ICEQryInvestorPositionField data struct |
nRequestID | int |
ReqQryTradingAccount
请求查询资金账户
Parameters | 类型 | 说明 |
pQryTradingAccount | pointer | ICEQryTradingAccountField data struct |
nRequestID | int |
ReqQryInstrument
请求查询合约
Parameters | 类型 | 说明 |
pQryInstrument | pointer | ICEQryInstrumentField data struct |
nRequestID | int |
ReqQryInvestorPositionDetail
请求查询投资者持仓明细
Parameters | 类型 | 说明 |
pQryInvestorPositionDetail | pointer | ICEQryInvestorPositionDetailField data struct |
nRequestID | int |
ReqCombActionInsert
申请组合录入请求
Parameters | 类型 | 说明 |
pInputCombAction | pointer | ICEInputCombActionField data struct |
nRequestID | int |
ReqQryCombAction
请求查询申请组合
Parameters | 类型 | 说明 |
pQryCombAction | pointer | ICEQryCombActionField data struct |
nRequestID | int |
Last updated