Crate ibapi

Crate ibapi 

Source
Expand description

githubcrates-iolicense


A comprehensive Rust implementation of the Interactive Brokers TWS API, providing a robust and user-friendly interface for TWS and IB Gateway. Designed with simplicity in mind, it integrates smoothly into trading systems.

This fully featured API enables the retrieval of account information, access to real-time and historical market data, order management, market scanning, and access to news and Wall Street Horizons (WSH) event data. Future updates will focus on bug fixes, maintaining parity with the official API, and enhancing usability.

For an overview of API usage, refer to the README.

Modules§

accounts
Describes items present in an account.
client
TWS API Client.
contracts
A Contract object represents trading instruments such as a stocks, futures or options.
errors
Error types for the IBAPI library.
market_data
APIs for retrieving market data Market data types and functionality
messages
Message encoding, decoding, and routing for TWS API communication.
news
APIs for retrieving news data including articles, bulletins, and providers News data retrieval and management functionality.
orders
Data types for building and placing orders.
prelude
A prelude module for convenient importing of commonly used types. A prelude module for convenient importing of commonly used types and traits.
protocol
Protocol version checking and constants for TWS API features. Protocol version checking and constants for TWS API features.
scanner
APIs for working with the market scanner. Market scanner functionality for discovering trading opportunities.
subscriptions
Subscription types for streaming data Subscription types for sync/async streaming data
trace
Server interaction tracing for debugging and monitoring Server interaction tracing for debugging and monitoring
wsh
APIs for working with Wall Street Horizon: Earnings Calendar & Event Data. Wall Street Horizon: Earnings Calendar & Event Data.

Structs§

Client
Asynchronous TWS API Client

Enums§

Error
The main error type for IBAPI operations.