futu_rest/routes/qot/reference/
market.rs1use super::*;
4
5pub async fn get_plate_set(
7 State(state): State<RestState>,
8 Json(body): Json<Value>,
9) -> RawApiResult {
10 adapter::proto_request_raw::<qot_get_plate_set::Request, qot_get_plate_set::Response>(
11 &state,
12 proto_id::QOT_GET_PLATE_SET,
13 Some(body),
14 )
15 .await
16}
17
18pub async fn get_plate_security(
20 State(state): State<RestState>,
21 Json(body): Json<Value>,
22) -> RawApiResult {
23 adapter::proto_request_raw::<qot_get_plate_security::Request, qot_get_plate_security::Response>(
24 &state,
25 proto_id::QOT_GET_PLATE_SECURITY,
26 Some(body),
27 )
28 .await
29}
30
31pub async fn get_reference(
33 State(state): State<RestState>,
34 Json(body): Json<Value>,
35) -> RawApiResult {
36 adapter::proto_request_raw::<qot_get_reference::Request, qot_get_reference::Response>(
37 &state,
38 proto_id::QOT_GET_REFERENCE,
39 Some(body),
40 )
41 .await
42}
43
44pub async fn get_owner_plate(
46 State(state): State<RestState>,
47 Json(body): Json<Value>,
48) -> RawApiResult {
49 adapter::proto_request_raw::<qot_get_owner_plate::Request, qot_get_owner_plate::Response>(
50 &state,
51 proto_id::QOT_GET_OWNER_PLATE,
52 Some(body),
53 )
54 .await
55}
56
57pub async fn get_capital_flow(
59 State(state): State<RestState>,
60 Json(body): Json<Value>,
61) -> RawApiResult {
62 adapter::proto_request_raw::<qot_get_capital_flow::Request, qot_get_capital_flow::Response>(
63 &state,
64 proto_id::QOT_GET_CAPITAL_FLOW,
65 Some(body),
66 )
67 .await
68}
69
70pub async fn get_capital_distribution(
72 State(state): State<RestState>,
73 Json(body): Json<Value>,
74) -> RawApiResult {
75 adapter::proto_request_raw::<
76 qot_get_capital_distribution::Request,
77 qot_get_capital_distribution::Response,
78 >(&state, proto_id::QOT_GET_CAPITAL_DISTRIBUTION, Some(body))
79 .await
80}
81
82pub async fn get_corporate_actions_buybacks(
84 State(state): State<RestState>,
85 Json(body): Json<Value>,
86) -> RawApiResult {
87 adapter::proto_request_raw::<
88 qot_get_corporate_actions_buybacks::Request,
89 qot_get_corporate_actions_buybacks::Response,
90 >(
91 &state,
92 proto_id::QOT_GET_CORPORATE_ACTIONS_BUYBACKS,
93 Some(body),
94 )
95 .await
96}
97
98pub async fn get_corporate_actions_dividends(
100 State(state): State<RestState>,
101 Json(body): Json<Value>,
102) -> RawApiResult {
103 adapter::proto_request_raw::<
104 qot_get_corporate_actions_dividends::Request,
105 qot_get_corporate_actions_dividends::Response,
106 >(
107 &state,
108 proto_id::QOT_GET_CORPORATE_ACTIONS_DIVIDENDS,
109 Some(body),
110 )
111 .await
112}
113
114pub async fn get_corporate_actions_stock_splits(
116 State(state): State<RestState>,
117 Json(body): Json<Value>,
118) -> RawApiResult {
119 adapter::proto_request_raw::<
120 qot_get_corporate_actions_stock_splits::Request,
121 qot_get_corporate_actions_stock_splits::Response,
122 >(
123 &state,
124 proto_id::QOT_GET_CORPORATE_ACTIONS_STOCK_SPLITS,
125 Some(body),
126 )
127 .await
128}