Skip to main content

trading_ig/
lib.rs

1//! Async Rust client for the IG Markets REST and Lightstreamer streaming APIs.
2//!
3//! See the project [`README`] and [`docs/API_CATALOG.md`] for an overview of
4//! the surface area being ported.
5//!
6//! [`README`]: https://github.com/ig-python/trading-ig-rust
7//! [`docs/API_CATALOG.md`]: https://github.com/ig-python/trading-ig-rust/blob/main/docs/API_CATALOG.md
8
9#![cfg_attr(docsrs, feature(doc_cfg))]
10
11pub mod accounts;
12pub mod client;
13pub mod client_sentiment;
14pub mod config;
15#[cfg(feature = "polars")]
16#[cfg_attr(docsrs, doc(cfg(feature = "polars")))]
17pub mod dataframe;
18pub mod dealing;
19pub mod error;
20pub mod history;
21pub mod markets;
22pub mod models;
23pub mod operations;
24pub mod prices;
25pub mod repeat_dealing;
26pub mod session;
27#[cfg(feature = "stream")]
28#[cfg_attr(docsrs, doc(cfg(feature = "stream")))]
29pub mod streaming;
30pub mod time;
31pub mod watchlists;
32
33pub use client::{IgClient, IgClientBuilder};
34pub use config::{Environment, IgConfig};
35pub use error::{ApiError, Error, Result};
36pub use session::{Credentials, SessionInfo};