pub struct TestConfig {
pub skip_private_tests: bool,
pub enable_integration_tests: bool,
pub test_timeout_ms: u64,
pub binance: ExchangeConfig,
pub okx: ExchangeConfig,
pub bybit: ExchangeConfig,
pub kraken: ExchangeConfig,
pub kucoin: ExchangeConfig,
pub hyperliquid: ExchangeConfig,
pub test_data: TestDataConfig,
pub benchmark: BenchmarkConfig,
}Expand description
Main test configuration structure.
Fields§
§skip_private_tests: boolWhether to skip private tests
enable_integration_tests: boolWhether to enable integration tests
test_timeout_ms: u64Test timeout in milliseconds
binance: ExchangeConfigBinance exchange configuration
okx: ExchangeConfigOKX exchange configuration
bybit: ExchangeConfigBybit exchange configuration
kraken: ExchangeConfigKraken exchange configuration
kucoin: ExchangeConfigKuCoin exchange configuration
hyperliquid: ExchangeConfigHyperliquid exchange configuration
test_data: TestDataConfigTest data configuration
benchmark: BenchmarkConfigPerformance benchmark configuration
Implementations§
Source§impl TestConfig
impl TestConfig
Sourcepub fn from_env() -> Result<Self, ConfigError>
pub fn from_env() -> Result<Self, ConfigError>
Loads configuration from environment variables with CCXT_ prefix.
§Errors
Returns ConfigError if exchange configuration loading fails.
Sourcepub fn should_skip_private_tests(&self) -> bool
pub fn should_skip_private_tests(&self) -> bool
Checks whether private tests should be skipped.
Sourcepub fn is_integration_enabled(&self) -> bool
pub fn is_integration_enabled(&self) -> bool
Checks whether integration tests are enabled.
Sourcepub fn has_binance_credentials(&self) -> bool
pub fn has_binance_credentials(&self) -> bool
Checks whether Binance credentials are available.
Sourcepub fn has_okx_credentials(&self) -> bool
pub fn has_okx_credentials(&self) -> bool
Checks whether OKX credentials are available.
Sourcepub fn has_bybit_credentials(&self) -> bool
pub fn has_bybit_credentials(&self) -> bool
Checks whether Bybit credentials are available.
Sourcepub fn has_kraken_credentials(&self) -> bool
pub fn has_kraken_credentials(&self) -> bool
Checks whether Kraken credentials are available.
Sourcepub fn has_kucoin_credentials(&self) -> bool
pub fn has_kucoin_credentials(&self) -> bool
Checks whether KuCoin credentials are available.
Sourcepub fn has_hyperliquid_credentials(&self) -> bool
pub fn has_hyperliquid_credentials(&self) -> bool
Checks whether Hyperliquid credentials are available.
Trait Implementations§
Source§impl Clone for TestConfig
impl Clone for TestConfig
Source§fn clone(&self) -> TestConfig
fn clone(&self) -> TestConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more