Skip to main content

Crate trading_ig

Crate trading_ig 

Source
Expand description

Async Rust client for the IG Markets REST and Lightstreamer streaming APIs.

See the project README and docs/API_CATALOG.md for an overview of the surface area being ported.

Re-exports§

pub use client::IgClient;
pub use client::IgClientBuilder;
pub use config::Environment;
pub use config::IgConfig;
pub use error::ApiError;
pub use error::Error;
pub use error::Result;
pub use session::Credentials;
pub use session::SessionInfo;

Modules§

accounts
Accounts domain: list accounts and manage preferences.
client
The top-level IgClient — entry point for all REST domain APIs.
client_sentiment
Client sentiment domain — proportion of IG clients long vs short.
config
Configuration types: environments, base URLs, defaults.
dataframepolars
Conversion of tabular API responses into Polars DataFrames.
dealing
Dealing domain — positions and working orders.
error
Crate-wide error type.
history
History domain — activity (v1 + v3) and transactions (v1 + v2).
markets
Markets domain — search, fetch, and navigate IG market instruments.
models
Shared types used across multiple domain modules.
operations
Operations domain — manage API application keys.
prices
Historical prices domain.
repeat_dealing
Repeat dealing domain — windows for re-trading recently dealt instruments.
session
Session lifecycle: login (v2/v3), refresh, switch account, logout.
streamingstream
Lightstreamer streaming client for the IG Markets API.
time
Date/time conversions for the various IG API formats.
watchlists
Watchlists domain: full CRUD on watchlists and their markets.