StockPosition
struct StockPosition
Stock position
Fields
Stock name
Stock name
Stock name
Available quantity
Available quantity
Available quantity
Cost Price(According to the client's choice of average purchase or
diluted cost)
Cost Price(According to the client's choice of average purchase or diluted cost)
Cost Price(According to the client's choice of average purchase or diluted cost)
Initial position before market opening
Initial position before market opening
Initial position before market opening
Methods
new
pub fn new(inner: StockPosition): StockPosition
[src]
fn new(inner: _StockPosition): StockPosition {
let market = inner.market as Market;
return StockPosition {
symbol: inner.symbol,
symbol_name: inner.symbol_name,
quantity: inner.quantity,
available_quantity: inner.available_quantity,
currency: inner.currency,
cost_price: inner.cost_price,
market: market!,
init_quantity: inner.init_quantity,
};
}
new
pub fn new(inner: StockPosition): StockPosition
[src]
fn new(inner: _StockPosition): StockPosition {
let market = inner.market as Market;
return StockPosition {
symbol: inner.symbol,
symbol_name: inner.symbol_name,
quantity: inner.quantity,
available_quantity: inner.available_quantity,
currency: inner.currency,
cost_price: inner.cost_price,
market: market!,
init_quantity: inner.init_quantity,
};
}