trading_ig/repeat_dealing/models.rs
1//! Types for the repeat dealing domain.
2
3use chrono::NaiveDateTime;
4use serde::{Deserialize, Serialize};
5
6use crate::models::Epic;
7
8/// The time window during which a recently traded instrument can be
9/// re-traded with the same dealing characteristics.
10#[derive(Debug, Clone, Serialize, Deserialize)]
11#[serde(rename_all = "camelCase")]
12pub struct RepeatDealingWindow {
13 /// The instrument epic.
14 pub epic: Epic,
15 /// Start of the repeat-dealing window (UTC).
16 pub valid_from: NaiveDateTime,
17 /// End of the repeat-dealing window (UTC).
18 pub valid_to: NaiveDateTime,
19}