nautilus_bybit/
lib.rs

1// -------------------------------------------------------------------------------------------------
2//  Copyright (C) 2015-2025 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](http://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//! # Platform
26//!
27//! [NautilusTrader](http://nautilustrader.io) is an open-source, high-performance, production-grade
28//! algorithmic trading platform, providing quantitative traders with the ability to backtest
29//! portfolios of automated trading strategies on historical data with an event-driven engine,
30//! and also deploy those same strategies live, with no code changes.
31//!
32//! NautilusTrader's design, architecture, and implementation philosophy prioritizes software
33//! correctness and safety at the highest level, with the aim of supporting mission-critical trading
34//! system backtesting and live deployment workloads.
35//!
36//! # Feature flags
37//!
38//! This crate provides feature flags to control source code inclusion during compilation,
39//! depending on the intended use case (Rust-only builds vs. Python bindings through PyO3).
40//!
41//! - `python`: Enables Python bindings via [PyO3](https://pyo3.rs).
42//! - `extension-module`: Builds as a Python extension module (used together with `python`).
43//!
44//! # Documentation
45//!
46//! See <https://docs.rs/nautilus-bybit> for the latest API documentation.
47
48#![warn(rustc::all)]
49#![deny(unsafe_code)]
50#![deny(nonstandard_style)]
51#![deny(missing_debug_implementations)]
52// #![deny(clippy::missing_errors_doc)]
53#![deny(clippy::missing_panics_doc)]
54#![deny(rustdoc::broken_intra_doc_links)]
55
56pub mod common;
57pub mod config;
58pub mod data;
59pub mod error;
60pub mod execution;
61pub mod http;
62pub mod websocket;
63
64#[cfg(feature = "python")]
65pub mod python;