Struct FpmlTrade
pub struct FpmlTrade {
pub id: Option<String>,
pub us: PartyRef,
pub counterparty: Option<PartyRef>,
pub instrument: AnyInstrument,
pub components: Vec<Component>,
pub underlying: Option<AnyInstrument>,
pub trade_date: NaiveDate,
pub leg_of_stream: Vec<usize>,
pub stated_cashflows: Vec<StatedCashflow>,
pub stated_exchanges: Vec<StatedExchange>,
pub cashflows_match_parameters: Option<bool>,
}Expand description
A trade read from an FpML document.
Fields§
§id: Option<String>The reporting party’s tradeId, else the first the header states.
us: PartyRefThe reporting party.
counterparty: Option<PartyRef>The party the product faces, where it names one besides us.
instrument: AnyInstrumentThe instrument the product was read into: the first component’s.
components: Vec<Component>Every component the trade books, the product first.
underlying: Option<AnyInstrument>The swap a wrapper (a swaption, a cancelable or early-termination provision) is written on, where the product is one.
trade_date: NaiveDateThe trade date from the trade header.
leg_of_stream: Vec<usize>The zero-based index into the stream instrument’s legs each one-based stream was read into: a swap orders its legs by role, not as the document orders its streams.
stated_cashflows: Vec<StatedCashflow>Every stream’s stated cashflow rows, in document order; empty where
no stream carries a cashflows block.
stated_exchanges: Vec<StatedExchange>Every stream’s stated principal exchanges, in document order.
cashflows_match_parameters: Option<bool>Whether the document claims its stated cashflows match its
parameters: Some(false) when any stream says they do not, Some(true)
when every stream that states cashflows says they do, None where no
stream states the flag.
Implementations§
§impl FpmlTrade
impl FpmlTrade
pub fn stream_instrument(&self) -> &AnyInstrument
pub fn stream_instrument(&self) -> &AnyInstrument
The instrument whose legs the swap streams were read into: the underlying of a wrapper, the product otherwise.