Appendix
Client constructors
pub fn QuoteClient::new(http_client: HttpClient) -> QuoteClient
pub fn TradeClient::new(http_client: HttpClient, account: impl Into<String>) -> TradeClient
pub fn TradeClient::with_secret_key(http_client: HttpClient, account: impl Into<String>, secret_key: impl Into<String>) -> TradeClientBuild quote HTTP clients with HttpClient::with_quote_server(config) and trade clients with HttpClient::new(config). Constructors take ownership.
Types and defaults
- Requests use snake_case; most
Option<T>fields default to None and are omitted. - Responses normally deserialize camelCase.
PlaceOrderResult.order_idis a snake_case wire exception. - Times are generally
i64Unix milliseconds; explicit dates areStringYYYY-MM-DD. - Prices/amounts are mainly
f64; quantities arei64orf64exactly as modeled. - Empty responses become empty Vec, None, or
T::default()according to the method. - Date/OCC option helpers infer timezone;
_tzvariants specify one. - The current model field is
OptionAnalysis.implied_vol30_days, notimplied_vol_30_days.
Errors, permissions, rate limits
TigerError covers configuration, serialization, HTTP, signatures, and server business errors. Do not blindly retry mutations. Quote licenses, account type, trading permission, market state, and buying power can reject calls. The SDK declares only a few client defaults, not universal server batch/time/rate limits; follow each API and account response.
Links
- Rust SDK source
- Latest tigeropen docs.rs
- Crates.io
- OpenAPI documentation
- Market data
- Trading
- Account management
- Push
Pages in this section
Updated 3 days ago
Did this page help you?
