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
//! Async Rust client for the Alpaca Trading HTTP API.
//!
//! The default builder targets Alpaca paper trading. Use `Client::builder().live()`
//! to select the live base URL, or `base_url_str(...)` for a custom endpoint.
//!
//! Environment variables:
//!
//! - `ALPACA_TRADE_API_KEY`
//! - `ALPACA_TRADE_SECRET_KEY`
//! - `ALPACA_TRADE_BASE_URL`
//!
//! ```no_run
//! use alpaca_trade::Client;
//!
//! let client = Client::builder()
//! .credentials_from_env()?
//! .base_url_from_env()?
//! .build()?;
//! let _account = client.account();
//! # Ok::<(), alpaca_trade::Error>(())
//! ```
//!
//! For mock-backed lifecycle validation, see `alpaca-mock` and the workspace
//! docs site at <https://wmzhai.github.io/alpaca-rust/>.
//!
pub use ;
pub use Error;