Skip to content

Commit

Permalink
Adding Binance RateLimitType variant
Browse files Browse the repository at this point in the history
  • Loading branch information
nyanilo committed Jul 16, 2022
1 parent a6c56e4 commit 4137b08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/openlimits-binance/src/model/rate_limit_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ use serde::Serialize;
pub enum RateLimitType {
Orders,
RequestWeight,
RawRequests
}
7 changes: 7 additions & 0 deletions crates/openlimits-binance/src/model/symbol_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ use super::shared::string_to_decimal;
#[derive(Debug, Serialize, Deserialize, Clone)]
#[serde(tag = "filterType", rename_all = "SCREAMING_SNAKE_CASE")]
pub enum SymbolFilter {
#[serde(rename_all = "camelCase")]
TrailingDelta {
min_trailing_above_delta: Decimal,
max_trailing_above_delta: Decimal,
min_trailing_below_delta: Decimal,
max_trailing_below_delta: Decimal
},
#[serde(rename_all = "camelCase")]
LotSize {
#[serde(with = "string_to_decimal")]
Expand Down

0 comments on commit 4137b08

Please sign in to comment.