ig_client/constants.rs
1/// Default number of days to look back when fetching historical data
2pub const DAYS_TO_BACK_LOOK: i64 = 10;
3// Maximum number of consecutive errors before forcing a cooldown
4/// Maximum number of consecutive errors before forcing a cooldown
5pub const MAX_CONSECUTIVE_ERRORS: u32 = 3;
6// Cooldown time in seconds when hitting max errors
7/// Cooldown time in seconds when hitting max errors (5 minutes)
8pub const ERROR_COOLDOWN_SECONDS: u64 = 300;
9
10// Default sleep time in hours if not specified in environment
11/// Default sleep time in hours if not specified in environment (24 hours)
12pub const DEFAULT_SLEEP_TIME: u64 = 24;
13
14// Default page size for transaction fetching
15/// Default page size for API requests
16pub const DEFAULT_PAGE_SIZE: u32 = 50;