Skip to main content

spawn_runner_with_syncer

Function spawn_runner_with_syncer 

Source
pub fn spawn_runner_with_syncer(
    engine: Engine,
    exchanges: Vec<Arc<dyn Exchange>>,
    instruments: Vec<InstrumentId>,
    config: RunnerConfig,
    syncer_config: Option<TradeSyncerConfig>,
    account_syncer_config: Option<AccountSyncerConfig>,
) -> (JoinHandle<()>, UnboundedSender<()>)
Expand description

Spawn the runner as a background task with optional trade syncer and account syncer