.. role:: strike :class: strike .. role:: red-strengthen :class: red-strengthen ========== 行情API ========== -------------- .. _GetGlobalState: ../protocol/base_define.html#getglobalstate-proto-1002 .. _Sub: ../protocol/quote_protocol.html#qot-sub-proto-3001 .. _RegQotPush: ../protocol/quote_protocol.html#qot-regqotpush-proto-3002 .. _GetSubInfo: ../protocol/quote_protocol.html#qot-getsubinfo-proto-3003 .. _GetTicker: ../protocol/quote_protocol.html#qot-getticker-proto-3010 .. _GetBasicQot: ../protocol/quote_protocol.html#qot-getbasicqot-proto-3004 .. _GetOrderBook: ../protocol/quote_protocol.html#qot-getorderbook-proto-3012 .. _GetKL: ../protocol/quote_protocol.html#qot-getkl-proto-3006k .. _GetRT: ../protocol/quote_protocol.html#qot-getrt-proto-3008 .. _GetBroker: ../protocol/quote_protocol.html#qot-getbroker-proto-3014 .. _GetHistoryKL: ../protocol/quote_protocol.html#qot-gethistorykl-proto-3100k .. _GetHistoryKLPoints: ../protocol/quote_protocol.html#qot-gethistoryklpoints-proto-3101k .. _GetRehab: ../protocol/quote_protocol.html#qot-getrehab-proto-3102 .. _RequestRehab: ../protocol/quote_protocol.html#qot-requestrehab-proto-3105 .. _RequestHistoryKL: ../protocol/quote_protocol.html#qot-requesthistorykl-proto-3103k .. _RequestHistoryKLQuota: ../protocol/quote_protocol.html#qot-requesthistoryklquota-proto-3104k .. _GetTradeDate: ../protocol/quote_protocol.html#qot-gettradedate-proto-3200 .. _GetStaticInfo: ../protocol/quote_protocol.html#qot-getstaticinfo-proto-3202 .. _GetSecuritySnapshot: ../protocol/quote_protocol.html#qot-getsecuritysnapshot-proto-3203 .. _GetPlateSet: ../protocol/quote_protocol.html#qot-getplateset-proto-3204 .. _GetPlateSecurity: ../protocol/quote_protocol.html#qot-getplatesecurity-proto-3205 .. _GetReference: ../protocol/quote_protocol.html#qot-getreference-proto-3206 .. _GetOwnerPlate: ../protocol/quote_protocol.html#qot-getownerplate-proto-3207 .. _GetHoldingChangeList: ../protocol/quote_protocol.html#qot-getholdingchangelist-proto-3208 .. _GetOptionChain: ../protocol/quote_protocol.html#qot-getoptionchain-proto-3209 .. _GetWarrant: ../protocol/quote_protocol.html#qot-getwarrant-proto-3210 .. _GetCapitalFlow: ../protocol/quote_protocol.html#qot-getcapitalflow-proto-3211 .. _GetCapitalDistribution: ../protocol/quote_protocol.html#qot-getcapitaldistribution-proto-3212 .. _GetUserSecurity: ../protocol/quote_protocol.html#qot-getusersecurity-proto-3213 .. _ModifyUserSecurity: ../protocol/quote_protocol.html#qot-modifyusersecurity-proto-3214 .. _OnPush_Notify: ../protocol/base_define.html#notify-proto-1003 .. _OnPush_UpdateBasicQot: ../protocol/quote_protocol.html#qot-updatebasicqot-proto-3005 .. _OnPush_UpdateKL: ../protocol/quote_protocol.html#qot-updatekl-proto-3007k .. _OnPush_UpdateRT: ../protocol/quote_protocol.html#qot-updatert-proto-3009 .. _OnPush_UpdateTicker: ../protocol/quote_protocol.html#qot-updateticker-proto-3011 .. _OnPush_UpdateOrderBook: ../protocol/quote_protocol.html#qot-updateorderbook-proto-3013 .. _OnPush_UpdateBroker: ../protocol/quote_protocol.html#qot-updatebroker-proto-3015 --------------------------------------------------- 主要函数列表 --------------- FTAPI_Qot成员函数 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + FTAPI_Qot继承自\ `FTAPI_Conn <./base.html#ftapi-conn>`_ ,连接层调用接口参考FTAPI_Conn说明。 ================================ ============================================== ============================== 函数名(点开链接可查看具体协议) 功能简介 回调函数(FTSPI_Qot) ================================ ============================================== ============================== GetGlobalState_ 获取全局状态 OnReply_GetGlobalState Sub_ 订阅或者反订阅 OnReply_Sub RegQotPush_ 注册推送 OnReply_RegQotPush GetSubInfo_ 获取订阅信息 OnReply_GetSubInfo GetTicker_ 获取逐笔,调用该接口前需要先订阅 OnReply_GetTicker GetBasicQot_ 获取基本行情,调用该接口前需要先订阅 OnReply_GetBasicQot GetOrderBook_ 获取摆盘,调用该接口前需要先订阅 OnReply_GetOrderBook GetKL_ 获取K线,调用该接口前需要先订阅 OnReply_GetKL GetRT_ 获取分时,调用该接口前需要先订阅 OnReply_GetRT GetBroker_ 获取经纪队列,调用该接口前需要先订阅 OnReply_GetBroker RequestRehab_ 在线请求历史复权信息,不读本地历史数据DB OnReply_RequestRehab RequestHistoryKL_ 在线请求历史K线,不读本地历史数据DB OnReply_RequestHistoryKL RequestHistoryKLQuota_ 获取历史K线已经用掉的额度 OnReply_RequestHistoryKLQuota GetTradeDate_ 获取交易日 OnReply_GetTradeDate GetStaticInfo_ 获取静态信息 OnReply_GetStaticInfo GetSecuritySnapshot_ 获取股票快照 OnReply_GetSecuritySnapshot GetPlateSet_ 获取板块集合下的板块 OnReply_GetPlateSet GetPlateSecurity_ 获取板块下的股票 OnReply_GetPlateSecurity GetReference_ 获取相关股票 OnReply_GetReference GetOwnerPlate_ 获取股票所属的板块 OnReply_GetOwnerPlate GetHoldingChangeList_ 获取大股东持股变化列表 OnReply_GetHoldingChangeList GetOptionChain_ 筛选期权 OnReply_GetOptionChain GetWarrant_ 筛选窝轮 OnReply_GetWarrant GetCapitalFlow_ 获取资金流向 OnReply_GetCapitalFlow GetCapitalDistribution_ 获取资金分布 OnReply_GetCapitalDistribution GetUserSecurity_ 获取自选股分组下的股票 OnReply_GetUserSecurity ModifyUserSecurity_ 修改自选股分组下的股票 OnReply_ModifyUserSecurity ================================ ============================================== ============================== FTSPI_Qot行情推送接收接口函数 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ================================== ================================================= 回调函数(点开链接可查看具体协议) 功能简介 ================================== ================================================= OnPush_Notify_ 推送通知 OnPush_UpdateBasicQot_ 推送基本行情 OnPush_UpdateKL_ 推送K线 OnPush_UpdateRT_ 推送分时 OnPush_UpdateTicker_ 推送逐笔 OnPush_UpdateOrderBook_ 推送买卖盘 OnPush_UpdateBroker_ 推送经纪队列 ================================== =================================================