cbadv/
lib.rs

1//! # cbadv, Coinbase Advanced API
2//!
3//! `cbadv` provides the tools required to access the new Coinbase Advanced API. Coinbased Advanced
4//! API is the successor of the Coinbase Pro API which is now depreciated.
5//!
6//! This crate is still a work-in-progress with additional optimizations and quality checking to
7//! come in future updates. Use it as your own discretion and be mindful that bugs most likely
8//! exist. I hold no responsibility for any issues that occur by using this software and welcome
9//! contributions.
10#![warn(clippy::pedantic)]
11#![allow(
12    clippy::return_self_not_must_use,
13    clippy::must_use_candidate,
14    clippy::module_name_repetitions,
15    clippy::struct_excessive_bools
16)]
17#![cfg_attr(all(test, feature = "full"), deny(unreachable_pub))]
18#![cfg_attr(all(test, feature = "full"), deny(warnings))]
19
20#[cfg(feature = "config")]
21pub mod config;
22
23#[macro_use]
24pub(crate) mod macros;
25
26/// Re-export tokio for use in the library.
27pub use tokio::{self, main as tokio_main};
28
29pub(crate) mod http_agent;
30pub(crate) mod jwt;
31mod token_bucket;
32
33pub(crate) mod constants;
34pub mod errors;
35pub mod time;
36pub mod traits;
37pub mod types;
38pub(crate) mod utils;
39
40pub mod apis;
41pub mod models;
42
43mod rest;
44mod websocket;
45pub use rest::{RestClient, RestClientBuilder};
46pub use websocket::{WebSocketClient, WebSocketClientBuilder};