derivitec.core.client.DerivitecClient.upload_dividend_index_vol_surfaces

DerivitecClient.upload_dividend_index_vol_surfaces(vol_surfaces, market_data_environment_name=None)[source]

Upload dividend index vol surfaces.

Parameters:
  • vol_surfaces (list of derivitec.market_data.DividendIndexVolSurface) – The dividend index vol surfaces

  • market_data_environment_name (str) – The market data environment name (optional with default Organisation Level Environment)

Return type:

derivitec.market_data.response.ApiBaseResponse

Code

>>> import datetime
>>> vol_surface = DividendIndexVolSurface(
...     dividend_index_id=ric(".SX7ED"),
...     reference_date=datetime.datetime(2017, 10, 13),
...     benchmark_maturities=[365, 365 * 5],
...     benchmark_fwd_factors=[1.0, 1.0],
...     vols=[0.5, 0.7],
...     smiles=[0.0, 0.0],
...     skews=[0.0, 0.0],
...     call_wings=[0.0, 0.0],
...     put_wings=[0.0, 0.0],
...     strike_type=VolatilitySurfaceSvi.StrikeType.Logarithmic,
...     spot_ref=100)
>>> vol_surfaces = [vol_surface]
>>> market_data_environment_name = "Example Market Data Environment"
>>> client.upload_dividend_index_vol_surfaces(vol_surfaces)