cxmr_exchanges/limits.rs
1//! Crypto-bank rate limits primitives.
2
3use std::time::Duration;
4
5/// Market rate limit type.
6#[derive(Debug, Serialize)]
7pub enum RateLimitType {
8 Order,
9 Request,
10 RequestWeight,
11}
12
13/// Market rate limit.
14#[derive(Debug, Serialize)]
15pub struct RateLimit {
16 pub kind: RateLimitType,
17 pub limit: u64,
18 pub interval: Duration,
19}