truefix_twsapi_client/lib.rs
1//! Thin TWS/Gateway protocol client.
2//!
3//! This crate ports the official TWS API client's low-level protocol layer while using `twsapi`
4//! naming in TrueFix-owned code.
5#![cfg_attr(
6 not(test),
7 deny(
8 clippy::unwrap_used,
9 clippy::expect_used,
10 clippy::panic,
11 clippy::indexing_slicing
12 )
13)]
14
15/// Connection-oriented TWS API client.
16pub mod client;
17/// Low-level frame and field encoding helpers.
18pub mod comm;
19/// Protocol constants.
20pub mod constants;
21/// Incoming message decoder.
22pub mod decoder;
23/// Semantic enums for wire-level integer and string values.
24pub mod enums;
25/// Client-side error types.
26pub mod error;
27/// TWS callback events.
28pub mod events;
29/// Incoming and outgoing TWS API message identifiers.
30pub mod message;
31/// Rust types generated from the official TWS API `.proto` files.
32pub mod protobuf {
33 #![allow(clippy::tabs_in_doc_comments)]
34 include!(concat!(env!("OUT_DIR"), "/protobuf.rs"));
35}
36/// Request encoders and request payload types.
37pub mod requests;
38/// Server-version feature gates.
39pub mod server_versions;
40/// Domain model types used by requests and callbacks.
41pub mod types;
42
43pub use client::{ClientConfig, ConnectionState, EventPump, TwsApiClient};
44pub use error::{TwsApiError, TwsApiResult};
45pub use events::{Event, Wrapper};