nautilus_bybit/lib.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//! [NautilusTrader](https://nautilustrader.io) adapter for the
17//! [Bybit](https://www.bybit.com/) cryptocurrency exchange.
18//!
19//! The `nautilus-bybit` crate provides client bindings (HTTP & WebSocket), data
20//! models, and helper utilities that wrap the official **Bybit v5 API**.
21//!
22//! The official Bybit API reference can be found at <https://bybit-exchange.github.io/docs/v5/intro>.
23//! All public links inside this crate reference the English version of the documentation.
24//!
25//! # NautilusTrader
26//!
27//! [NautilusTrader](https://nautilustrader.io) is an open-source, production-grade, Rust-native
28//! engine for multi-asset, multi-venue trading systems.
29//!
30//! The system spans research, deterministic simulation, and live execution within a single
31//! event-driven architecture, providing research-to-live semantic parity.
32//!
33//! # Feature Flags
34//!
35//! This crate provides feature flags to control source code inclusion during compilation,
36//! depending on the intended use case (Rust-only builds vs. Python bindings through PyO3).
37//!
38//! - `python`: Enables Python bindings via [PyO3](https://pyo3.rs).
39//! - `extension-module`: Builds as a Python extension module (used together with `python`).
40//!
41//! [High-precision mode](https://nautilustrader.io/docs/nightly/getting_started/installation#precision-mode) (128-bit value types) is enabled by default.
42//!
43//! # Documentation
44//!
45//! See <https://docs.rs/nautilus-bybit> for the latest API documentation.
46
47#![warn(rustc::all)]
48#![deny(unsafe_code)]
49#![deny(nonstandard_style)]
50#![deny(missing_debug_implementations)]
51// #![deny(clippy::missing_errors_doc)]
52#![deny(clippy::missing_panics_doc)]
53#![deny(rustdoc::broken_intra_doc_links)]
54
55pub mod common;
56pub mod config;
57pub mod data;
58pub mod execution;
59pub mod factories;
60pub mod http;
61pub mod websocket;
62
63#[cfg(feature = "python")]
64pub mod python;