pub struct ExchangeConfig {Show 16 fields
pub id: String,
pub name: String,
pub api_key: Option<String>,
pub secret: Option<String>,
pub password: Option<String>,
pub uid: Option<String>,
pub account_id: Option<String>,
pub enable_rate_limit: bool,
pub rate_limit: f64,
pub timeout: u64,
pub sandbox: bool,
pub user_agent: Option<String>,
pub proxy: Option<String>,
pub verbose: bool,
pub options: HashMap<String, Value>,
pub url_overrides: HashMap<String, String>,
}Expand description
Exchange configuration
Fields§
§id: StringExchange identifier
name: StringExchange display name
api_key: Option<String>API key for authentication
secret: Option<String>API secret for authentication
password: Option<String>Password (required by some exchanges)
uid: Option<String>User ID (required by some exchanges)
account_id: Option<String>Account ID
enable_rate_limit: boolEnable rate limiting
rate_limit: f64Rate limit in milliseconds between requests
timeout: u64Request timeout in seconds
sandbox: boolEnable sandbox/testnet mode
user_agent: Option<String>Custom user agent string
proxy: Option<String>HTTP proxy server URL
verbose: boolEnable verbose logging
options: HashMap<String, Value>Custom exchange-specific options
url_overrides: HashMap<String, String>URL overrides for mocking/testing
Implementations§
Source§impl ExchangeConfig
impl ExchangeConfig
Sourcepub fn builder() -> ExchangeConfigBuilder
pub fn builder() -> ExchangeConfigBuilder
Create a new configuration builder
§Example
use ccxt_core::base_exchange::ExchangeConfig;
let config = ExchangeConfig::builder()
.id("binance")
.name("Binance")
.api_key("your-api-key")
.secret("your-secret")
.sandbox(true)
.build();Trait Implementations§
Source§impl Clone for ExchangeConfig
impl Clone for ExchangeConfig
Source§fn clone(&self) -> ExchangeConfig
fn clone(&self) -> ExchangeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeConfig
impl Debug for ExchangeConfig
Auto Trait Implementations§
impl Freeze for ExchangeConfig
impl RefUnwindSafe for ExchangeConfig
impl Send for ExchangeConfig
impl Sync for ExchangeConfig
impl Unpin for ExchangeConfig
impl UnwindSafe for ExchangeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more