Skip to main content

financial_api/models/
meta.rs

1use serde::Deserialize;
2
3use crate::{AssetType, Exchange, Thscode};
4
5use super::TimestampedItems;
6
7/// 一条规范化标的代码记录。
8#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
9pub struct TickerItem {
10    pub thscode: Thscode,
11    pub ticker: String,
12    pub name: String,
13    pub exchange: Option<Exchange>,
14    pub asset_type: AssetType,
15    pub currency: String,
16}
17
18pub type TickerData = TimestampedItems<TickerItem>;