exc_okx/lib.rs
1//! Exc-okx: Okx exchange services.
2
3#![deny(missing_docs)]
4
5cfg_if::cfg_if! {
6 if #[cfg(any(feature = "rustls-tls", feature = "native-tls"))] {
7 /// The OKX service of both ws and rest APIs.
8 pub mod service;
9
10 /// Exchange.
11 pub mod exchange;
12
13 pub use exchange::OkxExchange;
14 pub use service::{Okx, OkxRequest, OkxResponse};
15 } else {
16 compile_error!("Either feature 'rustls-tls' or 'native-tls' must be enabled");
17 }
18}
19
20/// Utils
21pub mod utils;
22
23/// Websocket API.
24pub mod websocket;
25
26/// Http API.
27pub mod http;
28
29/// All errors.
30pub mod error;
31
32/// Key.
33pub mod key;
34
35#[macro_use]
36extern crate tracing;