WarrantInfo
struct WarrantInfo
Warrant info
Fields
Warrant type
Warrant type
Warrant type
Quote change rate
Quote change rate
Quote change rate
Quote change
Quote change
Quote change
Expiry date
Expiry date
Expiry date
Strike price
Strike price
Strike price
Upper strike price
Upper strike price
Upper strike price
Lower strike price
Lower strike price
Lower strike price
Outstanding quantity
Outstanding quantity
Outstanding quantity
Outstanding ratio
Outstanding ratio
Outstanding ratio
Implied volatility
Implied volatility
Implied volatility
Call price
Call price
Call price
Price interval from the call price
Price interval from the call price
Price interval from the call price
Effective leverage
Effective leverage
Effective leverage
Leverage ratio
Leverage ratio
Leverage ratio
Conversion ratio
Conversion ratio
Conversion ratio
Breakeven point
Breakeven point
Breakeven point
Status
Status
Status
Methods
new
pub fn new(inner: WarrantInfo): WarrantInfo
[src]
fn new(inner: _WarrantInfo): WarrantInfo {
let warrant_type = inner.warrant_type as WarrantType;
let status = inner.status as WarrantStatus;
return WarrantInfo {
symbol: inner.symbol,
warrant_type: warrant_type!,
name: inner.name,
last_done: inner.last_done,
change_rate: inner.change_rate,
change_value: inner.change_value,
volume: inner.volume,
turnover: inner.turnover,
expiry_date: inner.expiry_date,
strike_price: inner.strike_price,
upper_strike_price: inner.upper_strike_price,
lower_strike_price: inner.lower_strike_price,
outstanding_qty: inner.outstanding_qty,
outstanding_ratio: inner.outstanding_ratio,
premium: inner.premium,
itm_otm: inner.itm_otm,
implied_volatility: inner.implied_volatility,
delta: inner.delta,
call_price: inner.call_price,
to_call_price: inner.to_call_price,
effective_leverage: inner.effective_leverage,
leverage_ratio: inner.leverage_ratio,
conversion_ratio: inner.conversion_ratio,
balance_point: inner.balance_point,
status: status!,
};
}
new
pub fn new(inner: WarrantInfo): WarrantInfo
[src]
fn new(inner: _WarrantInfo): WarrantInfo {
let warrant_type = inner.warrant_type as WarrantType;
let status = inner.status as WarrantStatus;
return WarrantInfo {
symbol: inner.symbol,
warrant_type: warrant_type!,
name: inner.name,
last_done: inner.last_done,
change_rate: inner.change_rate,
change_value: inner.change_value,
volume: inner.volume,
turnover: inner.turnover,
expiry_date: inner.expiry_date,
strike_price: inner.strike_price,
upper_strike_price: inner.upper_strike_price,
lower_strike_price: inner.lower_strike_price,
outstanding_qty: inner.outstanding_qty,
outstanding_ratio: inner.outstanding_ratio,
premium: inner.premium,
itm_otm: inner.itm_otm,
implied_volatility: inner.implied_volatility,
delta: inner.delta,
call_price: inner.call_price,
to_call_price: inner.to_call_price,
effective_leverage: inner.effective_leverage,
leverage_ratio: inner.leverage_ratio,
conversion_ratio: inner.conversion_ratio,
balance_point: inner.balance_point,
status: status!,
};
}