Skip to main content

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#[serde(rename_all = "camelCase")]
8#[cfg_attr(feature = "dataframe", derive(crate::ToDataFrame))]
9pub struct Exchange {
10    /// Country or region where the exchange operates.
11    pub country: String,
12    /// Name of the market or index.
13    pub market: String,
14    /// Symbol suffix used for this exchange (e.g., ".L" for London).
15    /// "N/A" if no suffix is needed.
16    pub suffix: String,
17    /// Data delay (e.g., "Real-time", "15 min", "20 min").
18    pub delay: String,
19    /// Data provider (e.g., "ICE Data Services").
20    pub data_provider: String,
21}