ethereal_rust_sdk 0.1.6

Trading client for Ethereal exchange
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Serialize;

#[derive(Debug, Serialize)]
pub struct ProductSubscriptionMessage {
    #[serde(rename = "type")]
    pub msg_type: String,
    #[serde(rename = "productId")]
    pub product_id: String,
}
#[derive(Debug, Serialize)]
pub struct SubaccountSubscriptionMessage {
    #[serde(rename = "type")]
    pub msg_type: String,
    #[serde(rename = "subaccountId")]
    pub subaccount_id: String,
}