Struct PyFpmlTrade
pub(crate) struct PyFpmlTrade {
inner: FpmlTrade,
}Expand description
A trade read from an FpML 5 confirmation document.
Fields§
§inner: FpmlTradeImplementations§
§impl PyFpmlTrade
impl PyFpmlTrade
fn instrument(&self) -> PyInstrument
fn instrument(&self) -> PyInstrument
The instrument the product was read into.
fn trade_date(&self) -> NaiveDate
fn trade_date(&self) -> NaiveDate
The trade date from the trade header.
fn leg_of_stream(&self) -> Vec<usize>
fn leg_of_stream(&self) -> 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.
fn stated_cashflows(&self) -> Vec<PyStatedCashflow>
fn stated_cashflows(&self) -> Vec<PyStatedCashflow>
Every stream’s stated cashflow rows, in document order; empty where no
stream carries a cashflows block.
fn cashflows_match_parameters(&self) -> Option<bool>
fn cashflows_match_parameters(&self) -> Option<bool>
Whether the document claims its stated cashflows match its parameters,
or None where no stream states the flag.
fn id(&self) -> Option<String>
fn id(&self) -> Option<String>
The reporting party’s trade identifier, or the first the header
states, or None.
fn counterparty(&self) -> Option<String>
fn counterparty(&self) -> Option<String>
The counterparty’s id attribute, or None where the product names
no other party.
fn components(&self) -> Vec<(String, PyInstrument, f64)>
fn components(&self) -> Vec<(String, PyInstrument, f64)>
Every component the trade books as (suffix, instrument, quantity),
the product first: its suffix empty, then /fee/1, /premium/1, …
fn underlying(&self) -> Option<PyInstrument>
fn underlying(&self) -> Option<PyInstrument>
The swap a swaption or a cancelable swap is written on, or None.
fn stream_instrument(&self) -> PyInstrument
fn stream_instrument(&self) -> PyInstrument
The instrument whose legs the swap streams were read into: the
underlying of a wrapper, the product otherwise. leg_of_stream
indexes its legs.
fn __repr__(&self) -> String
Trait Implementations§
§impl Clone for PyFpmlTrade
impl Clone for PyFpmlTrade
§fn clone(&self) -> PyFpmlTrade
fn clone(&self) -> PyFpmlTrade
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl DerefToPyAny for PyFpmlTrade
§impl IntoPy<Py<PyAny>> for PyFpmlTrade
impl IntoPy<Py<PyAny>> for PyFpmlTrade
§impl PyClass for PyFpmlTrade
impl PyClass for PyFpmlTrade
§impl PyClassImpl for PyFpmlTrade
impl PyClassImpl for PyFpmlTrade
§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
§type ThreadChecker = SendablePyClass<PyFpmlTrade>
type ThreadChecker = SendablePyClass<PyFpmlTrade>
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyFpmlTrade
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyFpmlTrade
§impl PyMethods<PyFpmlTrade> for PyClassImplCollector<PyFpmlTrade>
impl PyMethods<PyFpmlTrade> for PyClassImplCollector<PyFpmlTrade>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyFpmlTrade
impl PyTypeInfo for PyFpmlTrade
§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type or a subclass of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
object is an instance of this type.