Struct PyDeliverableAnalysis
pub struct PyDeliverableAnalysis {
inner: DeliverableAnalysis,
}Expand description
One deliverable’s analytics at a quoted futures price.
Fields§
§inner: DeliverableAnalysisImplementations§
§impl PyDeliverableAnalysis
impl PyDeliverableAnalysis
fn __repr__(&self) -> String
pub(crate) fn conversion_factor(&self) -> f64
pub(crate) fn conversion_factor(&self) -> f64
Its exchange-published conversion factor.
pub(crate) fn spot_clean(&self) -> f64
pub(crate) fn spot_clean(&self) -> f64
Spot clean price per 100, settling on the valuation date.
pub(crate) fn forward_clean(&self) -> f64
pub(crate) fn forward_clean(&self) -> f64
Forward clean price per 100 at delivery, on the carry curve.
pub(crate) fn carry_tier(&self) -> Option<&'static str>
pub(crate) fn carry_tier(&self) -> Option<&'static str>
Which cascade rung supplied the carry curve — "security",
"group", "currency" — or None for the discount-curve fallback.
pub(crate) fn gross_basis(&self) -> f64
pub(crate) fn gross_basis(&self) -> f64
spot_clean − F·CF.
pub(crate) fn interim_coupons(&self) -> f64
pub(crate) fn interim_coupons(&self) -> f64
Coupons per 100 the deliverable pays after the valuation date and on or before delivery.
pub(crate) fn repo_day_count(&self) -> PyDayCountFraction
pub(crate) fn repo_day_count(&self) -> PyDayCountFraction
The day count implied_repo is quoted on.
pub(crate) fn implied_repo(&self) -> f64
pub(crate) fn implied_repo(&self) -> f64
The simple financing rate the invoice implies, each interim coupon
reinvested to delivery at the same rate:
(I + Σcᵢ − P) / (P·τ − Σcᵢ·τᵢ), on repo_day_count.
Trait Implementations§
§impl Clone for PyDeliverableAnalysis
impl Clone for PyDeliverableAnalysis
§fn clone(&self) -> PyDeliverableAnalysis
fn clone(&self) -> PyDeliverableAnalysis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl DerefToPyAny for PyDeliverableAnalysis
§impl IntoPy<Py<PyAny>> for PyDeliverableAnalysis
impl IntoPy<Py<PyAny>> for PyDeliverableAnalysis
§impl PyClass for PyDeliverableAnalysis
impl PyClass for PyDeliverableAnalysis
§impl PyClassImpl for PyDeliverableAnalysis
impl PyClassImpl for PyDeliverableAnalysis
§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<PyDeliverableAnalysis>
type ThreadChecker = SendablePyClass<PyDeliverableAnalysis>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
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 PyDeliverableAnalysis
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyDeliverableAnalysis
§impl PyMethods<PyDeliverableAnalysis> for PyClassImplCollector<PyDeliverableAnalysis>
impl PyMethods<PyDeliverableAnalysis> for PyClassImplCollector<PyDeliverableAnalysis>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyDeliverableAnalysis
impl PyTypeInfo for PyDeliverableAnalysis
§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
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
Checks if
object is an instance of this type.Auto Trait Implementations§
impl Freeze for PyDeliverableAnalysis
impl RefUnwindSafe for PyDeliverableAnalysis
impl Send for PyDeliverableAnalysis
impl Sync for PyDeliverableAnalysis
impl Unpin for PyDeliverableAnalysis
impl UnsafeUnpin for PyDeliverableAnalysis
impl UnwindSafe for PyDeliverableAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more