rusty_bin/monitor/config/
general.rs

1//! General application configuration
2use serde::{Deserialize, Serialize};
3use smartstring::alias::String;
4
5/// General application configuration
6#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct GeneralConfig {
8    /// Application name
9    pub name: String,
10    /// Application version
11    pub version: String,
12    /// Whether to collect trade data
13    pub collect_trades: bool,
14    /// Whether to collect order book data
15    pub collect_orderbooks: bool,
16    /// Whether to automatically discover symbols from exchanges
17    pub auto_discover_symbols: bool,
18    /// Maximum number of concurrent connections to maintain
19    pub max_concurrent_connections: usize,
20    /// Size of the internal buffer for market data
21    pub buffer_size: usize,
22    /// Size of batches for processing market data
23    pub batch_size: usize,
24    /// Interval in milliseconds for flushing data to storage
25    pub flush_interval_ms: u64,
26}