Skip to main content

okx_client/
lib.rs

1#[cfg(all(feature = "native-tls", feature = "rustls-tls"))]
2compile_error!("features `native-tls` and `rustls-tls` cannot be enabled together");
3
4#[cfg(not(any(feature = "native-tls", feature = "rustls-tls")))]
5compile_error!("enable either the `native-tls` or `rustls-tls` feature");
6
7pub mod auth;
8pub mod config;
9pub mod constants;
10pub mod error;
11pub mod rest;
12pub mod types;
13pub mod ws;
14
15// Re-export primary types for convenience.
16pub use config::{ClientConfig, ClientConfigBuilder, Credentials, Region, TradingMode};
17pub use error::{OkxError, OkxResult};
18pub use rest::RestClient;
19pub use ws::api_client::WsApiClient;
20pub use ws::WebsocketClient;