pub struct BrokerConfig {
pub name: String,
pub api_url: String,
pub ws_url: String,
pub api_key: String,
pub api_secret: String,
pub paper_trading: bool,
pub connection_timeout_secs: u64,
pub max_retry_attempts: u32,
}Expand description
Broker API configuration
Fields§
§name: StringBroker name (alpaca, polygon, etc.)
api_url: StringAPI base URL
ws_url: StringWebSocket URL for real-time data
api_key: StringAPI key (should be loaded from environment)
api_secret: StringAPI secret (should be loaded from environment)
paper_trading: boolPaper trading mode
connection_timeout_secs: u64Connection timeout in seconds
max_retry_attempts: u32Maximum retry attempts
Trait Implementations§
Source§impl Clone for BrokerConfig
impl Clone for BrokerConfig
Source§fn clone(&self) -> BrokerConfig
fn clone(&self) -> BrokerConfig
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 BrokerConfig
impl Debug for BrokerConfig
Source§impl Default for BrokerConfig
impl Default for BrokerConfig
Source§impl<'de> Deserialize<'de> for BrokerConfig
impl<'de> Deserialize<'de> for BrokerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BrokerConfig
impl Serialize for BrokerConfig
Source§impl Validate for BrokerConfig
impl Validate for BrokerConfig
Source§impl<'v_a> ValidateArgs<'v_a> for BrokerConfig
impl<'v_a> ValidateArgs<'v_a> for BrokerConfig
Auto Trait Implementations§
impl Freeze for BrokerConfig
impl RefUnwindSafe for BrokerConfig
impl Send for BrokerConfig
impl Sync for BrokerConfig
impl Unpin for BrokerConfig
impl UnwindSafe for BrokerConfig
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