_CurveNodes#

class rateslib.curves._CurveNodes(_nodes)#

Bases: object

An immutable container for the pricing parameters of a _BaseCurve.

Attributes Summary

final

The last node key associated with the Curve nodes.

initial

The first node key associated with the Curve nodes.

keys

A list of datetime keys in nodes.

n

Number of parameters contained in nodes.

nodes

The initial nodes dict passed for construction of this class.

posix_keys

A list of the keys converted to unix timestamps.

values

A list of values in nodes.

Methods Summary

to_json()

Serialize this object to JSON format.

Attributes Documentation

final#

The last node key associated with the Curve nodes.

initial#

The first node key associated with the Curve nodes.

keys#

A list of datetime keys in nodes.

n#

Number of parameters contained in nodes.

nodes#

The initial nodes dict passed for construction of this class.

posix_keys#

A list of the keys converted to unix timestamps.

values#

A list of values in nodes.

Methods Documentation

to_json()#

Serialize this object to JSON format.

The object can be deserialized using the from_json() method.

Return type:

str