1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Rust client library for the Schwab API.
//!
//! `schwab-rs` is an unofficial project. It is not affiliated with,
//! endorsed by, or sponsored by Charles Schwab & Co., Inc., Schwab brokerage
//! services, or thinkorswim.
//!
//! The OpenAPI files in `docs/` describe the Schwab HTTP API. This crate exposes
//! small client methods like `get_quotes(...)` instead of forcing callers to
//! build raw URLs and parse raw JSON.
//!
//! # Quotes example
//!
//! ```no_run
//! # async fn example() -> schwab::Result<()> {
//! use schwab::{Client, Config, QuoteOptions};
//!
//! let config = Config::new().base_url("http://127.0.0.1:8080/marketdata/v1")?;
//! let client = Client::new(config);
//!
//! let quotes = client
//! .get_quotes_with_options(
//! ["AAPL", "MSFT"],
//! QuoteOptions::new().fields("quote,reference"),
//! )
//! .await?;
//!
//! if let Some(quote) = quotes.get("AAPL") {
//! println!("AAPL quote: {:?}", quote);
//! }
//! # Ok(())
//! # }
//! ```
pub use Client;
pub use Config;
pub use ;
pub use *;
pub use ;
pub use OrderBuilder;