openlimits-binance 0.3.0

Binance implementation for OpenLimits.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use serde::Deserialize;
use serde::Serialize;

/// This enum represents an openlimits-exchange filter
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(tag = "filterType", rename_all = "SCREAMING_SNAKE_CASE")]
pub enum ExchangeFilter {
    #[serde(rename_all = "camelCase")]
    ExchangeMaxNumOrders { max_num_orders: u64 },
    #[serde(rename_all = "camelCase")]
    ExchangeMaxNumAlgoOrders { max_num_algo_orders: u64 },
}