bitbank_api/private/fetch_order.rs
1use super::*;
2
3#[serde_as]
4#[derive(TypedBuilder, Serialize, Debug)]
5pub struct Params {
6 #[serde_as(as = "DisplayFromStr")]
7 pair: Pair,
8 order_id: u64,
9}
10
11pub async fn get(cred: Credential, params: Params) -> anyhow::Result<OrderInfo> {
12 ApiExec { cred }
13 .get("/v1/user/spot/order", to_query_params(params)?)
14 .await
15}