pub struct Quote {Show 42 fields
pub date: String,
pub data_type: Option<String>,
pub exchange: Option<String>,
pub market: Option<String>,
pub symbol: String,
pub name: Option<String>,
pub previous_close: Option<f64>,
pub open_price: Option<f64>,
pub open_time: Option<i64>,
pub high_price: Option<f64>,
pub high_time: Option<i64>,
pub low_price: Option<f64>,
pub low_time: Option<i64>,
pub close_price: Option<f64>,
pub close_time: Option<i64>,
pub last_price: Option<f64>,
pub last_size: Option<i64>,
pub avg_price: Option<f64>,
pub change: Option<f64>,
pub change_percent: Option<f64>,
pub amplitude: Option<f64>,
pub bids: Vec<PriceLevel>,
pub asks: Vec<PriceLevel>,
pub total: Option<TotalStats>,
pub last_trade: Option<TradeInfo>,
pub last_trial: Option<TradeInfo>,
pub trading_halt: Option<TradingHalt>,
pub is_limit_down_price: bool,
pub is_limit_up_price: bool,
pub is_limit_down_bid: bool,
pub is_limit_up_bid: bool,
pub is_limit_down_ask: bool,
pub is_limit_up_ask: bool,
pub is_limit_down_halt: bool,
pub is_limit_up_halt: bool,
pub is_trial: bool,
pub is_delayed_open: bool,
pub is_delayed_close: bool,
pub is_continuous: bool,
pub is_open: bool,
pub is_close: bool,
pub last_updated: Option<i64>,
}Expand description
Real-time stock quote from Fugle API (intraday/quote/{symbol})
This matches the official SDK’s RestStockIntradayQuoteResponse
Fields§
§date: StringTrading date (YYYY-MM-DD)
data_type: Option<String>Security type (e.g., “EQUITY”, “ODDLOT”)
exchange: Option<String>Exchange code (e.g., “TWSE”, “TPEx”)
market: Option<String>Market (e.g., “TSE”, “OTC”)
symbol: StringStock symbol (e.g., “2330”)
name: Option<String>Stock name
previous_close: Option<f64>Previous trading day’s close price
open_price: Option<f64>Open price
open_time: Option<i64>Open time (Unix ms)
high_price: Option<f64>High price
high_time: Option<i64>High time (Unix ms)
low_price: Option<f64>Low price
low_time: Option<i64>Low time (Unix ms)
close_price: Option<f64>Close price
close_time: Option<i64>Close time (Unix ms)
last_price: Option<f64>Last traded price
last_size: Option<i64>Last traded size
avg_price: Option<f64>Average price
change: Option<f64>Price change from previous close
change_percent: Option<f64>Percentage change from previous close
amplitude: Option<f64>Price amplitude (high - low) / previous close * 100
bids: Vec<PriceLevel>Bid price levels
asks: Vec<PriceLevel>Ask price levels
total: Option<TotalStats>Total trading statistics
last_trade: Option<TradeInfo>Last trade info
last_trial: Option<TradeInfo>Last trial (simulated matching) info
trading_halt: Option<TradingHalt>Trading halt status
is_limit_down_price: boolIs at limit down price
is_limit_up_price: boolIs at limit up price
is_limit_down_bid: boolIs limit down bid
is_limit_up_bid: boolIs limit up bid
is_limit_down_ask: boolIs limit down ask
is_limit_up_ask: boolIs limit up ask
is_limit_down_halt: boolIs limit down halt
is_limit_up_halt: boolIs limit up halt
is_trial: boolIs in trial (simulated matching) period
is_delayed_open: boolIs delayed open
is_delayed_close: boolIs delayed close
is_continuous: boolIs continuous trading
is_open: boolIs market open
is_close: boolIs market closed
last_updated: Option<i64>Last updated timestamp (Unix ms)
Implementations§
Source§impl Quote
impl Quote
Sourcepub fn has_price_data(&self) -> bool
pub fn has_price_data(&self) -> bool
Check if quote has essential price data
Sourcepub fn is_at_limit_up(&self) -> bool
pub fn is_at_limit_up(&self) -> bool
Check if the stock is at limit up
Sourcepub fn is_at_limit_down(&self) -> bool
pub fn is_at_limit_down(&self) -> bool
Check if the stock is at limit down