pub struct Controller { /* private fields */ }Implementations§
Source§impl Controller
impl Controller
pub const EXECUTE_ENDPOINT: &str = "Controller.execute"
pub fn new(trader: Rc<RefCell<Trader>>, config: Option<DataActorConfig>) -> Self
Sourcepub fn send(command: &ControllerCommand) -> Result<()>
pub fn send(command: &ControllerCommand) -> Result<()>
Sends a controller command to the registered controller endpoint.
§Errors
Returns an error if the controller execute endpoint is not registered.
Sourcepub fn execute(&mut self, command: ControllerCommand) -> Result<()>
pub fn execute(&mut self, command: ControllerCommand) -> Result<()>
Executes a controller command against the underlying trader.
§Errors
Returns an error if the requested lifecycle operation fails.
Sourcepub fn create_actor<T>(&self, actor: T, start: bool) -> Result<ActorId>
pub fn create_actor<T>(&self, actor: T, start: bool) -> Result<ActorId>
Creates a new actor and optionally starts it.
§Errors
Returns an error if actor registration or startup fails.
Sourcepub fn create_actor_from_factory<F, T>(
&self,
factory: F,
start: bool,
) -> Result<ActorId>
pub fn create_actor_from_factory<F, T>( &self, factory: F, start: bool, ) -> Result<ActorId>
Creates a new actor from a factory and optionally starts it.
§Errors
Returns an error if the factory, actor registration, or startup fails.
Sourcepub fn create_actor_from_config(
&self,
actor_config: &ImportableActorConfig,
_start: bool,
) -> Result<ActorId>
pub fn create_actor_from_config( &self, actor_config: &ImportableActorConfig, _start: bool, ) -> Result<ActorId>
Rejects importable actor creation when Python support is not compiled in.
§Errors
Always returns an unsupported command error.
Sourcepub fn create_strategy<T>(&self, strategy: T, start: bool) -> Result<StrategyId>
pub fn create_strategy<T>(&self, strategy: T, start: bool) -> Result<StrategyId>
Creates a new strategy and optionally starts it.
§Errors
Returns an error if strategy registration or startup fails.
Sourcepub fn create_strategy_from_factory<F, T>(
&self,
factory: F,
start: bool,
) -> Result<StrategyId>where
F: FnOnce() -> Result<T>,
T: Strategy + StrategyNative + DataActorNative + Component + Debug + 'static,
pub fn create_strategy_from_factory<F, T>(
&self,
factory: F,
start: bool,
) -> Result<StrategyId>where
F: FnOnce() -> Result<T>,
T: Strategy + StrategyNative + DataActorNative + Component + Debug + 'static,
Creates a new strategy from a factory and optionally starts it.
§Errors
Returns an error if the factory, strategy registration, or startup fails.
Sourcepub fn create_strategy_from_config(
&self,
strategy_config: &ImportableStrategyConfig,
_start: bool,
) -> Result<StrategyId>
pub fn create_strategy_from_config( &self, strategy_config: &ImportableStrategyConfig, _start: bool, ) -> Result<StrategyId>
Rejects importable strategy creation when Python support is not compiled in.
§Errors
Always returns an unsupported command error.
Sourcepub fn start_actor(&self, actor_id: &ActorId) -> Result<()>
pub fn start_actor(&self, actor_id: &ActorId) -> Result<()>
Starts the registered actor with the given identifier.
§Errors
Returns an error if the actor is not registered or cannot be started.
Sourcepub fn stop_actor(&self, actor_id: &ActorId) -> Result<()>
pub fn stop_actor(&self, actor_id: &ActorId) -> Result<()>
Stops the registered actor with the given identifier.
§Errors
Returns an error if the actor is not registered or cannot be stopped.
Sourcepub fn remove_actor(&self, actor_id: &ActorId) -> Result<()>
pub fn remove_actor(&self, actor_id: &ActorId) -> Result<()>
Removes the registered actor with the given identifier.
§Errors
Returns an error if the actor cannot be removed.
Sourcepub fn start_strategy(&self, strategy_id: &StrategyId) -> Result<()>
pub fn start_strategy(&self, strategy_id: &StrategyId) -> Result<()>
Starts the registered strategy with the given identifier.
§Errors
Returns an error if the strategy is not registered or cannot be started.
Sourcepub fn stop_strategy(&self, strategy_id: &StrategyId) -> Result<()>
pub fn stop_strategy(&self, strategy_id: &StrategyId) -> Result<()>
Stops the registered strategy with the given identifier.
§Errors
Returns an error if the strategy is not registered or cannot be stopped.
Sourcepub fn exit_market(&self, strategy_id: &StrategyId) -> Result<()>
pub fn exit_market(&self, strategy_id: &StrategyId) -> Result<()>
Sends an exit-market command to the registered strategy.
§Errors
Returns an error if the strategy is not registered or its control endpoint is missing.
Sourcepub fn remove_strategy(&self, strategy_id: &StrategyId) -> Result<()>
pub fn remove_strategy(&self, strategy_id: &StrategyId) -> Result<()>
Removes the registered strategy with the given identifier.
§Errors
Returns an error if the strategy cannot be removed.
Trait Implementations§
Source§impl DataActor for Controller
impl DataActor for Controller
Source§fn actor_id(&self) -> ActorIdwhere
Self: DataActorNative,
fn actor_id(&self) -> ActorIdwhere
Self: DataActorNative,
Source§fn trader_id(&self) -> Option<TraderId>where
Self: DataActorNative,
fn trader_id(&self) -> Option<TraderId>where
Self: DataActorNative,
Source§fn is_registered(&self) -> boolwhere
Self: DataActorNative,
fn is_registered(&self) -> boolwhere
Self: DataActorNative,
Source§fn config(&self) -> &DataActorConfigwhere
Self: DataActorNative,
fn config(&self) -> &DataActorConfigwhere
Self: DataActorNative,
Source§fn on_save(&self) -> Result<IndexMap<String, Vec<u8>>, Error>
fn on_save(&self) -> Result<IndexMap<String, Vec<u8>>, Error>
Source§fn on_load(&mut self, state: IndexMap<String, Vec<u8>>) -> Result<(), Error>
fn on_load(&mut self, state: IndexMap<String, Vec<u8>>) -> Result<(), Error>
Source§fn on_time_event(&mut self, event: &TimeEvent) -> Result<(), Error>
fn on_time_event(&mut self, event: &TimeEvent) -> Result<(), Error>
Source§fn on_data(&mut self, data: &CustomData) -> Result<(), Error>
fn on_data(&mut self, data: &CustomData) -> Result<(), Error>
Source§fn on_signal(&mut self, signal: &Signal) -> Result<(), Error>
fn on_signal(&mut self, signal: &Signal) -> Result<(), Error>
Source§fn on_queue_state(&mut self, event: &QueueStateChanged) -> Result<(), Error>
fn on_queue_state(&mut self, event: &QueueStateChanged) -> Result<(), Error>
Source§fn on_socket_state(&mut self, event: &SocketStateChanged) -> Result<(), Error>
fn on_socket_state(&mut self, event: &SocketStateChanged) -> Result<(), Error>
Source§fn on_instrument(&mut self, instrument: &InstrumentAny) -> Result<(), Error>
fn on_instrument(&mut self, instrument: &InstrumentAny) -> Result<(), Error>
Source§fn on_book_deltas(&mut self, deltas: &OrderBookDeltas) -> Result<(), Error>
fn on_book_deltas(&mut self, deltas: &OrderBookDeltas) -> Result<(), Error>
Source§fn on_book_depth(&mut self, depth: &OrderBookDepth10) -> Result<(), Error>
fn on_book_depth(&mut self, depth: &OrderBookDepth10) -> Result<(), Error>
Source§fn on_book(&mut self, order_book: &OrderBook) -> Result<(), Error>
fn on_book(&mut self, order_book: &OrderBook) -> Result<(), Error>
Source§fn on_quote(&mut self, quote: &QuoteTick) -> Result<(), Error>
fn on_quote(&mut self, quote: &QuoteTick) -> Result<(), Error>
Source§fn on_trade(&mut self, tick: &TradeTick) -> Result<(), Error>
fn on_trade(&mut self, tick: &TradeTick) -> Result<(), Error>
Source§fn on_bar(&mut self, bar: &Bar) -> Result<(), Error>
fn on_bar(&mut self, bar: &Bar) -> Result<(), Error>
Source§fn on_mark_price(&mut self, mark_price: &MarkPriceUpdate) -> Result<(), Error>
fn on_mark_price(&mut self, mark_price: &MarkPriceUpdate) -> Result<(), Error>
Source§fn on_index_price(
&mut self,
index_price: &IndexPriceUpdate,
) -> Result<(), Error>
fn on_index_price( &mut self, index_price: &IndexPriceUpdate, ) -> Result<(), Error>
Source§fn on_funding_rate(
&mut self,
funding_rate: &FundingRateUpdate,
) -> Result<(), Error>
fn on_funding_rate( &mut self, funding_rate: &FundingRateUpdate, ) -> Result<(), Error>
Source§fn on_option_greeks(&mut self, greeks: &OptionGreeks) -> Result<(), Error>
fn on_option_greeks(&mut self, greeks: &OptionGreeks) -> Result<(), Error>
Source§fn on_option_chain(&mut self, slice: &OptionChainSlice) -> Result<(), Error>
fn on_option_chain(&mut self, slice: &OptionChainSlice) -> Result<(), Error>
Source§fn on_instrument_status(&mut self, data: &InstrumentStatus) -> Result<(), Error>
fn on_instrument_status(&mut self, data: &InstrumentStatus) -> Result<(), Error>
Source§fn on_instrument_close(&mut self, update: &InstrumentClose) -> Result<(), Error>
fn on_instrument_close(&mut self, update: &InstrumentClose) -> Result<(), Error>
Source§fn on_block(&mut self, block: &Block) -> Result<(), Error>
fn on_block(&mut self, block: &Block) -> Result<(), Error>
Source§fn on_pool(&mut self, pool: &Pool) -> Result<(), Error>
fn on_pool(&mut self, pool: &Pool) -> Result<(), Error>
Source§fn on_pool_swap(&mut self, swap: &PoolSwap) -> Result<(), Error>
fn on_pool_swap(&mut self, swap: &PoolSwap) -> Result<(), Error>
Source§fn on_pool_liquidity_update(
&mut self,
update: &PoolLiquidityUpdate,
) -> Result<(), Error>
fn on_pool_liquidity_update( &mut self, update: &PoolLiquidityUpdate, ) -> Result<(), Error>
Source§fn on_pool_fee_collect(&mut self, collect: &PoolFeeCollect) -> Result<(), Error>
fn on_pool_fee_collect(&mut self, collect: &PoolFeeCollect) -> Result<(), Error>
Source§fn on_pool_flash(&mut self, flash: &PoolFlash) -> Result<(), Error>
fn on_pool_flash(&mut self, flash: &PoolFlash) -> Result<(), Error>
Source§fn on_historical_data(
&mut self,
data: &(dyn Any + 'static),
) -> Result<(), Error>
fn on_historical_data( &mut self, data: &(dyn Any + 'static), ) -> Result<(), Error>
Source§fn on_historical_book_deltas(
&mut self,
deltas: &[OrderBookDelta],
) -> Result<(), Error>
fn on_historical_book_deltas( &mut self, deltas: &[OrderBookDelta], ) -> Result<(), Error>
Source§fn on_historical_book_depth(
&mut self,
depths: &[OrderBookDepth10],
) -> Result<(), Error>
fn on_historical_book_depth( &mut self, depths: &[OrderBookDepth10], ) -> Result<(), Error>
Source§fn on_historical_quotes(&mut self, quotes: &[QuoteTick]) -> Result<(), Error>
fn on_historical_quotes(&mut self, quotes: &[QuoteTick]) -> Result<(), Error>
Source§fn on_historical_trades(&mut self, trades: &[TradeTick]) -> Result<(), Error>
fn on_historical_trades(&mut self, trades: &[TradeTick]) -> Result<(), Error>
Source§fn on_historical_bars(&mut self, bars: &[Bar]) -> Result<(), Error>
fn on_historical_bars(&mut self, bars: &[Bar]) -> Result<(), Error>
Source§fn on_historical_mark_prices(
&mut self,
mark_prices: &[MarkPriceUpdate],
) -> Result<(), Error>
fn on_historical_mark_prices( &mut self, mark_prices: &[MarkPriceUpdate], ) -> Result<(), Error>
Source§fn on_historical_index_prices(
&mut self,
index_prices: &[IndexPriceUpdate],
) -> Result<(), Error>
fn on_historical_index_prices( &mut self, index_prices: &[IndexPriceUpdate], ) -> Result<(), Error>
Source§fn on_historical_funding_rates(
&mut self,
funding_rates: &[FundingRateUpdate],
) -> Result<(), Error>
fn on_historical_funding_rates( &mut self, funding_rates: &[FundingRateUpdate], ) -> Result<(), Error>
Source§fn clock(&self) -> ClockApi<'_>where
Self: DataActorNative,
fn clock(&self) -> ClockApi<'_>where
Self: DataActorNative,
Source§fn cache(&self) -> CacheApi<'_>where
Self: DataActorNative,
fn cache(&self) -> CacheApi<'_>where
Self: DataActorNative,
Source§fn shutdown_system(&self, reason: Option<String>)where
Self: DataActorNative,
fn shutdown_system(&self, reason: Option<String>)where
Self: DataActorNative,
Source§fn publish_data(&self, data_type: &DataType, data: &CustomData)where
Self: DataActorNative,
fn publish_data(&self, data_type: &DataType, data: &CustomData)where
Self: DataActorNative,
Source§fn publish_signal(&self, name: &str, value: String, ts_event: UnixNanos)where
Self: DataActorNative,
fn publish_signal(&self, name: &str, value: String, ts_event: UnixNanos)where
Self: DataActorNative,
Source§fn add_synthetic(&self, synthetic: SyntheticInstrument) -> Result<(), Error>where
Self: DataActorNative,
fn add_synthetic(&self, synthetic: SyntheticInstrument) -> Result<(), Error>where
Self: DataActorNative,
synthetic instrument to the cache. Read moreSource§fn update_synthetic(&self, synthetic: SyntheticInstrument) -> Result<(), Error>where
Self: DataActorNative,
fn update_synthetic(&self, synthetic: SyntheticInstrument) -> Result<(), Error>where
Self: DataActorNative,
synthetic instrument in the cache, replacing the existing entry. Read moreSource§fn handle_time_event(&mut self, event: &TimeEvent)where
Self: Component,
fn handle_time_event(&mut self, event: &TimeEvent)where
Self: Component,
Source§fn handle_data(&mut self, data: &CustomData)where
Self: Component,
fn handle_data(&mut self, data: &CustomData)where
Self: Component,
Source§fn handle_signal(&mut self, signal: &Signal)where
Self: Component,
fn handle_signal(&mut self, signal: &Signal)where
Self: Component,
Source§fn handle_queue_state(&mut self, event: &QueueStateChanged)where
Self: Component,
fn handle_queue_state(&mut self, event: &QueueStateChanged)where
Self: Component,
Source§fn handle_socket_state(&mut self, event: &SocketStateChanged)where
Self: Component,
fn handle_socket_state(&mut self, event: &SocketStateChanged)where
Self: Component,
Source§fn handle_instrument(&mut self, instrument: &InstrumentAny)where
Self: Component,
fn handle_instrument(&mut self, instrument: &InstrumentAny)where
Self: Component,
Source§fn handle_book_deltas(&mut self, deltas: &OrderBookDeltas)where
Self: Component,
fn handle_book_deltas(&mut self, deltas: &OrderBookDeltas)where
Self: Component,
Source§fn handle_book_depth(&mut self, depth: &OrderBookDepth10)where
Self: Component,
fn handle_book_depth(&mut self, depth: &OrderBookDepth10)where
Self: Component,
Source§fn handle_book(&mut self, book: &OrderBook)where
Self: Component,
fn handle_book(&mut self, book: &OrderBook)where
Self: Component,
Source§fn handle_quote(&mut self, quote: &QuoteTick)where
Self: DataActorNative + Component,
fn handle_quote(&mut self, quote: &QuoteTick)where
Self: DataActorNative + Component,
Source§fn handle_trade(&mut self, trade: &TradeTick)where
Self: DataActorNative + Component,
fn handle_trade(&mut self, trade: &TradeTick)where
Self: DataActorNative + Component,
Source§fn handle_bar(&mut self, bar: &Bar)where
Self: DataActorNative + Component,
fn handle_bar(&mut self, bar: &Bar)where
Self: DataActorNative + Component,
Source§fn handle_mark_price(&mut self, mark_price: &MarkPriceUpdate)where
Self: Component,
fn handle_mark_price(&mut self, mark_price: &MarkPriceUpdate)where
Self: Component,
Source§fn handle_index_price(&mut self, index_price: &IndexPriceUpdate)where
Self: Component,
fn handle_index_price(&mut self, index_price: &IndexPriceUpdate)where
Self: Component,
Source§fn handle_funding_rate(&mut self, funding_rate: &FundingRateUpdate)where
Self: Component,
fn handle_funding_rate(&mut self, funding_rate: &FundingRateUpdate)where
Self: Component,
Source§fn handle_option_greeks(&mut self, greeks: &OptionGreeks)where
Self: Component,
fn handle_option_greeks(&mut self, greeks: &OptionGreeks)where
Self: Component,
Source§fn handle_option_chain(&mut self, slice: &OptionChainSlice)where
Self: Component,
fn handle_option_chain(&mut self, slice: &OptionChainSlice)where
Self: Component,
Source§fn handle_instrument_status(&mut self, status: &InstrumentStatus)where
Self: Component,
fn handle_instrument_status(&mut self, status: &InstrumentStatus)where
Self: Component,
Source§fn handle_instrument_close(&mut self, close: &InstrumentClose)where
Self: Component,
fn handle_instrument_close(&mut self, close: &InstrumentClose)where
Self: Component,
Source§fn handle_block(&mut self, block: &Block)where
Self: Component,
fn handle_block(&mut self, block: &Block)where
Self: Component,
Source§fn handle_pool(&mut self, pool: &Pool)where
Self: Component,
fn handle_pool(&mut self, pool: &Pool)where
Self: Component,
Source§fn handle_pool_swap(&mut self, swap: &PoolSwap)where
Self: Component,
fn handle_pool_swap(&mut self, swap: &PoolSwap)where
Self: Component,
Source§fn handle_pool_liquidity_update(&mut self, update: &PoolLiquidityUpdate)where
Self: Component,
fn handle_pool_liquidity_update(&mut self, update: &PoolLiquidityUpdate)where
Self: Component,
Source§fn handle_pool_fee_collect(&mut self, collect: &PoolFeeCollect)where
Self: Component,
fn handle_pool_fee_collect(&mut self, collect: &PoolFeeCollect)where
Self: Component,
Source§fn handle_pool_flash(&mut self, flash: &PoolFlash)where
Self: Component,
fn handle_pool_flash(&mut self, flash: &PoolFlash)where
Self: Component,
Source§fn handle_historical_data(&mut self, data: &(dyn Any + 'static))
fn handle_historical_data(&mut self, data: &(dyn Any + 'static))
Source§fn handle_data_response(&mut self, resp: &CustomDataResponse)
fn handle_data_response(&mut self, resp: &CustomDataResponse)
Source§fn handle_instrument_response(&mut self, resp: &InstrumentResponse)
fn handle_instrument_response(&mut self, resp: &InstrumentResponse)
Source§fn handle_instruments_response(&mut self, resp: &InstrumentsResponse)
fn handle_instruments_response(&mut self, resp: &InstrumentsResponse)
Source§fn handle_book_response(&mut self, resp: &BookResponse)
fn handle_book_response(&mut self, resp: &BookResponse)
Source§fn handle_book_deltas_response(&mut self, resp: &BookDeltasResponse)
fn handle_book_deltas_response(&mut self, resp: &BookDeltasResponse)
Source§fn handle_book_depth_response(&mut self, resp: &BookDepthResponse)
fn handle_book_depth_response(&mut self, resp: &BookDepthResponse)
Source§fn handle_quotes_response(&mut self, resp: &QuotesResponse)where
Self: DataActorNative,
fn handle_quotes_response(&mut self, resp: &QuotesResponse)where
Self: DataActorNative,
Source§fn handle_trades_response(&mut self, resp: &TradesResponse)where
Self: DataActorNative,
fn handle_trades_response(&mut self, resp: &TradesResponse)where
Self: DataActorNative,
Source§fn handle_bars_response(&mut self, resp: &BarsResponse)where
Self: DataActorNative,
fn handle_bars_response(&mut self, resp: &BarsResponse)where
Self: DataActorNative,
Source§fn handle_funding_rates_response(&mut self, resp: &FundingRatesResponse)
fn handle_funding_rates_response(&mut self, resp: &FundingRatesResponse)
Source§fn subscribe_data(
&mut self,
data_type: DataType,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_data( &mut self, data_type: DataType, client_id: Option<ClientId>, params: Option<Params>, )
data_type data.Source§fn subscribe_queue_state(&mut self, priority: Option<u32>)
fn subscribe_queue_state(&mut self, priority: Option<u32>)
QueueStateChanged events. Read moreSource§fn subscribe_socket_state(&mut self, priority: Option<u32>)
fn subscribe_socket_state(&mut self, priority: Option<u32>)
SocketStateChanged events. Read moreSource§fn subscribe_quotes(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_quotes( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
QuoteTick data for the instrument_id.Source§fn subscribe_instruments(
&mut self,
venue: Venue,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_instruments( &mut self, venue: Venue, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentAny data for the venue.Source§fn subscribe_instrument(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_instrument( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentAny data for the instrument_id.Source§fn subscribe_book_deltas(
&mut self,
instrument_id: InstrumentId,
book_type: BookType,
depth: Option<NonZero<usize>>,
client_id: Option<ClientId>,
managed: bool,
params: Option<Params>,
)
fn subscribe_book_deltas( &mut self, instrument_id: InstrumentId, book_type: BookType, depth: Option<NonZero<usize>>, client_id: Option<ClientId>, managed: bool, params: Option<Params>, )
Source§fn subscribe_book_depth10(
&mut self,
instrument_id: InstrumentId,
book_type: BookType,
client_id: Option<ClientId>,
managed: bool,
params: Option<Params>,
)
fn subscribe_book_depth10( &mut self, instrument_id: InstrumentId, book_type: BookType, client_id: Option<ClientId>, managed: bool, params: Option<Params>, )
Source§fn subscribe_book_at_interval(
&mut self,
instrument_id: InstrumentId,
book_type: BookType,
depth: Option<NonZero<usize>>,
interval_ms: NonZero<usize>,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_book_at_interval( &mut self, instrument_id: InstrumentId, book_type: BookType, depth: Option<NonZero<usize>>, interval_ms: NonZero<usize>, client_id: Option<ClientId>, params: Option<Params>, )
OrderBook snapshots at a specified interval for the instrument_id.Source§fn subscribe_trades(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_trades( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
TradeTick data for the instrument_id.Source§fn subscribe_bars(
&mut self,
bar_type: BarType,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_bars( &mut self, bar_type: BarType, client_id: Option<ClientId>, params: Option<Params>, )
Bar data for the bar_type.Source§fn subscribe_mark_prices(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_mark_prices( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
MarkPriceUpdate data for the instrument_id.Source§fn subscribe_index_prices(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_index_prices( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
IndexPriceUpdate data for the instrument_id.Source§fn subscribe_funding_rates(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_funding_rates( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
FundingRateUpdate data for the instrument_id.Source§fn subscribe_option_greeks(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_option_greeks( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
OptionGreeks data for the instrument_id.Source§fn subscribe_instrument_status(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_instrument_status( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentStatus data for the instrument_id.Source§fn subscribe_instrument_close(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_instrument_close( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentClose data for the instrument_id.Source§fn subscribe_option_chain(
&mut self,
series_id: OptionSeriesId,
strike_range: StrikeRange,
snapshot_interval_ms: Option<u64>,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_option_chain( &mut self, series_id: OptionSeriesId, strike_range: StrikeRange, snapshot_interval_ms: Option<u64>, client_id: Option<ClientId>, params: Option<Params>, )
Source§fn subscribe_blocks(
&mut self,
chain: Blockchain,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_blocks( &mut self, chain: Blockchain, client_id: Option<ClientId>, params: Option<Params>, )
Block data for the chain.Source§fn subscribe_pool(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_pool( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
Pool definition updates for the AMM pool at the instrument_id.Source§fn subscribe_pool_swaps(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_pool_swaps( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolSwap data for the instrument_id.Source§fn subscribe_pool_liquidity_updates(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_pool_liquidity_updates( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolLiquidityUpdate data for the instrument_id.Source§fn subscribe_pool_fee_collects(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_pool_fee_collects( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolFeeCollect data for the instrument_id.Source§fn subscribe_pool_flash_events(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn subscribe_pool_flash_events( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolFlash events for the given instrument_id.Source§fn unsubscribe_data(
&mut self,
data_type: DataType,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_data( &mut self, data_type: DataType, client_id: Option<ClientId>, params: Option<Params>, )
data_type data.Source§fn unsubscribe_signal(&mut self, name: &str)
fn unsubscribe_signal(&mut self, name: &str)
Signal data by name.Source§fn unsubscribe_queue_state(&mut self)
fn unsubscribe_queue_state(&mut self)
QueueStateChanged events.Source§fn unsubscribe_socket_state(&mut self)
fn unsubscribe_socket_state(&mut self)
SocketStateChanged events.Source§fn unsubscribe_instruments(
&mut self,
venue: Venue,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_instruments( &mut self, venue: Venue, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentAny data for the venue.Source§fn unsubscribe_instrument(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_instrument( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentAny data for the instrument_id.Source§fn unsubscribe_book_deltas(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_book_deltas( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
OrderBookDeltas data for the instrument_id.Source§fn unsubscribe_book_depth10(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_book_depth10( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
OrderBookDepth10 data for the instrument_id.Source§fn unsubscribe_book_at_interval(
&mut self,
instrument_id: InstrumentId,
interval_ms: NonZero<usize>,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_book_at_interval( &mut self, instrument_id: InstrumentId, interval_ms: NonZero<usize>, client_id: Option<ClientId>, params: Option<Params>, )
OrderBook snapshots at a specified interval for the instrument_id.Source§fn unsubscribe_quotes(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_quotes( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
QuoteTick data for the instrument_id.Source§fn unsubscribe_trades(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_trades( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
TradeTick data for the instrument_id.Source§fn unsubscribe_bars(
&mut self,
bar_type: BarType,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_bars( &mut self, bar_type: BarType, client_id: Option<ClientId>, params: Option<Params>, )
Bar data for the bar_type.Source§fn unsubscribe_mark_prices(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_mark_prices( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
MarkPriceUpdate data for the instrument_id.Source§fn unsubscribe_index_prices(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_index_prices( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
IndexPriceUpdate data for the instrument_id.Source§fn unsubscribe_funding_rates(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_funding_rates( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
FundingRateUpdate data for the instrument_id.Source§fn unsubscribe_option_greeks(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_option_greeks( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
OptionGreeks data for the instrument_id.Source§fn unsubscribe_instrument_status(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_instrument_status( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentStatus data for the instrument_id.Source§fn unsubscribe_instrument_close(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_instrument_close( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
InstrumentClose data for the instrument_id.Source§fn unsubscribe_option_chain(
&mut self,
series_id: OptionSeriesId,
client_id: Option<ClientId>,
)
fn unsubscribe_option_chain( &mut self, series_id: OptionSeriesId, client_id: Option<ClientId>, )
OptionChainSlice snapshots for the option series_id.Source§fn unsubscribe_blocks(
&mut self,
chain: Blockchain,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_blocks( &mut self, chain: Blockchain, client_id: Option<ClientId>, params: Option<Params>, )
Block data for the chain.Source§fn unsubscribe_pool(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_pool( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
Pool definition updates for the AMM pool at the instrument_id.Source§fn unsubscribe_pool_swaps(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_pool_swaps( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolSwap data for the instrument_id.Source§fn unsubscribe_pool_liquidity_updates(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_pool_liquidity_updates( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolLiquidityUpdate data for the instrument_id.Source§fn unsubscribe_pool_fee_collects(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_pool_fee_collects( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolFeeCollect data for the instrument_id.Source§fn unsubscribe_pool_flash_events(
&mut self,
instrument_id: InstrumentId,
client_id: Option<ClientId>,
params: Option<Params>,
)
fn unsubscribe_pool_flash_events( &mut self, instrument_id: InstrumentId, client_id: Option<ClientId>, params: Option<Params>, )
PoolFlash events for the given instrument_id.Source§fn request_data(
&mut self,
data_type: DataType,
client_id: ClientId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_data( &mut self, data_type: DataType, client_id: ClientId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, params: Option<Params>, ) -> Result<UUID4, Error>
data_type. Read moreSource§fn request_instrument(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_instrument( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_instruments(
&mut self,
venue: Option<Venue>,
start: Option<Timestamp>,
end: Option<Timestamp>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_instruments( &mut self, venue: Option<Venue>, start: Option<Timestamp>, end: Option<Timestamp>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_book_snapshot(
&mut self,
instrument_id: InstrumentId,
depth: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_book_snapshot( &mut self, instrument_id: InstrumentId, depth: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_book_deltas(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_book_deltas( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_book_depth(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
depth: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_book_depth( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, depth: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_quotes(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_quotes( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_trades(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_trades( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_bars(
&mut self,
bar_type: BarType,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_bars( &mut self, bar_type: BarType, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn request_funding_rates(
&mut self,
instrument_id: InstrumentId,
start: Option<Timestamp>,
end: Option<Timestamp>,
limit: Option<NonZero<usize>>,
client_id: Option<ClientId>,
params: Option<Params>,
) -> Result<UUID4, Error>
fn request_funding_rates( &mut self, instrument_id: InstrumentId, start: Option<Timestamp>, end: Option<Timestamp>, limit: Option<NonZero<usize>>, client_id: Option<ClientId>, params: Option<Params>, ) -> Result<UUID4, Error>
Source§fn reconnect_socket(
&self,
client_id: ClientId,
endpoint: &str,
) -> Result<(), Error>where
Self: DataActorNative,
fn reconnect_socket(
&self,
client_id: ClientId,
endpoint: &str,
) -> Result<(), Error>where
Self: DataActorNative,
client_id. Read moreSource§impl DataActorNative for Controller
impl DataActorNative for Controller
Source§fn core(&self) -> &DataActorCore
fn core(&self) -> &DataActorCore
Source§fn core_mut(&mut self) -> &mut DataActorCore
fn core_mut(&mut self) -> &mut DataActorCore
Source§fn clock_mut(&mut self) -> RefMut<'_, dyn Clock + 'static>
fn clock_mut(&mut self) -> RefMut<'_, dyn Clock + 'static>
Auto Trait Implementations§
impl !RefUnwindSafe for Controller
impl !Send for Controller
impl !Sync for Controller
impl !UnwindSafe for Controller
impl Freeze for Controller
impl Unpin for Controller
impl UnsafeUnpin for Controller
Blanket Implementations§
Source§impl<T> Actor for T
impl<T> Actor for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Component for T
impl<T> Component for T
Source§fn component_id(&self) -> ComponentId
fn component_id(&self) -> ComponentId
Source§fn release_subscriptions(&mut self)
fn release_subscriptions(&mut self)
Source§fn state(&self) -> ComponentState
fn state(&self) -> ComponentState
Source§fn transition_state(&mut self, trigger: ComponentTrigger) -> Result<(), Error>
fn transition_state(&mut self, trigger: ComponentTrigger) -> Result<(), Error>
Source§fn register(
&mut self,
trader_id: TraderId,
clock: Rc<RefCell<dyn Clock>>,
cache: Rc<RefCell<Cache>>,
) -> Result<(), Error>
fn register( &mut self, trader_id: TraderId, clock: Rc<RefCell<dyn Clock>>, cache: Rc<RefCell<Cache>>, ) -> Result<(), Error>
Source§fn not_running(&self) -> bool
fn not_running(&self) -> bool
Source§fn is_running(&self) -> bool
fn is_running(&self) -> bool
Source§fn is_stopped(&self) -> bool
fn is_stopped(&self) -> bool
Source§fn is_degraded(&self) -> bool
fn is_degraded(&self) -> bool
Source§fn is_faulted(&self) -> bool
fn is_faulted(&self) -> bool
Source§fn is_disposed(&self) -> bool
fn is_disposed(&self) -> bool
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more