StockPositionChannel
struct StockPositionChannel
Stock position channel
Fields
Account type
Account type
Account type
Stock positions
Stock positions
Stock positions
Methods
new
pub fn new(inner: StockPositionChannel): StockPositionChannel
[src]
fn new(inner: _StockPositionChannel): StockPositionChannel {
let positions: [StockPosition] = [];
for (let _item in inner.positions) {
positions.push(StockPosition.new(_item));
}
return StockPositionChannel { account_channel: inner.account_channel, positions };
}
new
pub fn new(inner: StockPositionChannel): StockPositionChannel
[src]
fn new(inner: _StockPositionChannel): StockPositionChannel {
let positions: [StockPosition] = [];
for (let _item in inner.positions) {
positions.push(StockPosition.new(_item));
}
return StockPositionChannel { account_channel: inner.account_channel, positions };
}