aboutsummaryrefslogtreecommitdiffstats
path: root/risk_insight/insight.py
diff options
context:
space:
mode:
Diffstat (limited to 'risk_insight/insight.py')
-rw-r--r--risk_insight/insight.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/risk_insight/insight.py b/risk_insight/insight.py
index 533ba2ac..e422470d 100644
--- a/risk_insight/insight.py
+++ b/risk_insight/insight.py
@@ -16,6 +16,13 @@ def get_attach_from_name(index_type, series):
attach = [0, 3, 7, 15, 100]
elif index_type.lower() == "hy":
attach = [0, 15, 25, 35, 100]
+ elif index_type.lower() == "xo":
+ attach = [0, 10, 20, 35, 100]
+ elif index_type.lower() == "eu":
+ if series == 9:
+ attach = [0, 3, 6, 9, 12, 22, 100]
+ else:
+ attach = [0, 3, 6, 12, 100]
return attach
def get_db():
@@ -75,7 +82,7 @@ def tranches():
@app.route("/indices.html")
def indices():
- return render_template("indices.html", series=[9, 10, 11, 13, 15, 17, 19, 21, 23])
+ return render_template("indices.html", series=[9, 10, 11, 13, 15, 17, 19, 21, 22, 23])
@app.route("/")
def main():