futu_rest/routes/qot/
indicator.rs1use axum::extract::{Json, State};
2use serde_json::Value;
3
4use crate::adapter::{self, RestState};
5
6use super::RawApiResult;
7
8pub async fn indicator_list(
9 State(state): State<RestState>,
10 Json(body): Json<Value>,
11) -> RawApiResult {
12 adapter::proto_request_raw::<
13 futu_proto::qot_get_indicator_list::Request,
14 futu_proto::qot_get_indicator_list::Response,
15 >(
16 &state,
17 futu_core::proto_id::QOT_GET_INDICATOR_LIST,
18 Some(body),
19 )
20 .await
21}