lightcone 0.6.1

Rust SDK for the Lightcone Protocol — unified native + WASM client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Ticker data — best bid/ask/mid for an orderbook.

use crate::shared::OrderBookId;
use rust_decimal::Decimal;
use serde::{Deserialize, Serialize};

/// Best bid/ask/mid for a ticker.
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TickerData {
    pub orderbook_id: OrderBookId,
    pub best_bid: Option<Decimal>,
    pub best_ask: Option<Decimal>,
    pub mid_price: Option<Decimal>,
}