Trade
struct Trade
Trade
Fields
Trade type
Trade type
Trade type
HK
*
- Overseas tradeD
- Odd-lot tradeM
- Non-direct off-exchange tradeP
- Late trade (Off-exchange previous day)U
- Auction tradeX
- Direct off-exchange tradeY
- Automatch internalized<empty string>
- Automatch normal
US
<empty string>
- Regular saleA
- AcquisitionB
- Bunched tradeD
- DistributionF
- Intermarket sweepG
- Bunched sold tradesH
- Price variation tradeI
- Odd lot tradeK
- Rule 155 trde(NYSE MKT)M
- Market center close priceP
- Prior reference priceQ
- Market center open priceS
- Split tradeV
- Contingent tradeW
- Average price tradeX
- Cross trade1
- Stopped stock(Regular trade)
Trade direction
Trade direction
Trade direction
Trade session
Trade session
Trade session
Methods
[src]
fn new(inner: _Trade): Trade {
let direction = inner.direction as TradeDirection;
let trade_session = inner.trade_session as TradeSession;
return Trade {
price: inner.price,
volume: inner.volume,
timestamp: inner.timestamp,
trade_type: inner.trade_type,
direction: direction!,
trade_session: trade_session!,
};
}
[src]
fn new(inner: _Trade): Trade {
let direction = inner.direction as TradeDirection;
let trade_session = inner.trade_session as TradeSession;
return Trade {
price: inner.price,
volume: inner.volume,
timestamp: inner.timestamp,
trade_type: inner.trade_type,
direction: direction!,
trade_session: trade_session!,
};
}