aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/Dawn/static/dawn.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/python/Dawn/static/dawn.js b/python/Dawn/static/dawn.js
index 1360d511..63a658f7 100644
--- a/python/Dawn/static/dawn.js
+++ b/python/Dawn/static/dawn.js
@@ -4,11 +4,10 @@ var series_map = {'CDX': ["24", "25", "26", "27", "28", "29", "30", "31", "32",
'ITRX': ["24", "25", "26", "27", "28", "29", "30", "31", "32", "33"]};
var index_tenor = ["3Y", "5Y", "7Y", "10Y"];
for(var begin_index in bbg_map){
- for(var i=0; i<bbg_map[begin_index].length; i++){
- for(var j=0; j < series_map[begin_index].length; j++){
- for(var k = 0; k<index_tenor.length; k++){
- index_list.push([begin_index, bbg_map[begin_index][i], 'CDSI',
- 'S'+series_map[begin_index][j], index_tenor[k]].join(' '));
+ for(var index_type of bbg_map[begin_index]){
+ for(var series of series_map[begin_index]){
+ for(var tenor of index_tenor){
+ index_list.push(`${begin_index} ${index_type} CDSI S${series} ${tenor}`);
}
}
}