webull_rs/lib.rs
1//! A Rust client for the Webull trading API.
2//!
3//! This crate provides a robust, type-safe, and idiomatic interface to the Webull trading API,
4//! enabling developers to build trading applications, algorithms, and bots in Rust.
5
6// Re-export core modules
7pub mod auth;
8pub mod client;
9pub mod config;
10pub mod error;
11
12// Re-export models and endpoints
13pub mod endpoints;
14pub mod models;
15pub mod streaming;
16pub mod utils;
17
18// Re-export key types for convenience
19pub use client::{WebullClient, WebullClientBuilder};
20pub use config::WebullConfig;
21pub use error::{WebullError, WebullResult};
22
23#[cfg(test)]
24mod tests {
25 use super::*;
26
27 #[test]
28 fn client_builder_works() {
29 let client = WebullClient::builder().build();
30 assert!(client.is_ok());
31 }
32}
33
34// Test modules will be added in the future