Excel VBA functions
支援VBA下单、删改单、查询账务、主推回报。
引用TCExcelLib
Initial TCExcelLib
Public WithEvents m_eventSourceMain As TCExcelLib.TCExcelLibCom
Set m_eventSourceMain = New TCExcelLib.TCExcelLibCom
Connect
连接
int Connect(string SystemName);
Parameters
SystemName
TCore系统名称
Logout
断开
void Logout(string SystemName);
Parameters
SystemName
TCore系统名称
SendOrder
下单
int SendOrder(string SystemName, string OrderInfo);
DeleteOrder
删单
void DeleteOrder(string SystemName, string reportID);
Parameters
SystemName
TCore系统名称
reportID
回报编号
ReplaceOrder
改单
void ReplaceOrder(string SystemName, string ReplaceInfo);
QueryAllInstrument
查询全部合约列表Return
string QueryAllInstrumentInfo(string SystemName, string type);
Parameters
Title
SystemName
TCore系统名称
type
Future or Options or Stock
QueryInstrumentInfo
查询合约资讯Return
string QueryInstrumentInfo(string SystemName, string symbol):
Parameters
Title
SystemName
TCore系统名称
symbol
合约代码
Last updated
Was this helpful?