Expand description
Broker trait and implementations for nanobook.
Provides a generic Broker trait that abstracts over different brokerages.
Implementations:
- IBKR (feature
ibkr): Interactive Brokers via TWS API - Binance (feature
binance): Binance spot REST API
Re-exports§
pub use error::BrokerError;pub use types::*;
Modules§
- error
- Broker error types.
- mock
- Mock broker for testing — implements the
Brokertrait with configurable behavior. - types
- Shared broker types: positions, accounts, orders, quotes.
Traits§
- Broker
- A broker connection that can fetch positions, submit orders, and get quotes.