SecurityStaticInfo
struct SecurityStaticInfo
The basic information of securities
Fields
Total shares
Total shares
Total shares
Circulating shares
Circulating shares
Circulating shares
Dividend yield
Dividend yield
Dividend yield
Types of supported derivatives
Types of supported derivatives
Types of supported derivatives
Board
Board
Board
Methods
new
pub fn new(inner: SecurityStaticInfo): SecurityStaticInfo
[src]
fn new(inner: _SecurityStaticInfo): SecurityStaticInfo {
let stock_derivatives = inner.stock_derivatives as DerivativeType;
let board = inner.board as SecurityBoard;
return SecurityStaticInfo {
symbol: inner.symbol,
name_cn: inner.name_cn,
name_en: inner.name_en,
name_hk: inner.name_hk,
exchange: inner.exchange,
currency: inner.currency,
lot_size: inner.lot_size,
total_shares: inner.total_shares,
circulating_shares: inner.circulating_shares,
hk_shares: inner.hk_shares,
eps: inner.eps,
eps_ttm: inner.eps_ttm,
bps: inner.bps,
dividend_yield: inner.dividend_yield,
stock_derivatives: stock_derivatives!,
board: board!,
};
}
new
pub fn new(inner: SecurityStaticInfo): SecurityStaticInfo
[src]
fn new(inner: _SecurityStaticInfo): SecurityStaticInfo {
let stock_derivatives = inner.stock_derivatives as DerivativeType;
let board = inner.board as SecurityBoard;
return SecurityStaticInfo {
symbol: inner.symbol,
name_cn: inner.name_cn,
name_en: inner.name_en,
name_hk: inner.name_hk,
exchange: inner.exchange,
currency: inner.currency,
lot_size: inner.lot_size,
total_shares: inner.total_shares,
circulating_shares: inner.circulating_shares,
hk_shares: inner.hk_shares,
eps: inner.eps,
eps_ttm: inner.eps_ttm,
bps: inner.bps,
dividend_yield: inner.dividend_yield,
stock_derivatives: stock_derivatives!,
board: board!,
};
}