cbat 0.0.18

The unofficial Rust crate for the Coinbase Advanced Trade API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::{Deserialize, Serialize};

use crate::price_book::PriceBook;

#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ProductBook {
    pub pricebook: PriceBook,
    pub last: Option<String>,
    pub mid_market: Option<String>,
    pub spread_bps: Option<String>,
    pub spread_absolute: Option<String>,
}