RealtimeQuote
struct RealtimeQuote
Real-time quote
Fields
Security trading status
Security trading status
Security trading status
Methods
new
pub fn new(inner: RealtimeQuote): RealtimeQuote
[src]
fn new(inner: _RealtimeQuote): RealtimeQuote {
let trade_status = inner.trade_status as TradeStatus;
return RealtimeQuote {
symbol: inner.symbol,
last_done: inner.last_done,
open: inner.open,
high: inner.high,
low: inner.low,
timestamp: inner.timestamp,
volume: inner.volume,
turnover: inner.turnover,
trade_status: trade_status!,
};
}
new
pub fn new(inner: RealtimeQuote): RealtimeQuote
[src]
fn new(inner: _RealtimeQuote): RealtimeQuote {
let trade_status = inner.trade_status as TradeStatus;
return RealtimeQuote {
symbol: inner.symbol,
last_done: inner.last_done,
open: inner.open,
high: inner.high,
low: inner.low,
timestamp: inner.timestamp,
volume: inner.volume,
turnover: inner.turnover,
trade_status: trade_status!,
};
}