SecurityDepth
struct SecurityDepth
Security depth
Fields
Methods
new
pub fn new(inner: SecurityDepth): SecurityDepth
[src]
fn new(inner: _SecurityDepth): SecurityDepth {
let asks: [Depth] = [];
for (let _item in inner.asks) {
asks.push(Depth.new(_item));
}
let bids: [Depth] = [];
for (let _item in inner.bids) {
bids.push(Depth.new(_item));
}
return SecurityDepth { asks, bids };
}
new
pub fn new(inner: SecurityDepth): SecurityDepth
[src]
fn new(inner: _SecurityDepth): SecurityDepth {
let asks: [Depth] = [];
for (let _item in inner.asks) {
asks.push(Depth.new(_item));
}
let bids: [Depth] = [];
for (let _item in inner.bids) {
bids.push(Depth.new(_item));
}
return SecurityDepth { asks, bids };
}