# 決算カレンダーの取得
- Python
- Proto
- C#
- Java
- C++
- JavaScript
get_earnings_calendar(market, sort_type=None, begin_date=None, end_date=None, filter_list=None)
説明
決算カレンダーを取得します。指定市場で指定日付範囲内に決算発表予定または発表済みの銘柄リストを返します。決算日、EPS/売上高/EBITの実績値と予測値、オプションインプライドボラティリティなどの情報を含みます。
パラメータ
パラメータ タイプ 説明 market Market 市場タイプ(必須) sort_type EarningsCalendarSortType ソートタイプ(デフォルト Hot) begin_date str 開始日付、フォーマット "yyyy-MM-dd"、未指定の場合デフォルト今日(当日のみ取得) end_date str 終了日付、フォーマット "yyyy-MM-dd"、未指定の場合 beginDate 当日のみ取得;beginDate との間隔は7日以内 filter_list list[ EarningsCalendarFilter]フィルタ条件リスト(複数条件はAND関係) 入力制限
filter_listフィルター条件(EarningsCalendarFilter):EarningsCalendarFilterでフィルター条件を構築し、2種類のフィルター方式をサポート:コンストラクタパラメータ 説明 indicator_typeフィルター指標タイプ( EarningsCalendarIndicatorType、必須)value_list正確な値リスト(発表タイプ、指標タイプ、銘柄リストタイプなどの列挙型フィルターに使用) interval_min/interval_max範囲フィルターの最小/最大値 min_inclusive/max_inclusive範囲境界を含むかどうか(デフォルト True)
戻り値
パラメータ タイプ 説明 ret RET_CODE API呼び出し結果 data pd.DataFrame ret == RET_OK の場合、データを返す str ret != RET_OK の場合、エラー説明を返す - データフォーマット:
フィールド タイプ 説明 security str 銘柄コード(例 'US.AAPL')name str 銘柄名 earnings_date str 決算日付("yyyy-MM-dd") earnings_timestamp float 決算発表タイムスタンプ(Unix秒) pub_type str 発表タイプ(BEFORE=プレマーケット / AFTER=アフターマーケット / REGULAR=取引時間中) period_text str 会計年度期間(例 '2025Q1')eps_actual float EPS 実績値(発表済みの場合に値あり) eps_predict float EPS 予測値 revenue_actual float 総売上高実績値(発表済みの場合に値あり) revenue_predict float 総売上高予測値 ebit_actual float EBIT 実績値(発表済みの場合に値あり) ebit_predict float EBIT 予測値 option_volume int オプション出来高(香港・米国株のみ) iv float インプライドボラティリティ(%)(香港・米国株のみ) iv_rank float IVランク(%)(香港・米国株のみ) iv_percentile float IVパーセンタイル(%)(香港・米国株のみ) market_cap float リアルタイム時価総額 price float 最新価格
- データフォーマット:
Example
from futu import *
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data = quote_ctx.get_earnings_calendar(market=Market.US)
if ret == RET_OK:
print(data.head(2))
else:
print('error:', data)
quote_ctx.close()
2
3
4
5
6
7
8
9
10
11
- Output
security name earnings_date earnings_timestamp pub_type period_text eps_actual eps_predict revenue_actual revenue_predict ebit_actual ebit_predict option_volume iv iv_rank iv_percentile market_cap price
0 US.MU 美光科技 2026-06-24 1.782331e+09 AFTER 2026Q3 N/A 20.8654 N/A 35251836320.0 N/A 26879423830.0 633420 113.795 97.754 98.015 1.186117e+12 1051.77
1 US.PAYX 沛齐 2026-06-24 1.782308e+09 BEFORE 2026Q4 N/A 1.2167 N/A 1606293190.0 N/A 661853410.0 6603 42.209 85.862 93.650 3.510892e+10 97.99
2
3
# Qot_GetEarningsCalendar.proto
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
プロトコルID
3401
uint GetEarningsCalendar(Qot_GetEarningsCalendar.Request req);
virtual void OnReply_GetEarningsCalendar(FTAPI_Conn client, uint nSerialNo, Qot_GetEarningsCalendar.Response rsp);
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
public class Program : FTSPI_Qot, FTSPI_Conn {
FTAPI_Qot qot = new FTAPI_Qot();
public Program() {
qot.SetClientInfo("csharp", 1); //设置客户端信息
qot.SetConnCallback(this); //设置连接回调
qot.SetQotCallback(this); //设置行情回调
}
public void Start() {
qot.InitConnect("127.0.0.1", (ushort)11111, false);
}
public void OnInitConnect(FTAPI_Conn client, long errCode, String desc)
{
Console.Write("Qot onInitConnect: ret={0} desc={1} connID={2}
", errCode, desc, client.GetConnectID());
if (errCode != 0)
return;
QotGetEarningsCalendar.C2S c2s = QotGetEarningsCalendar.C2S.CreateBuilder()
.SetBeginDate("2026-06-22")
.SetEndDate("2026-06-22")
.SetMarket(11)
.Build();
QotGetEarningsCalendar.Request req = QotGetEarningsCalendar.Request.CreateBuilder().SetC2S(c2s).Build();
uint seqNo = qot.GetEarningsCalendar(req);
Console.Write("Send QotGetEarningsCalendar: {0}
", seqNo);
}
public void OnDisconnect(FTAPI_Conn client, long errCode) {
Console.Write("Qot onDisConnect: {0}
", errCode);
}
public void OnReply_GetEarningsCalendar(FTAPI_Conn client, uint nSerialNo, QotGetEarningsCalendar.Response rsp)
{
Console.Write("Reply: QotGetEarningsCalendar: {0}
", nSerialNo);
if (rsp.RetType == 0 && rsp.HasS2C)
Console.Write("{0}
", rsp.ToString());
}
public static void Main(String[] args) {
FTAPI.Init();
Program program = new Program();
program.Start();
while (true)
Thread.Sleep(1000 * 600);
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- Output
Send QotGetEarningsCalendar: 3
Reply: QotGetEarningsCalendar: 3
GetEarningsCalendar: errCode 0, retMsg , retType 0
{
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
9
10
int getEarningsCalendar(Qot_GetEarningsCalendar.Request req);
onReply_GetEarningsCalendar(FTAPI_Conn client, int nSerialNo, Qot_GetEarningsCalendar.Response rsp)
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
public class QotDemo implements FTSPI_Qot, FTSPI_Conn {
FTAPI_Conn_Qot qot = new FTAPI_Conn_Qot();
public QotDemo() {
qot.setClientInfo("javaclient", 1); //设置客户端信息
qot.setConnSpi(this); //设置连接回调
qot.setQotSpi(this); //设置行情回调
}
public void start() {
qot.initConnect("127.0.0.1", (short)11111, false);
}
@Override
public void onInitConnect(FTAPI_Conn client, long errCode, String desc)
{
System.out.printf("Qot onInitConnect: ret=%d desc=%s connID=%d
", errCode, desc, client.getConnectID());
if (errCode != 0)
return;
QotGetEarningsCalendar.C2S c2s = QotGetEarningsCalendar.C2S.newBuilder()
.setBeginDate("2026-06-22")
.setEndDate("2026-06-22")
.setMarket(11)
.build();
QotGetEarningsCalendar.Request req = QotGetEarningsCalendar.Request.newBuilder().setC2S(c2s).build();
int seqNo = qot.getEarningsCalendar(req);
System.out.printf("Send QotGetEarningsCalendar: %d
", seqNo);
}
@Override
public void onDisconnect(FTAPI_Conn client, long errCode) {
System.out.printf("Qot onDisConnect: %d
", errCode);
}
@Override
public void onReply_GetEarningsCalendar(FTAPI_Conn client, int nSerialNo, QotGetEarningsCalendar.Response rsp) {
if (rsp.getRetType() != 0) {
System.out.printf("QotGetEarningsCalendar failed: %s
", rsp.getRetMsg());
} else {
try {
String json = JsonFormat.printer().print(rsp);
System.out.printf("Receive QotGetEarningsCalendar: %s
", json);
} catch (InvalidProtocolBufferException e) {
e.printStackTrace();
}
}
}
public static void main(String[] args) {
FTAPI.init();
QotDemo qot = new QotDemo();
qot.start();
while (true) {
try {
Thread.sleep(1000 * 600);
} catch (InterruptedException exc) {
}
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- Output
Send QotGetEarningsCalendar: 3
Receive QotGetEarningsCalendar: {
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
Futu::u32_t GetEarningsCalendar(const Qot_GetEarningsCalendar::Request &stReq);
virtual void OnReply_GetEarningsCalendar(Futu::u32_t nSerialNo, const Qot_GetEarningsCalendar::Response &stRsp) = 0;
概要
プロトコルリクエストとレスポンスの定義
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API 呼び出し結果,構造は~を参照: RetType
プロトコル ID
3401
Example
class Program : public FTSPI_Qot, public FTSPI_Conn
{
public:
Program() {
m_pQotApi = FTAPI::CreateQotApi();
m_pQotApi->RegisterQotSpi(this);
m_pQotApi->RegisterConnSpi(this);
}
~Program() {
if (m_pQotApi != nullptr) {
m_pQotApi->UnregisterQotSpi();
m_pQotApi->UnregisterConnSpi();
FTAPI::ReleaseQotApi(m_pQotApi);
m_pQotApi = nullptr;
}
}
void Start() {
m_pQotApi->InitConnect("127.0.0.1", 11111, false);
}
virtual void OnInitConnect(FTAPI_Conn* pConn, Futu::i64_t nErrCode, const char* strDesc) {
Qot_GetEarningsCalendar::Request req;
Qot_GetEarningsCalendar::C2S *c2s = req.mutable_c2s();
c2s->set_market(Qot_Common::QotMarket::QotMarket_US_Security);
c2s->set_begindate("2024-06-01");
c2s->set_enddate("2024-06-07");
m_GetEarningsCalendarSerialNo = m_pQotApi->GetEarningsCalendar(req);
}
virtual void OnReply_GetEarningsCalendar(Futu::u32_t nSerialNo, const Qot_GetEarningsCalendar::Response &stRsp) {
if (nSerialNo != m_GetEarningsCalendarSerialNo) return;
string resp_str;
ProtoBufToBodyData(stRsp, resp_str);
cout << UTF8ToLocal(resp_str) << endl;
}
protected:
FTAPI_Qot *m_pQotApi;
Futu::u32_t m_GetEarningsCalendarSerialNo = 0;
};
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- Output
{
"retType": 0,
"retMsg": "",
"errCode": 0,
"s2c": {
"itemList": [
{
"security": {
"market": 11,
"code": "AAPL"
},
"name": "Apple",
"earningsDate": "2024-07-30",
"pubType": 2,
"periodText": "2024Q3",
"estimateList": [
{
"estimateType": 1,
"predictValue": 1.35
}
]
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
getEarningsCalendar(qotGetEarningsCalendar)
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
import ftWebsocket from "futu-api";
import { Common, Qot_Common } from "futu-api/proto";
import beautify from "js-beautify";
function QotGetEarningsCalendar(){
const { RetType } = Common
let [addr, port, enable_ssl, key] = ["127.0.0.1", 11111, false, "xxxxxx"];
let websocket = new ftWebsocket();
websocket.onlogin = (ret, msg)=>{
if (ret) {
const req = {
c2s: {
market: 11, // Qot_Common.QotMarket_US
beginDate: "2026-06-22",
endDate: "2026-06-22",
},
};
websocket.GetEarningsCalendar(req)
.then((res)=>{
let { errCode, retMsg, retType, s2c } = res
console.log("GetEarningsCalendar: errCode %d, retMsg %s, retType %d", errCode, retMsg, retType);
if(retType == RetType.RetType_Succeed){
let data = beautify(JSON.stringify(s2c), { indent_size: 2, space_in_empty_paren: true });
console.log(data);
}
})
.catch((error)=>{ console.log("error:", error); });
} else {
console.log("start error", msg);
}
};
websocket.start(addr, port, enable_ssl, key);
setTimeout(()=>{ websocket.stop(); process.exit(); }, 5000);
}
QotGetEarningsCalendar()
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- Output
GetEarningsCalendar: errCode 0, retMsg , retType 0
{
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
API制限
- 30秒以内に最大60回のリクエストが可能です
- ページネーションリクエストは最初のページのみレート制限にカウントされます
- Python
- Proto
- C#
- Java
- C++
- JavaScript
get_earnings_calendar(market, sort_type=None, begin_date=None, end_date=None, filter_list=None)
説明
決算カレンダーを取得します。指定市場で指定日付範囲内に決算発表予定または発表済みの銘柄リストを返します。決算日、EPS/売上高/EBITの実績値と予測値、オプションインプライドボラティリティなどの情報を含みます。
パラメータ
パラメータ タイプ 説明 market Market 市場タイプ(必須) sort_type EarningsCalendarSortType ソートタイプ(デフォルト Hot) begin_date str 開始日付、フォーマット "yyyy-MM-dd"、未指定の場合デフォルト今日(当日のみ取得) end_date str 終了日付、フォーマット "yyyy-MM-dd"、未指定の場合 beginDate 当日のみ取得;beginDate との間隔は7日以内 filter_list list[ EarningsCalendarFilter]フィルタ条件リスト(複数条件はAND関係) 入力制限
filter_listフィルター条件(EarningsCalendarFilter):EarningsCalendarFilterでフィルター条件を構築し、2種類のフィルター方式をサポート:コンストラクタパラメータ 説明 indicator_typeフィルター指標タイプ( EarningsCalendarIndicatorType、必須)value_list正確な値リスト(発表タイプ、指標タイプ、銘柄リストタイプなどの列挙型フィルターに使用) interval_min/interval_max範囲フィルターの最小/最大値 min_inclusive/max_inclusive範囲境界を含むかどうか(デフォルト True)
戻り値
パラメータ タイプ 説明 ret RET_CODE API呼び出し結果 data pd.DataFrame ret == RET_OK の場合、データを返す str ret != RET_OK の場合、エラー説明を返す - データフォーマット:
フィールド タイプ 説明 security str 銘柄コード(例 'US.AAPL')name str 銘柄名 earnings_date str 決算日付("yyyy-MM-dd") earnings_timestamp float 決算発表タイムスタンプ(Unix秒) pub_type str 発表タイプ(BEFORE=プレマーケット / AFTER=アフターマーケット / REGULAR=取引時間中) period_text str 会計年度期間(例 '2025Q1')eps_actual float EPS 実績値(発表済みの場合に値あり) eps_predict float EPS 予測値 revenue_actual float 総売上高実績値(発表済みの場合に値あり) revenue_predict float 総売上高予測値 ebit_actual float EBIT 実績値(発表済みの場合に値あり) ebit_predict float EBIT 予測値 option_volume int オプション出来高(香港・米国株のみ) iv float インプライドボラティリティ(%)(香港・米国株のみ) iv_rank float IVランク(%)(香港・米国株のみ) iv_percentile float IVパーセンタイル(%)(香港・米国株のみ) market_cap float リアルタイム時価総額 price float 最新価格
- データフォーマット:
Example
from futu import *
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data = quote_ctx.get_earnings_calendar(market=Market.US)
if ret == RET_OK:
print(data.head(2))
else:
print('error:', data)
quote_ctx.close()
2
3
4
5
6
7
8
9
10
11
- Output
security name earnings_date earnings_timestamp pub_type period_text eps_actual eps_predict revenue_actual revenue_predict ebit_actual ebit_predict option_volume iv iv_rank iv_percentile market_cap price
0 US.MU 美光科技 2026-06-24 1.782331e+09 AFTER 2026Q3 N/A 20.8654 N/A 35251836320.0 N/A 26879423830.0 633420 113.795 97.754 98.015 1.186117e+12 1051.77
1 US.PAYX 沛齐 2026-06-24 1.782308e+09 BEFORE 2026Q4 N/A 1.2167 N/A 1606293190.0 N/A 661853410.0 6603 42.209 85.862 93.650 3.510892e+10 97.99
2
3
# Qot_GetEarningsCalendar.proto
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
プロトコルID
3401
uint GetEarningsCalendar(Qot_GetEarningsCalendar.Request req);
virtual void OnReply_GetEarningsCalendar(FTAPI_Conn client, uint nSerialNo, Qot_GetEarningsCalendar.Response rsp);
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
public class Program : MMSPI_Qot, MMSPI_Conn {
MMAPI_Qot qot = new MMAPI_Qot();
public Program() {
qot.SetClientInfo("csharp", 1); //设置客户端信息
qot.SetConnCallback(this); //设置连接回调
qot.SetQotCallback(this); //设置行情回调
}
public void Start() {
qot.InitConnect("127.0.0.1", (ushort)11111, false);
}
public void OnInitConnect(MMAPI_Conn client, long errCode, String desc)
{
Console.Write("Qot onInitConnect: ret={0} desc={1} connID={2}
", errCode, desc, client.GetConnectID());
if (errCode != 0)
return;
QotGetEarningsCalendar.C2S c2s = QotGetEarningsCalendar.C2S.CreateBuilder()
.SetBeginDate("2026-06-22")
.SetEndDate("2026-06-22")
.SetMarket(11)
.Build();
QotGetEarningsCalendar.Request req = QotGetEarningsCalendar.Request.CreateBuilder().SetC2S(c2s).Build();
uint seqNo = qot.GetEarningsCalendar(req);
Console.Write("Send QotGetEarningsCalendar: {0}
", seqNo);
}
public void OnDisconnect(MMAPI_Conn client, long errCode) {
Console.Write("Qot onDisConnect: {0}
", errCode);
}
public void OnReply_GetEarningsCalendar(MMAPI_Conn client, uint nSerialNo, QotGetEarningsCalendar.Response rsp)
{
Console.Write("Reply: QotGetEarningsCalendar: {0}
", nSerialNo);
if (rsp.RetType == 0 && rsp.HasS2C)
Console.Write("{0}
", rsp.ToString());
}
public static void Main(String[] args) {
MMAPI.Init();
Program program = new Program();
program.Start();
while (true)
Thread.Sleep(1000 * 600);
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
- Output
Send QotGetEarningsCalendar: 3
Reply: QotGetEarningsCalendar: 3
GetEarningsCalendar: errCode 0, retMsg , retType 0
{
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
9
10
int getEarningsCalendar(Qot_GetEarningsCalendar.Request req);
onReply_GetEarningsCalendar(FTAPI_Conn client, int nSerialNo, Qot_GetEarningsCalendar.Response rsp)
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
public class QotDemo implements MMSPI_Qot, MMSPI_Conn {
MMAPI_Conn_Qot qot = new MMAPI_Conn_Qot();
public QotDemo() {
qot.setClientInfo("javaclient", 1); //设置客户端信息
qot.setConnSpi(this); //设置连接回调
qot.setQotSpi(this); //设置行情回调
}
public void start() {
qot.initConnect("127.0.0.1", (short)11111, false);
}
@Override
public void onInitConnect(MMAPI_Conn client, long errCode, String desc)
{
System.out.printf("Qot onInitConnect: ret=%d desc=%s connID=%d
", errCode, desc, client.getConnectID());
if (errCode != 0)
return;
QotGetEarningsCalendar.C2S c2s = QotGetEarningsCalendar.C2S.newBuilder()
.setBeginDate("2026-06-22")
.setEndDate("2026-06-22")
.setMarket(11)
.build();
QotGetEarningsCalendar.Request req = QotGetEarningsCalendar.Request.newBuilder().setC2S(c2s).build();
int seqNo = qot.getEarningsCalendar(req);
System.out.printf("Send QotGetEarningsCalendar: %d
", seqNo);
}
@Override
public void onDisconnect(MMAPI_Conn client, long errCode) {
System.out.printf("Qot onDisConnect: %d
", errCode);
}
@Override
public void onReply_GetEarningsCalendar(MMAPI_Conn client, int nSerialNo, QotGetEarningsCalendar.Response rsp) {
if (rsp.getRetType() != 0) {
System.out.printf("QotGetEarningsCalendar failed: %s
", rsp.getRetMsg());
} else {
try {
String json = JsonFormat.printer().print(rsp);
System.out.printf("Receive QotGetEarningsCalendar: %s
", json);
} catch (InvalidProtocolBufferException e) {
e.printStackTrace();
}
}
}
public static void main(String[] args) {
MMAPI.init();
QotDemo qot = new QotDemo();
qot.start();
while (true) {
try {
Thread.sleep(1000 * 600);
} catch (InterruptedException exc) {
}
}
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
- Output
Send QotGetEarningsCalendar: 3
Receive QotGetEarningsCalendar: {
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
moomoo::u32_t GetEarningsCalendar(const Qot_GetEarningsCalendar::Request &stReq);
virtual void OnReply_GetEarningsCalendar(moomoo::u32_t nSerialNo, const Qot_GetEarningsCalendar::Response &stRsp) = 0;
概要
プロトコルリクエストとレスポンスの定義
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API 呼び出し結果,構造は~を参照: RetType
プロトコル ID
3401
Example
class Program : public MMSPI_Qot, public MMSPI_Conn
{
public:
Program() {
m_pQotApi = MMAPI::CreateQotApi();
m_pQotApi->RegisterQotSpi(this);
m_pQotApi->RegisterConnSpi(this);
}
~Program() {
if (m_pQotApi != nullptr) {
m_pQotApi->UnregisterQotSpi();
m_pQotApi->UnregisterConnSpi();
MMAPI::ReleaseQotApi(m_pQotApi);
m_pQotApi = nullptr;
}
}
void Start() {
m_pQotApi->InitConnect("127.0.0.1", 11111, false);
}
virtual void OnInitConnect(MMAPI_Conn* pConn, moomoo::i64_t nErrCode, const char* strDesc) {
Qot_GetEarningsCalendar::Request req;
Qot_GetEarningsCalendar::C2S *c2s = req.mutable_c2s();
c2s->set_market(Qot_Common::QotMarket::QotMarket_US_Security);
c2s->set_begindate("2024-06-01");
c2s->set_enddate("2024-06-07");
m_GetEarningsCalendarSerialNo = m_pQotApi->GetEarningsCalendar(req);
}
virtual void OnReply_GetEarningsCalendar(moomoo::u32_t nSerialNo, const Qot_GetEarningsCalendar::Response &stRsp) {
if (nSerialNo != m_GetEarningsCalendarSerialNo) return;
string resp_str;
ProtoBufToBodyData(stRsp, resp_str);
cout << UTF8ToLocal(resp_str) << endl;
}
protected:
MMAPI_Qot *m_pQotApi;
moomoo::u32_t m_GetEarningsCalendarSerialNo = 0;
};
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
- Output
{
"retType": 0,
"retMsg": "",
"errCode": 0,
"s2c": {
"itemList": [
{
"security": {
"market": 11,
"code": "AAPL"
},
"name": "Apple",
"earningsDate": "2024-07-30",
"pubType": 2,
"periodText": "2024Q3",
"estimateList": [
{
"estimateType": 1,
"predictValue": 1.35
}
]
}
]
}
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
getEarningsCalendar(qotGetEarningsCalendar)
説明
決算カレンダーを取得します,返回指定市场在指定日期范围内即将或已经发布财报的股票列表,包含财报日期、EPS/营收/EBIT 的实际值与预测值、期权隐含波动率等信息。
パラメータ
// 财报日历ソート类型
enum EarningsCalendarSortType {
EarningsCalendarSortType_Unknown = 0; //不明
EarningsCalendarSortType_Hot = 1; //热门(デフォルト)
EarningsCalendarSortType_MarketCap = 2; //過去時価総額
EarningsCalendarSortType_OptionVolume = 3; //期权出来高(仅港美股)
EarningsCalendarSortType_IV = 4; //インプライドボラティリティ(香港株・米国株のみ)
EarningsCalendarSortType_IVRank = 5; //IVランク(香港株・米国株のみ)
EarningsCalendarSortType_IVPercentile = 6; //IVパーセンタイル(香港株・米国株のみ)
EarningsCalendarSortType_RtMarketCap = 7; //リアルタイム時価総額
}
// 決算カレンダー発表タイプ
enum EarningsCalendarPubType {
EarningsCalendarPubType_Unknown = -1; //不明
EarningsCalendarPubType_Regular = 0; //ザラ場(時間帯未判定)
EarningsCalendarPubType_Before = 1; //プレマーケット
EarningsCalendarPubType_After = 2; //アフターマーケット
}
// 決算指標タイプ
enum EarningsCalendarEstimateType {
EarningsCalendarEstimateType_Unknown = 0; //不明
EarningsCalendarEstimateType_EPS = 1; //EPS(GAAP基準)
EarningsCalendarEstimateType_Revenue = 2; //総収入
EarningsCalendarEstimateType_EBIT = 3; //EBIT(税引前利益)
}
// 決算期タイプ
enum EarningsCalendarPeriodType {
EarningsCalendarPeriodType_Unknown = 0; //不明
EarningsCalendarPeriodType_Quarterly = 1; //四半期
EarningsCalendarPeriodType_SemiAnnual = 2; //半年
EarningsCalendarPeriodType_Annual = 3; //年次
}
// 銘柄リスト类型
enum EarningsCalendarStockListType {
EarningsCalendarStockListType_Unknown = 0; //不明
EarningsCalendarStockListType_Watchlist = 1; //ウォッチリスト
EarningsCalendarStockListType_Position = 2; //保有
EarningsCalendarStockListType_Special = 3; //特別注目
}
// 财报日历スクリーニング因子类型
enum EarningsCalendarIndicatorType {
EarningsCalendarIndicatorType_Unknown = 0;
EarningsCalendarIndicatorType_PubType = 1; //【正確な値】発表タイプ(valueList, EarningsCalendarPubType)
EarningsCalendarIndicatorType_EstimateType = 2; //【正確な値】指標タイプ(valueList, EarningsCalendarEstimateType)
EarningsCalendarIndicatorType_MarketCap = 3; //【範囲】時価総額
EarningsCalendarIndicatorType_StockListType = 4; //【确切值】銘柄リスト类型(valueList, EarningsCalendarStockListType)
EarningsCalendarIndicatorType_OptionVolume = 5; //【范围】期权出来高(仅港美股)
EarningsCalendarIndicatorType_IV = 6; //【範囲】インプライドボラティリティ(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVRank = 7; //【範囲】IVランク(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_IVPercentile = 8; //【範囲】IVパーセンタイル(%)(香港株・米国株のみ)
EarningsCalendarIndicatorType_RtMarketCap = 9; //【範囲】リアルタイム時価総額
}
// 财报日历スクリーニング条件
message EarningsCalendarIndicator {
required int32 indicatorType = 1; // EarningsCalendarIndicatorType
optional Qot_OptionCommon.IndicatorValue indicatorValue = 2; // スクリーニング条件
}
// 決算予測データ
message EstimateData {
optional int32 estimateType = 1; // EarningsCalendarEstimateType
optional double actualValue = 2; // 実績値(発表済みの場合に値あり)
optional double predictValue = 3; // 予測値
optional string currency = 4; // 通貨単位(ISO 4217)
optional int32 periodType = 5; // EarningsCalendarPeriodType
}
// 決算カレンダー項目
message EarningsCalendarItem {
required Qot_Common.Security security = 1; // 銘柄
optional string name = 2; // 銘柄名称
optional string earningsDate = 3; // 财报日付("yyyy-MM-dd")
optional double earningsTimestamp = 4; // 财报发布時間戳(秒)
optional int32 pubType = 5; // EarningsCalendarPubType
optional string periodText = 7; // 会計年度期間(例:"2025Q1")
repeated EstimateData estimateList = 8; // 预测データリスト
// オプションフィールド(香港株・米国株のみ)
optional int64 optionVolume = 10; // 期权出来高
optional double iv = 11; // インプライドボラティリティ(%)
optional double ivRank = 12; // IVランク(%)
optional double ivPercentile = 13; // IVパーセンタイル(%)
// 相場フィールド
optional double marketCap = 20; // リアルタイム時価総額
optional double price = 21; // 最新値
}
message C2S {
required int32 market = 1; // Qot_Common.QotMarket(HK/US/CNSH/CNSZ/SG/JP/AU/CA対応)
optional int32 sortType = 2; // EarningsCalendarSortType (デフォルト Hot)
optional string beginDate = 3; // 开始日付,格式"yyyy-MM-dd",不传デフォルト今天(仅拉取当天)
optional string endDate = 4; // 结束日付,格式"yyyy-MM-dd",不传则仅拉取beginDate当天;与beginDate间隔不超过7天
repeated EarningsCalendarIndicator filterList = 5; // スクリーニング条件(AND关系)
}
message S2C {
repeated EarningsCalendarItem itemList = 1;
}
message Request {
required C2S c2s = 1;
}
message Response {
required int32 retType = 1 [default = -400]; //RetType、戻り結果
optional string retMsg = 2;
optional int32 errCode = 3;
optional S2C s2c = 4;
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
- API呼び出し結果、構造体については以下を参照 RetType
プロトコルID
3401
Example
import mmWebsocket from "moomoo-api";
import { Common, Qot_Common } from "moomoo-api/proto";
import beautify from "js-beautify";
function QotGetEarningsCalendar(){
const { RetType } = Common
let [addr, port, enable_ssl, key] = ["127.0.0.1", 11111, false, "xxxxxx"];
let websocket = new mmWebsocket();
websocket.onlogin = (ret, msg)=>{
if (ret) {
const req = {
c2s: {
market: 11, // Qot_Common.QotMarket_US
beginDate: "2026-06-22",
endDate: "2026-06-22",
},
};
websocket.GetEarningsCalendar(req)
.then((res)=>{
let { errCode, retMsg, retType, s2c } = res
console.log("GetEarningsCalendar: errCode %d, retMsg %s, retType %d", errCode, retMsg, retType);
if(retType == RetType.RetType_Succeed){
let data = beautify(JSON.stringify(s2c), { indent_size: 2, space_in_empty_paren: true });
console.log(data);
}
})
.catch((error)=>{ console.log("error:", error); });
} else {
console.log("start error", msg);
}
};
websocket.start(addr, port, enable_ssl, key);
setTimeout(()=>{ websocket.stop(); process.exit(); }, 5000);
}
QotGetEarningsCalendar()
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
- Output
GetEarningsCalendar: errCode 0, retMsg , retType 0
{
"itemList": [
{ "security": { "market": 11, "code": "FRVO" }, "name": "FERVO ENERGY COMPANY", "earningsDate": "2026-06-22", "pubType": 1 },
{ "security": { "market": 11, "code": "BCKIY" }, "name": "BABCOCK INTERNATIONAL GROUP UNSP ADR", "earningsDate": "2026-06-22", "pubType": 0 },
{ "security": { "market": 11, "code": "POWW" }, "name": "Outdoor Holding", "earningsDate": "2026-06-22", "pubType": 1 }
]
}
2
3
4
5
6
7
8
API制限
- 30秒以内に最大60回のリクエストが可能です
- ページネーションリクエストは最初のページのみレート制限にカウントされます
← ニュース検索 マクロ指標リストの取得 →