Struct PyCurveRecipe
pub struct PyCurveRecipe {
pub(crate) inner: CurveRecipe,
}Expand description
How a market would build the curves under one key: its discount pillars
and, per projection index, its own pillars or none where the index
telescopes onto the discount curve. Read back from MarketContext.recipe.
Fields§
§inner: CurveRecipeImplementations§
§impl PyCurveRecipe
A recipe’s pillars as a table: kind, curve_id, tenor (empty for a
dated pillar), date (empty for a tenor pillar), window_end (a step
pillar’s window end, empty otherwise).
impl PyCurveRecipe
A recipe’s pillars as a table: kind, curve_id, tenor (empty for a
dated pillar), date (empty for a tenor pillar), window_end (a step
pillar’s window end, empty otherwise).
pub(crate) fn discount_segments(&self) -> PyRecords
pub(crate) fn discount_segments(&self) -> PyRecords
The discount segments in declaration order, as (role, template, window): a window row carries its dates, every other row an empty
window.
pub(crate) fn projection_indices(&self) -> Vec<String>
pub(crate) fn projection_indices(&self) -> Vec<String>
The projection indices the recipe resolves, in order.
pub(crate) fn own_strip(&self, index: &str) -> Option<String>
pub(crate) fn own_strip(&self, index: &str) -> Option<String>
The template of index’s own strip, or None where it telescopes
onto the discount curve or the recipe does not resolve it.
pub(crate) fn telescopes(&self, index: &str) -> bool
pub(crate) fn telescopes(&self, index: &str) -> bool
Whether index telescopes onto the discount curve rather than
calibrating a forward curve of its own.
pub(crate) fn discount_via(&self) -> Option<String>
pub(crate) fn discount_via(&self) -> Option<String>
The hub currency a triangulated cross discount is derived through.
pub(crate) fn is_fx_implied(&self) -> bool
pub(crate) fn is_fx_implied(&self) -> bool
Whether the discount curve is implied from FX swaps alone.
pub(crate) fn __str__(&self) -> String
pub(crate) fn __repr__(&self) -> String
Trait Implementations§
§impl Clone for PyCurveRecipe
impl Clone for PyCurveRecipe
§fn clone(&self) -> PyCurveRecipe
fn clone(&self) -> PyCurveRecipe
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 PyCurveRecipe
§impl IntoPy<Py<PyAny>> for PyCurveRecipe
impl IntoPy<Py<PyAny>> for PyCurveRecipe
§impl PyClass for PyCurveRecipe
impl PyClass for PyCurveRecipe
§impl PyClassImpl for PyCurveRecipe
impl PyClassImpl for PyCurveRecipe
§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<PyCurveRecipe>
type ThreadChecker = SendablePyClass<PyCurveRecipe>
§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 PyCurveRecipe
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyCurveRecipe
§impl PyMethods<PyCurveRecipe> for PyClassImplCollector<PyCurveRecipe>
impl PyMethods<PyCurveRecipe> for PyClassImplCollector<PyCurveRecipe>
fn py_methods(self) -> &'static PyClassItems
§impl PyTypeInfo for PyCurveRecipe
impl PyTypeInfo for PyCurveRecipe
§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.