OptionQuote
struct OptionQuote
Quote of option
Fields
Yesterday's close
Yesterday's close
Yesterday's close
Option trading status
Option trading status
Option trading status
Implied volatility
Implied volatility
Implied volatility
Number of open positions
Number of open positions
Number of open positions
Exprity date
Exprity date
Exprity date
Strike price
Strike price
Strike price
Contract multiplier
Contract multiplier
Contract multiplier
Option type
Option type
Option type
Contract size
Contract size
Contract size
Option direction
Option direction
Option direction
Underlying security historical volatility of the option
Underlying security historical volatility of the option
Underlying security historical volatility of the option
Underlying security symbol of the option
Underlying security symbol of the option
Underlying security symbol of the option
Methods
new
pub fn new(inner: OptionQuote): OptionQuote
[src]
fn new(inner: _OptionQuote): OptionQuote {
let trade_status = inner.trade_status as TradeStatus;
let contract_type = inner.contract_type as OptionType;
let direction = inner.direction as OptionDirection;
return OptionQuote {
symbol: inner.symbol,
last_done: inner.last_done,
prev_close: inner.prev_close,
open: inner.open,
high: inner.high,
low: inner.low,
timestamp: inner.timestamp,
volume: inner.volume,
turnover: inner.turnover,
trade_status: trade_status!,
implied_volatility: inner.implied_volatility,
open_interest: inner.open_interest,
expiry_date: inner.expiry_date,
strike_price: inner.strike_price,
contract_multiplier: inner.contract_multiplier,
contract_type: contract_type!,
contract_size: inner.contract_size,
direction: direction!,
historical_volatility: inner.historical_volatility,
underlying_symbol: inner.underlying_symbol,
};
}
new
pub fn new(inner: OptionQuote): OptionQuote
[src]
fn new(inner: _OptionQuote): OptionQuote {
let trade_status = inner.trade_status as TradeStatus;
let contract_type = inner.contract_type as OptionType;
let direction = inner.direction as OptionDirection;
return OptionQuote {
symbol: inner.symbol,
last_done: inner.last_done,
prev_close: inner.prev_close,
open: inner.open,
high: inner.high,
low: inner.low,
timestamp: inner.timestamp,
volume: inner.volume,
turnover: inner.turnover,
trade_status: trade_status!,
implied_volatility: inner.implied_volatility,
open_interest: inner.open_interest,
expiry_date: inner.expiry_date,
strike_price: inner.strike_price,
contract_multiplier: inner.contract_multiplier,
contract_type: contract_type!,
contract_size: inner.contract_size,
direction: direction!,
historical_volatility: inner.historical_volatility,
underlying_symbol: inner.underlying_symbol,
};
}