bitbank-api 0.5.1

Rust library for bitbank API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

#[serde_as]
#[derive(TypedBuilder, Serialize, Debug)]
pub struct Params {
    #[serde_as(as = "DisplayFromStr")]
    pair: Pair,
    order_id: u64,
}

pub async fn get(cred: Credential, params: Params) -> anyhow::Result<OrderInfo> {
    ApiExec { cred }
        .get("/v1/user/spot/order", to_query_params(params)?)
        .await
}