Skip to main content

otc_rfq/
lib.rs

1//! # OTC RFQ Engine
2//!
3//! High-performance OTC Request-for-Quote engine supporting DeFi protocols
4//! (0x, 1inch, Uniswap, Hashflow) and TradFi venues via FIX 4.4.
5//!
6//! ## Architecture
7//!
8//! This crate follows Domain-Driven Design with a layered architecture:
9//!
10//! - **Domain Layer** (`domain`): Core business logic, entities, value objects, and domain events
11//! - **Application Layer** (`application`): Use cases, services, and orchestration
12//! - **Infrastructure Layer** (`infrastructure`): External adapters, repositories, and integrations
13//! - **API Layer** (`api`): gRPC, REST, and WebSocket interfaces
14//!
15//! ## Example
16//!
17//! ```rust,ignore
18//! use otc_rfq::application::use_cases::CreateRFQUseCase;
19//! use otc_rfq::domain::value_objects::{Quantity, Symbol};
20//!
21//! // Create an RFQ request
22//! let rfq = CreateRFQUseCase::new(/* dependencies */)
23//!     .execute(request)
24//!     .await?;
25//! ```
26
27#![warn(missing_docs)]
28#![deny(unsafe_code)]
29
30pub mod api;
31pub mod application;
32pub mod domain;
33pub mod infrastructure;