com.moomoo.openapi.MMSPI_Qot Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moomoo-api Show documentation
Show all versions of moomoo-api Show documentation
Moomoo OpenAPI quantitative transaction interface for Java.
The newest version!
package com.moomoo.openapi;
import com.moomoo.openapi.pb.*;
/***
* 行情请求返回的回调函数
*/
public interface MMSPI_Qot {
default void onReply_GetGlobalState(MMAPI_Conn client, int nSerialNo, GetGlobalState.Response rsp){} //获取全局状态回调
default void onReply_Sub(MMAPI_Conn client, int nSerialNo, QotSub.Response rsp){} //订阅或者反订阅回调
default void onReply_RegQotPush(MMAPI_Conn client, int nSerialNo, QotRegQotPush.Response rsp){} //注册推送回调
default void onReply_GetSubInfo(MMAPI_Conn client, int nSerialNo, QotGetSubInfo.Response rsp){} //获取订阅信息回调
default void onReply_GetTicker(MMAPI_Conn client, int nSerialNo, QotGetTicker.Response rsp){} //获取逐笔,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_Ticker)回调
default void onReply_GetBasicQot(MMAPI_Conn client, int nSerialNo, QotGetBasicQot.Response rsp){} //获取基本行情,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_Basic)回调
default void onReply_GetOrderBook(MMAPI_Conn client, int nSerialNo, QotGetOrderBook.Response rsp){} //获取摆盘,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_OrderBook)回调
default void onReply_GetKL(MMAPI_Conn client, int nSerialNo, QotGetKL.Response rsp){} //获取K线,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_KL_XXX)回调
default void onReply_GetRT(MMAPI_Conn client, int nSerialNo, QotGetRT.Response rsp){} //获取分时,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_RT)回调
default void onReply_GetBroker(MMAPI_Conn client, int nSerialNo, QotGetBroker.Response rsp){} //获取经纪队列,调用该接口前需要先订阅(订阅位:Qot_Common.SubType_Broker)回调
default void onReply_RequestRehab(MMAPI_Conn client, int nSerialNo, QotRequestRehab.Response rsp){} //在线请求历史复权信息,不读本地历史数据DB回调
default void onReply_RequestHistoryKL(MMAPI_Conn client, int nSerialNo, QotRequestHistoryKL.Response rsp){} //在线请求历史K线,不读本地历史数据DB回调
default void onReply_RequestHistoryKLQuota(MMAPI_Conn client, int nSerialNo, QotRequestHistoryKLQuota.Response rsp){} //获取历史K线已经用掉的额度回调
default void onReply_GetStaticInfo(MMAPI_Conn client, int nSerialNo, QotGetStaticInfo.Response rsp){} //获取静态信息回调
default void onReply_GetSecuritySnapshot(MMAPI_Conn client, int nSerialNo, QotGetSecuritySnapshot.Response rsp){} //获取股票快照回调
default void onReply_GetPlateSet(MMAPI_Conn client, int nSerialNo, QotGetPlateSet.Response rsp){} //获取板块集合下的板块回调
default void onReply_GetPlateSecurity(MMAPI_Conn client, int nSerialNo, QotGetPlateSecurity.Response rsp){} //获取板块下的股票回调
default void onReply_GetReference(MMAPI_Conn client, int nSerialNo, QotGetReference.Response rsp){} //获取相关股票回调
default void onReply_GetOwnerPlate(MMAPI_Conn client, int nSerialNo, QotGetOwnerPlate.Response rsp){} //获取股票所属的板块回调
default void onReply_GetHoldingChangeList(MMAPI_Conn client, int nSerialNo, QotGetHoldingChangeList.Response rsp){} //获取大股东持股变化列表回调
default void onReply_GetOptionChain(MMAPI_Conn client, int nSerialNo, QotGetOptionChain.Response rsp){} //筛选期权回调
default void onReply_GetWarrant(MMAPI_Conn client, int nSerialNo, QotGetWarrant.Response rsp){} //筛选窝轮回调
default void onReply_GetCapitalFlow(MMAPI_Conn client, int nSerialNo, QotGetCapitalFlow.Response rsp){} //获取资金流向回调
default void onReply_GetCapitalDistribution(MMAPI_Conn client, int nSerialNo, QotGetCapitalDistribution.Response rsp){} //获取资金分布回调
default void onReply_GetUserSecurity(MMAPI_Conn client, int nSerialNo, QotGetUserSecurity.Response rsp){} //获取自选股分组下的股票回调
default void onReply_ModifyUserSecurity(MMAPI_Conn client, int nSerialNo, QotModifyUserSecurity.Response rsp){} //修改自选股分组下的股票回调
default void onReply_StockFilter(MMAPI_Conn client, int nSerialNo, QotStockFilter.Response rsp){} //条件选股
default void onReply_GetCodeChange(MMAPI_Conn client, int nSerialNo, QotGetCodeChange.Response rsp){} //获取股票代码变化信息
default void onReply_GetIpoList(MMAPI_Conn client, int nSerialNo, QotGetIpoList.Response rsp){} //获取IPO列表
default void onReply_GetFutureInfo(MMAPI_Conn client, int nSerialNo, QotGetFutureInfo.Response rsp){} //获取期货合约资料
default void onReply_RequestTradeDate(MMAPI_Conn client, int nSerialNo, QotRequestTradeDate.Response rsp){} //在线拉取交易日
default void onReply_SetPriceReminder(MMAPI_Conn client, int nSerialNo, QotSetPriceReminder.Response rsp){} //设置到价提醒
default void onReply_GetPriceReminder(MMAPI_Conn client, int nSerialNo, QotGetPriceReminder.Response rsp){} //获取到价提醒
default void onReply_GetUserSecurityGroup(MMAPI_Conn client, int nSerialNo, QotGetUserSecurityGroup.Response rsp){} //获取自选股分组
default void onReply_GetMarketState(MMAPI_Conn client, int nSerialNo, QotGetMarketState.Response rsp){} //获取指定品种的市场状态
default void onReply_GetOptionExpirationDate(MMAPI_Conn client, int nSerialNo, QotGetOptionExpirationDate.Response rsp){} //获取指定品种的市场状态
default void onPush_Notify(MMAPI_Conn client, Notify.Response rsp){} //推送系统通知
default void onPush_UpdateOrderBook(MMAPI_Conn client, QotUpdateOrderBook.Response rsp){} //推送摆盘
default void onPush_UpdateBasicQuote(MMAPI_Conn client, QotUpdateBasicQot.Response rsp){} //推送报价
default void onPush_UpdateKL(MMAPI_Conn client, QotUpdateKL.Response rsp){} //推送K线
default void onPush_UpdateRT(MMAPI_Conn client, QotUpdateRT.Response rsp){} //推送分时
default void onPush_UpdateTicker(MMAPI_Conn client, QotUpdateTicker.Response rsp){} //推送逐笔
default void onPush_UpdateBroker(MMAPI_Conn client, QotUpdateBroker.Response rsp){} //推送经纪队列
default void onPush_UpdatePriceReminder(MMAPI_Conn client, QotUpdatePriceReminder.Response rsp){} //到价提醒通知
}