Skip to main content

nautilus_common/live/
mod.rs

1// -------------------------------------------------------------------------------------------------
2//  Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
3//  https://nautechsystems.io
4//
5//  Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6//  You may not use this file except in compliance with the License.
7//  You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9//  Unless required by applicable law or agreed to in writing, software
10//  distributed under the License is distributed on an "AS IS" BASIS,
11//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//  See the License for the specific language governing permissions and
13//  limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16//! Live (async/tokio) components for real-time trading.
17//!
18//! This module contains components that require the tokio async runtime and are
19//! used for live trading scenarios. These are gated behind the `live` feature flag.
20
21pub mod clock;
22pub mod dispatch;
23pub mod dst;
24pub mod listener;
25pub mod runner;
26pub mod runtime;
27pub mod sender;
28pub mod task;
29pub mod timer;
30
31pub use clock::LiveClock;
32pub use listener::MessageBusListener;
33pub use runner::{
34    get_data_event_sender, get_exec_event_sender, get_system_command_sender,
35    get_system_event_sender, set_data_event_sender, set_exec_event_sender,
36    set_system_command_sender, set_system_event_sender, try_get_data_event_sender,
37    try_get_exec_event_sender, try_get_system_command_sender, try_get_system_event_sender,
38};
39pub use runtime::{
40    block_in_place_on_nautilus, block_on_nautilus, block_on_nautilus_with, get_runtime,
41    set_runtime, shutdown_runtime,
42};
43pub use timer::LiveTimer;