pub struct TradeSyncerConfig {
pub bot_id: String,
pub upstream_url: String,
pub sync_interval_ms: u64,
pub timeout_secs: u64,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub instruments: Vec<InstrumentId>,
pub strategy_type: Option<String>,
pub sync_secret: Option<String>,
}Expand description
Configuration for trade syncing
Fields§
§bot_id: StringBot ID for upstream API
upstream_url: StringUpstream API base URL (e.g., <https://api.example.com/bot-api>)
sync_interval_ms: u64Sync interval in milliseconds (default: 10000)
timeout_secs: u64HTTP timeout in seconds
max_retries: u32Maximum retries for failed syncs
retry_delay_ms: u64Initial retry delay in milliseconds
instruments: Vec<InstrumentId>Instruments to filter fills (only sync fills for these instruments) Empty = sync all fills (no filter)
strategy_type: Option<String>Optional strategy type hint for upstream routing/aggregation.
sync_secret: Option<String>Optional shared secret for upstream sync auth.
Trait Implementations§
Source§impl Clone for TradeSyncerConfig
impl Clone for TradeSyncerConfig
Source§fn clone(&self) -> TradeSyncerConfig
fn clone(&self) -> TradeSyncerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TradeSyncerConfig
impl Debug for TradeSyncerConfig
Auto Trait Implementations§
impl Freeze for TradeSyncerConfig
impl RefUnwindSafe for TradeSyncerConfig
impl Send for TradeSyncerConfig
impl Sync for TradeSyncerConfig
impl Unpin for TradeSyncerConfig
impl UnsafeUnpin for TradeSyncerConfig
impl UnwindSafe for TradeSyncerConfig
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