derivitec.risk_engine.types.CreditParallelShock

class derivitec.risk_engine.types.CreditParallelShock(risk_measure_id_stored=None, shock_size=None, use_contract_currency=False)[source]
__init__(risk_measure_id_stored=None, shock_size=None, use_contract_currency=False)[source]
Parameters:
  • risk_measure_id_stored – The risk measure id stored

  • shock_size – The shock size

  • use_contract_currency – If true the measure uses the contract currency instead of the report currency for calculations

Methods

IsKeyValuePairListType(key_class_instance, ...)

__init__([risk_measure_id_stored, ...])

json_params()

JSON param names.

rebuild(content)

Recursive rebuild.

recursive_decompose(item)

Helper function to recursively convert some types to a suitable format for json.

to_dict()

typename()