sfox 0.1.4

Unofficial HTTP and Websocket Client for the SFox API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde_derive::Deserialize;

static POST_TRADE_SETTLEMENT_FEED: &str = "private.user.post-trade-settlement";

#[derive(Debug, Deserialize)]
pub struct PostTradeSettlementPayload {
    pub enabled: String,
    pub equity: String,
    pub equity_for_withdrawals: String,
    pub available_exposure: String,
    pub exposure: String,
    pub exposure_limit: String,
}

pub fn post_trade_settlement_feed() -> String {
    POST_TRADE_SETTLEMENT_FEED.into()
}