finance_query/models/recommendation/symbol.rs
1/// Similar Symbol module
2///
3/// Contains the SimilarSymbol type representing a recommended symbol.
4use serde::{Deserialize, Serialize};
5
6/// A similar/recommended symbol with score
7///
8/// Note: This struct cannot be manually constructed - obtain via `Ticker::recommendations()`.
9#[non_exhaustive]
10#[derive(Debug, Clone, Serialize, Deserialize)]
11#[cfg_attr(feature = "dataframe", derive(crate::ToDataFrame))]
12pub struct SimilarSymbol {
13 /// Stock symbol
14 pub symbol: String,
15 /// Recommendation score (higher = more similar)
16 pub score: f64,
17}