openlimits-coinbase 0.3.0

Coinbase implementation for OpenLimits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::Deserialize;
use super::Level2SnapshotRecord;
use super::Level2UpdateRecord;

/// This enum represents the level 2
#[derive(Deserialize, Debug, Clone, PartialEq)]
pub enum Level2 {
    Snapshot {
        product_id: String,
        bids: Vec<Level2SnapshotRecord>,
        asks: Vec<Level2SnapshotRecord>,
    },
    L2update {
        product_id: String,
        changes: Vec<Level2UpdateRecord>,
    },
}