Expand description
§nautilus-schwab
Charles Schwab adapter for Nautilus Trader.
This crate provides a Rust-native adapter that connects Nautilus Trader to Charles Schwab’s Trader API, Market Data API, and real-time streamer.
§Architecture
The adapter translates between [schwab-sdk] types and Nautilus domain types,
implementing the standard DataClient and ExecutionClient traits.
┌─────────────────────────────────────────────────┐
│ Nautilus Trader Engine │
│ ┌──────────────┐ ┌────────────────────────┐ │
│ │ SchwabData │ │ SchwabExecution │ │
│ │ Client │ │ Client │ │
│ └──────┬───────┘ └──────────┬─────────────┘ │
│ │ │ │
│ ┌──────▼───────────────────────▼─────────────┐ │
│ │ schwab-sdk 0.5 (Rust crate) │ │
│ │ accounts · orders · market_data · streamer │ │
│ └──────────────────┬─────────────────────────┘ │
│ │ │
│ ┌──────────────────▼─────────────────────────┐ │
│ │ TokenProvider impl (refresh-on-demand) │ │
│ └────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘§V1 Capability Matrix
| Capability | Status | Notes |
|---|---|---|
| US Equities & ETFs | ✅ Planned | Primary target |
| Market Orders | ✅ Planned | |
| Limit Orders | ✅ Planned | Via OrderRequest::buy_limit() etc. |
| Stop Orders | ✅ Planned | |
| Real-time Quotes | ✅ Planned | Via client.streamer() |
| Real-time Bars | ✅ Planned | Via client.streamer() |
| Account Balance | ✅ Planned | |
| Position Reconciliation | ✅ Planned | Startup mass-status |
| OAuth Token Refresh | ✅ Planned | Automatic via TokenProvider |
| Options | ❌ V2 | |
| Futures | ❌ V2 | |
| Forex | ❌ V2 | |
| OCO/Bracket Orders | ❌ V2 | |
| Historical Bar Bulk | ❌ V2 | Single requests OK |
Re-exports§
pub use common::credential::SchwabCredential;pub use common::symbol::SchwabSymbol;pub use oauth::provider::SchwabTokenProvider;
Modules§
- common
- Common types shared across the Schwab adapter.
- data
- Schwab DataClient implementation for Nautilus Trader.
- execution
- Schwab ExecutionClient implementation for Nautilus Trader.
- factories
- Factory implementations for creating Schwab adapter components.
- http
- HTTP transport layer wrapping
schwab_sdk::SchwabClient. - oauth
- OAuth 2.0 authentication for Schwab API.
Constants§
- VENUE
- Adapter venue identifier used in Nautilus InstrumentId values.