Skip to main content

futu_rest/routes/qot/reference/
company.rs

1use super::*;
2
3/// POST /api/company-profile — 获取公司详情标签
4pub async fn get_company_profile(
5    State(state): State<RestState>,
6    Json(body): Json<Value>,
7) -> RawApiResult {
8    adapter::proto_request_raw::<qot_get_company_profile::Request, qot_get_company_profile::Response>(
9        &state,
10        proto_id::QOT_GET_COMPANY_PROFILE,
11        Some(body),
12    )
13    .await
14}
15
16/// POST /api/company-executives — 获取公司高管信息
17pub async fn get_company_executives(
18    State(state): State<RestState>,
19    Json(body): Json<Value>,
20) -> RawApiResult {
21    adapter::proto_request_raw::<
22        qot_get_company_executives::Request,
23        qot_get_company_executives::Response,
24    >(&state, proto_id::QOT_GET_COMPANY_EXECUTIVES, Some(body))
25    .await
26}
27
28/// POST /api/company-executive-background — 获取公司高管背景
29pub async fn get_company_executive_background(
30    State(state): State<RestState>,
31    Json(body): Json<Value>,
32) -> RawApiResult {
33    adapter::proto_request_raw::<
34        qot_get_company_executive_background::Request,
35        qot_get_company_executive_background::Response,
36    >(
37        &state,
38        proto_id::QOT_GET_COMPANY_EXECUTIVE_BACKGROUND,
39        Some(body),
40    )
41    .await
42}
43
44/// POST /api/company-operational-efficiency — 获取公司经营效率
45pub async fn get_company_operational_efficiency(
46    State(state): State<RestState>,
47    Json(body): Json<Value>,
48) -> RawApiResult {
49    adapter::proto_request_raw::<
50        qot_get_company_operational_efficiency::Request,
51        qot_get_company_operational_efficiency::Response,
52    >(
53        &state,
54        proto_id::QOT_GET_COMPANY_OPERATIONAL_EFFICIENCY,
55        Some(body),
56    )
57    .await
58}
59
60/// POST /api/financials-earnings-price-move — 获取财报日前后价格表现
61pub async fn get_financials_earnings_price_move(
62    State(state): State<RestState>,
63    Json(body): Json<Value>,
64) -> RawApiResult {
65    adapter::proto_request_raw::<
66        qot_get_financials_earnings_price_move::Request,
67        qot_get_financials_earnings_price_move::Response,
68    >(
69        &state,
70        proto_id::QOT_GET_FINANCIALS_EARNINGS_PRICE_MOVE,
71        Some(body),
72    )
73    .await
74}
75
76/// POST /api/financials-earnings-price-history — 获取财报日前后股价历史
77pub async fn get_financials_earnings_price_history(
78    State(state): State<RestState>,
79    Json(body): Json<Value>,
80) -> RawApiResult {
81    adapter::proto_request_raw::<
82        qot_get_financials_earnings_price_history::Request,
83        qot_get_financials_earnings_price_history::Response,
84    >(
85        &state,
86        proto_id::QOT_GET_FINANCIALS_EARNINGS_PRICE_HISTORY,
87        Some(body),
88    )
89    .await
90}
91
92/// POST /api/financials-statements — 获取财务报表
93pub async fn get_financials_statements(
94    State(state): State<RestState>,
95    Json(body): Json<Value>,
96) -> RawApiResult {
97    adapter::proto_request_raw::<
98        qot_get_financials_statements::Request,
99        qot_get_financials_statements::Response,
100    >(&state, proto_id::QOT_GET_FINANCIALS_STATEMENTS, Some(body))
101    .await
102}
103
104/// POST /api/financials-revenue-breakdown — 获取主营构成
105pub async fn get_financials_revenue_breakdown(
106    State(state): State<RestState>,
107    Json(body): Json<Value>,
108) -> RawApiResult {
109    adapter::proto_request_raw::<
110        qot_get_financials_revenue_breakdown::Request,
111        qot_get_financials_revenue_breakdown::Response,
112    >(
113        &state,
114        proto_id::QOT_GET_FINANCIALS_REVENUE_BREAKDOWN,
115        Some(body),
116    )
117    .await
118}
119
120/// POST /api/research-analyst-consensus — 获取分析师评级概述
121pub async fn get_research_analyst_consensus(
122    State(state): State<RestState>,
123    Json(body): Json<Value>,
124) -> RawApiResult {
125    adapter::proto_request_raw::<
126        qot_get_research_analyst_consensus::Request,
127        qot_get_research_analyst_consensus::Response,
128    >(
129        &state,
130        proto_id::QOT_GET_RESEARCH_ANALYST_CONSENSUS,
131        Some(body),
132    )
133    .await
134}
135
136/// POST /api/research-rating-summary — 获取评级汇总
137pub async fn get_research_rating_summary(
138    State(state): State<RestState>,
139    Json(body): Json<Value>,
140) -> RawApiResult {
141    adapter::proto_request_raw::<
142        qot_get_research_rating_summary::Request,
143        qot_get_research_rating_summary::Response,
144    >(
145        &state,
146        proto_id::QOT_GET_RESEARCH_RATING_SUMMARY,
147        Some(body),
148    )
149    .await
150}
151
152/// POST /api/research-morningstar-report — 获取晨星研究报告
153pub async fn get_research_morningstar_report(
154    State(state): State<RestState>,
155    Json(body): Json<Value>,
156) -> RawApiResult {
157    adapter::proto_request_raw::<
158        qot_get_research_morningstar_report::Request,
159        qot_get_research_morningstar_report::Response,
160    >(
161        &state,
162        proto_id::QOT_GET_RESEARCH_MORNINGSTAR_REPORT,
163        Some(body),
164    )
165    .await
166}
167
168/// POST /api/valuation-detail — 获取个股/指数估值详情
169pub async fn get_valuation_detail(
170    State(state): State<RestState>,
171    Json(body): Json<Value>,
172) -> RawApiResult {
173    adapter::proto_request_raw::<
174        qot_get_valuation_detail::Request,
175        qot_get_valuation_detail::Response,
176    >(&state, proto_id::QOT_GET_VALUATION_DETAIL, Some(body))
177    .await
178}
179
180/// POST /api/valuation-plate-stock-list — 获取板块/指数成分股估值
181pub async fn get_valuation_plate_stock_list(
182    State(state): State<RestState>,
183    Json(body): Json<Value>,
184) -> RawApiResult {
185    adapter::proto_request_raw::<
186        qot_get_valuation_plate_stock_list::Request,
187        qot_get_valuation_plate_stock_list::Response,
188    >(
189        &state,
190        proto_id::QOT_GET_VALUATION_PLATE_STOCK_LIST,
191        Some(body),
192    )
193    .await
194}