行情 COM API Methods
TCQuoteWrapperAPI methods
Connect
Connect TCore。若TCore 未启动,则会先启动TCore,再进行Connect 。
Connect([in] BSTR HostAddress, [in] BSTR SystemName, [in] BSTR AppID, [out,retval] LONG* plRet);
Parameters
类型
说明
HostAddress
string
TCore位址
SystemName
string
TCore系统名称
AppID
string
连线TCore ID
Disconnect
Disconnect TCore。
Disconnect();
SubQuote
订阅行情资料。
SubQuote([in] LONG DataType, [in] IDispatch* DataParameters, [out,retval] LONG* plSubCount);
Parameters
类型
说明
DataType
long
1 : 实时行情
2 : 当日Ticks
4 : 历史1分K
5 : 历史日K
6 : 实时GREEKS
UnsubQuote
解除订阅行情资料。
UnsubQuote([in] LONG DataType, [in] IDispatch* DataParameters, [out,retval] LONG* plSubCount);
Parameters
类型
说明
DataType
long
1 : 实时行情
2 : 当日Ticks
4 : 历史1分K
5 : 历史日K
6 : 实时GREEKS
GetSymbolClassifications
取得商品分类表。
GetSymbolClassifications([in] BSTR Classify, [in] BSTR Exchange, [in] BSTR Symbol, [in] BSTR Month, [in] BSTR CallPut, [out,retval] BSTR* RetVal);
Parameters
类型
说明
Classify
string
分类表ID
Exchange
string
交易所
Symbol
string
商品
Month
string
月份
CallPut
string
Call Put
GetInstrumentInfo
取得商品资讯
GetInstrumentInfo([in] BSTR Type, [in] BSTR SymbolID, [out,retval] BSTR* bstrRetVal);
Parameters
类型
说明
Type
string
1 : 上手分母值
2 : 跳动档位
3 : 交易时间
4 : 显示乘数
5 : 显示分母
6 : 合约单位(点值 )
7 : 可下价格旗标 Market,Limit,Stop,StopLimit
8 : 可下单ROD,IOC,FOK,GTC,GTD
HotMonth : 热门月
HotMonth2 : 热门月2
Instrument : 期权交易代码
SymbolID
string
商品ID
GetExpirationDate
取得合约到期日。
GetExpirationDate([in] BSTR SymbolID, [out,retval] BSTR* pstrDate);
Parameters
类型
说明
SymbolID
string
商品ID
GetProductCurrency
取得商品币别。
GetProductCurrency([in] BSTR SymbolID, [out,retval] BSTR* Currency);
Parameters
类型
说明
SymbolID
string
商品ID
GetCurrencyExchangeRate
取得币别汇率。
GetCurrencyExchangeRate([in] BSTR Currency, [out,retval] BSTR* ExchangeRate);
Parameters
类型
说明
Currency
string
币别对应,ex.US/HK。
Last updated
Was this helpful?