aboutsummaryrefslogtreecommitdiffstats
path: root/python/analytics/__init__.py
blob: 8875a11db6669c96036d5a839e0b2b22a36a4193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from .curve_trades import on_the_run
from .index import CreditIndex, ForwardIndex
from .option import (BlackSwaption, Swaption, ATMstrike, ProbSurface,
                     QuoteSurface, VolSurface, BlackSwaptionVolSurface)
from .portfolio import Portfolio
from .basket_index import MarkitBasketIndex
from .tranche_basket import DualCorrTranche, TrancheBasket
from .ir_swaption import IRSwaption

import datetime

def init_ontr(value_date=datetime.date.today()):
    global _ontr, _beta
    _ontr = CreditIndex('HY', on_the_run("HY", value_date), '5yr', value_date)
    _ontr.mark()
    _beta = {'HY': 1, 'IG': .3, 'EU': .22}