binance_common/spot/model/response/
general.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Deserialize, PartialEq)]
4pub struct EmptyResponse {}
5
6#[derive(Clone, Debug, Deserialize, Serialize)]
7#[serde(rename_all = "camelCase")]
8pub struct ServerTimeResponse {
9 pub server_time: u64,
10}
11
12#[derive(Clone, Debug, Deserialize, Serialize)]
13#[serde(rename_all = "camelCase")]
14pub struct ExchangeInformationResponse {
15 pub timezone: String,
16 pub server_time: u64,
17 pub rate_limits: Vec<RateLimitResponse>,
18 pub symbols: Vec<SymbolResponse>,
19}
20
21#[derive(Debug, Serialize, Deserialize, Clone)]
22#[serde(rename_all = "camelCase")]
23pub struct RateLimitResponse {
24 pub rate_limit_type: String,
25 pub interval: String,
26 pub interval_num: u16,
27 pub limit: u32,
28}
29
30#[derive(Debug, Serialize, Deserialize, Clone)]
31#[serde(rename_all = "camelCase")]
32pub struct SymbolResponse {
33 pub symbol: String,
34 pub status: String,
35 pub base_asset: String,
36 pub base_asset_precision: u64,
37 pub quote_asset: String,
38 pub order_types: Vec<String>,
39 pub iceberg_allowed: bool,
40 pub is_spot_trading_allowed: bool,
41 pub is_margin_trading_allowed: bool,
42}