金仕达个股期权系统客户端API接口 1.0.31212
|
KingstarAPI::CKSOTPTraderSpi类参考
#include <KSOTPTraderApi.h>
公有成员 | |
virtual void | OnFrontConnected () |
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用. | |
virtual void | OnFrontDisconnected (int nReason) |
virtual void | OnRspUserLogin (CKSOTPRspUserLoginField *pRspUserLogin, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
登录请求响应 | |
virtual void | OnRspUserLogout (CKSOTPUserLogoutField *pUserLogout, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
登出请求响应 | |
virtual void | OnRspUserPasswordUpdate (CKSOTPUserPasswordUpdateField *pUserPasswordUpdate, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
用户口令更新请求响应 | |
virtual void | OnRspTradingAccountPasswordUpdate (CKSOTPTradingAccountPasswordUpdateField *pTradingAccountPasswordUpdate, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
资金账户口令更新请求响应 | |
virtual void | OnRspOrderInsert (CKSOTPInputOrderField *pInputOrder, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
报单录入请求响应 | |
virtual void | OnRspOrderAction (CKSOTPInputOrderActionField *pInputOrderAction, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
报单操作请求响应 | |
virtual void | OnRspQryOrder (CKSOTPOrderField *pOrder, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询报单响应 | |
virtual void | OnRspQryTrade (CKSOTPTradeField *pTrade, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询成交响应 | |
virtual void | OnRspQryInvestorPosition (CKSOTPInvestorPositionField *pInvestorPosition, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询投资者持仓响应 | |
virtual void | OnRspQryTradingAccount (CKSOTPTradingAccountField *pTradingAccount, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询资金账户响应 | |
virtual void | OnRspQryInvestor (CKSOTPInvestorField *pInvestor, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询投资者响应 | |
virtual void | OnRspQryTradingCode (CKSOTPTradingCodeField *pTradingCode, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询合约账号响应 | |
virtual void | OnRspQryExchange (CKSOTPExchangeField *pExchange, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询交易所响应 | |
virtual void | OnRspQryInstrument (CKSOTPInstrumentField *pInstrument, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询合约响应 | |
virtual void | OnRspQryInvestorPositionDetail (CKSOTPInvestorPositionDetailField *pInvestorPositionDetail, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询投资者持仓明细响应 | |
virtual void | OnRspQryTradingNotice (CKSOTPTradingNoticeField *pTradingNotice, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询交易通知响应 | |
virtual void | OnRspNonTradingOrderInsert (CKSOTPInputNonTradingOrderField *pInputNonTradingOrder, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
非交易报单录入请求响应 | |
virtual void | OnRspNonTradingOrderAction (CKSOTPInputNonTradingOrderActionField *pInputNonTradingOrderAction, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
非交易报单操作请求响应 | |
virtual void | OnRspQryNonTradingOrder (CKSOTPNonTradingOrderField *pNonTradingOrder, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询非交易报单响应 | |
virtual void | OnRspQryNonTradingOrderVolume (CKSOTPNonTradingOrderVolumeField *pNonTradingOrderVolume, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
查询非交易报单量请求响应 | |
virtual void | OnRspQryUnderlyingStockInfo (CKSOTPUnderlyingStockInfoField *pOTPUnderlyingStockInfo, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
请求查询标的券信息响应 | |
virtual void | OnRspQryOTPInsCommRate (CKSOTPOTPInsCommRateField *pOTPInsCommRate, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
查询个股期权手续费率请求响应 | |
virtual void | OnRspQryOTPInsMarginRate (CKSOTPOTPInsMarginRateField *pOTPInsMarginRate, CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
查询个股期权保证金率请求响应 | |
virtual void | OnRspError (CKSOTPRspInfoField *pRspInfo, int nRequestID, bool bIsLast) |
错误应答 | |
virtual void | OnRtnOrder (CKSOTPOrderField *pOrder) |
报单通知 | |
virtual void | OnRtnTrade (CKSOTPTradeField *pTrade) |
成交通知 | |
virtual void | OnRtnNonTradingOrder (CKSOTPNonTradingOrderField *pNonTradingOrder) |
非交易报单通知 | |
virtual void | OnRtnInstrumentStatus (CKSOTPInstrumentStatusField *pInstrumentStatus) |
合约交易状态通知 | |
virtual void | OnRtnTradingNotice (CKSOTPTradingNoticeInfoField *pTradingNoticeInfo) |
交易通知 |
成员函数文档
virtual void KingstarAPI::CKSOTPTraderSpi::OnFrontConnected | ( | ) | [inline, virtual] |
当客户端与交易后台建立起通信连接时(还未登录前),该方法被调用.
virtual void KingstarAPI::CKSOTPTraderSpi::OnFrontDisconnected | ( | int | nReason | ) | [inline, virtual] |
当客户端与交易后台通信连接断开时,该方法被调用.
- 参数:
-
nReason 错误原因 0x1001 网络读失败 0x1002 网络写失败 0x2001 接收心跳超时 0x2002 发送心跳失败 0x2003 收到错误报文 0x2004 服务器主动断开
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspUserLogin | ( | CKSOTPRspUserLoginField * | pRspUserLogin, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
登录请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspUserLogout | ( | CKSOTPUserLogoutField * | pUserLogout, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
登出请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspUserPasswordUpdate | ( | CKSOTPUserPasswordUpdateField * | pUserPasswordUpdate, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
用户口令更新请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspTradingAccountPasswordUpdate | ( | CKSOTPTradingAccountPasswordUpdateField * | pTradingAccountPasswordUpdate, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
资金账户口令更新请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspOrderInsert | ( | CKSOTPInputOrderField * | pInputOrder, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
报单录入请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspOrderAction | ( | CKSOTPInputOrderActionField * | pInputOrderAction, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
报单操作请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryOrder | ( | CKSOTPOrderField * | pOrder, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询报单响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryTrade | ( | CKSOTPTradeField * | pTrade, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询成交响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryInvestorPosition | ( | CKSOTPInvestorPositionField * | pInvestorPosition, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询投资者持仓响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryTradingAccount | ( | CKSOTPTradingAccountField * | pTradingAccount, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询资金账户响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryInvestor | ( | CKSOTPInvestorField * | pInvestor, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询投资者响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryTradingCode | ( | CKSOTPTradingCodeField * | pTradingCode, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询合约账号响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryExchange | ( | CKSOTPExchangeField * | pExchange, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询交易所响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryInstrument | ( | CKSOTPInstrumentField * | pInstrument, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询合约响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryInvestorPositionDetail | ( | CKSOTPInvestorPositionDetailField * | pInvestorPositionDetail, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询投资者持仓明细响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryTradingNotice | ( | CKSOTPTradingNoticeField * | pTradingNotice, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询交易通知响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspNonTradingOrderInsert | ( | CKSOTPInputNonTradingOrderField * | pInputNonTradingOrder, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
非交易报单录入请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspNonTradingOrderAction | ( | CKSOTPInputNonTradingOrderActionField * | pInputNonTradingOrderAction, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
非交易报单操作请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryNonTradingOrder | ( | CKSOTPNonTradingOrderField * | pNonTradingOrder, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询非交易报单响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryNonTradingOrderVolume | ( | CKSOTPNonTradingOrderVolumeField * | pNonTradingOrderVolume, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
查询非交易报单量请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryUnderlyingStockInfo | ( | CKSOTPUnderlyingStockInfoField * | pOTPUnderlyingStockInfo, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
请求查询标的券信息响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryOTPInsCommRate | ( | CKSOTPOTPInsCommRateField * | pOTPInsCommRate, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
查询个股期权手续费率请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspQryOTPInsMarginRate | ( | CKSOTPOTPInsMarginRateField * | pOTPInsMarginRate, |
CKSOTPRspInfoField * | pRspInfo, | ||
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
查询个股期权保证金率请求响应
virtual void KingstarAPI::CKSOTPTraderSpi::OnRspError | ( | CKSOTPRspInfoField * | pRspInfo, |
int | nRequestID, | ||
bool | bIsLast | ||
) | [inline, virtual] |
错误应答
virtual void KingstarAPI::CKSOTPTraderSpi::OnRtnOrder | ( | CKSOTPOrderField * | pOrder | ) | [inline, virtual] |
报单通知
virtual void KingstarAPI::CKSOTPTraderSpi::OnRtnTrade | ( | CKSOTPTradeField * | pTrade | ) | [inline, virtual] |
成交通知
virtual void KingstarAPI::CKSOTPTraderSpi::OnRtnNonTradingOrder | ( | CKSOTPNonTradingOrderField * | pNonTradingOrder | ) | [inline, virtual] |
非交易报单通知
virtual void KingstarAPI::CKSOTPTraderSpi::OnRtnInstrumentStatus | ( | CKSOTPInstrumentStatusField * | pInstrumentStatus | ) | [inline, virtual] |
合约交易状态通知
virtual void KingstarAPI::CKSOTPTraderSpi::OnRtnTradingNotice | ( | CKSOTPTradingNoticeInfoField * | pTradingNoticeInfo | ) | [inline, virtual] |
交易通知
该类的文档由以下文件生成:
- KSOTPTraderApi.h
Generated at for 金仕达极速交易系统客户端API接口文档