1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! History domain — activity (v1 + v3) and transactions (v1 + v2).
//!
//! Access via [`crate::IgClient::history`]:
//!
//! ```no_run
//! use trading_ig::history::ActivityRequest;
//!
//! # async fn run(client: &trading_ig::IgClient) -> trading_ig::Result<()> {
//! // Activity v3 (paginated, all pages returned):
//! let acts = client.history().activity_v3(ActivityRequest::default()).await?;
//!
//! // Activity v1 (last 24 h):
//! let acts_v1 = client.history().activity_by_period_v1(86_400_000).await?;
//!
//! // Transactions v2:
//! use trading_ig::history::TransactionsRequest;
//! let txs = client.history().transactions_v2(TransactionsRequest::default()).await?;
//! # Ok(()) }
//! ```
pub use ;
use crateIgClient;
/// Typed accessor for the history domain.
///
/// Obtain one via [`IgClient::history`].