pub struct IBKRConfig {
pub host: String,
pub port: u16,
pub client_id: i32,
pub account: String,
pub paper_trading: bool,
pub timeout: Duration,
pub streaming: bool,
pub level2_depth: bool,
pub options_enabled: bool,
pub algo_orders: bool,
}Expand description
IBKR connection configuration
Fields§
§host: StringTWS/Gateway host (default: 127.0.0.1)
port: u16TWS port (7497 paper, 7496 live) or Gateway port (4001 paper, 4002 live)
client_id: i32Client ID for connection
account: StringAccount number (optional, auto-detected if empty)
paper_trading: boolPaper trading mode
timeout: DurationConnection timeout
streaming: boolEnable real-time market data streaming
level2_depth: boolEnable Level 2 market depth
options_enabled: boolEnable options trading
algo_orders: boolEnable algorithmic orders
Trait Implementations§
Source§impl Clone for IBKRConfig
impl Clone for IBKRConfig
Source§fn clone(&self) -> IBKRConfig
fn clone(&self) -> IBKRConfig
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 IBKRConfig
impl Debug for IBKRConfig
Auto Trait Implementations§
impl Freeze for IBKRConfig
impl RefUnwindSafe for IBKRConfig
impl Send for IBKRConfig
impl Sync for IBKRConfig
impl Unpin for IBKRConfig
impl UnwindSafe for IBKRConfig
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