xapi_binance/clients/spot/
mod.rs

1use crate::common::{endpoint::BnEndpoint, executor::BnExecutor};
2use typed_builder::TypedBuilder;
3
4pub mod account;
5pub mod general;
6pub mod market;
7pub mod stream;
8
9#[derive(TypedBuilder)]
10pub struct BnSpot {
11    executor: BnExecutor,
12}
13
14impl Default for BnSpot {
15    fn default() -> Self {
16        Self::builder()
17            .executor(
18                BnExecutor::builder()
19                    .endpoint(BnEndpoint::new_spot())
20                    .build(),
21            )
22            .build()
23    }
24}