finance_query/models/exchanges.rs
1//! Exchange models for Yahoo Finance supported exchanges.
2
3use serde::{Deserialize, Serialize};
4
5/// Information about a supported exchange.
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[cfg_attr(feature = "dataframe", derive(crate::ToDataFrame))]
8pub struct Exchange {
9 /// Country or region where the exchange operates.
10 pub country: String,
11 /// Name of the market or index.
12 pub market: String,
13 /// Symbol suffix used for this exchange (e.g., ".L" for London).
14 /// "N/A" if no suffix is needed.
15 pub suffix: String,
16 /// Data delay (e.g., "Real-time", "15 min", "20 min").
17 pub delay: String,
18 /// Data provider (e.g., "ICE Data Services").
19 pub data_provider: String,
20}