xapi-binance 0.0.1

Binance API client
Documentation
use rust_decimal::Decimal;
use serde::Deserialize;
use xapi_shared::data::crypto_symbol::CryptoSymbol;

#[derive(Debug, Clone, Deserialize)]
pub struct BnBookTickerStream {
    #[serde(rename = "u")]
    pub update_id: u64,
    #[serde(rename = "s")]
    pub symbol: CryptoSymbol,
    #[serde(rename = "b")]
    pub best_bid_price: Decimal,
    #[serde(rename = "B")]
    pub best_bid_qty: Decimal,
    #[serde(rename = "a")]
    pub best_ask_price: Decimal,
    #[serde(rename = "A")]
    pub best_ask_qty: Decimal,
}