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
use serde::Deserialize;
use serde::Serialize;
use super::SubscribeCmd;
use super::Channel;
use super::Auth;

/// This struct represents a subscribe
#[derive(Serialize, Deserialize, Debug)]
pub struct Subscribe {
    #[serde(rename = "type")]
    pub _type: SubscribeCmd,
    pub product_ids: Vec<String>,
    pub channels: Vec<Channel>,
    #[serde(flatten)]
    pub auth: Option<Auth>,
}