The object i am currently using looks like this
const data = {
periods: [
{
decisions: [
{
bank: {
name: "Team1"
},
bSPositionDecisions: [
{
totalInputRate: 1.0,
balanceSheetPosition: {
name: "asset_bc_lombard_a_onsight",
category: "LOMBARD_LOANS",
type: "ASSET"
}
},
{
totalInputRate: 2.0,
balanceSheetPosition: {
name: "asset_bc_lombard_a_lt1m",
category: "LOMBARD_LOANS",
type: "ASSET"
}
}
]
},
{
bank: {
name: "Team2"
},
bSPositionDecisions: [
{
totalInputRate: 5.0,
balanceSheetPosition: {
name: "asset_bc_lombard_a_onsight",
category: "LOMBARD_LOANS",
type: "ASSET"
}
},
{
totalInputRate: 6.0,
balanceSheetPosition: {
name: "asset_bc_lombard_a_lt1m",
category: "LOMBARD_LOANS",
type: "ASSET"
}
}
]
}
],
settings: {
regularCreditCBrate: 0.5,
bSPositionSettings: [
{
bsPosition: {
name: "asset_bc_lombard_a_onsight",
category: "LOMBARD_LOANS",
type: "ASSET"
},
mktTplus1GrowthPercentage: 0.5,
atrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.67
},
{
bank: {
name: "Team2"
},
inputValue: 0.23
}
],
atrMSettings: {
name: "Attracting_clients_asset_side",
curve: {
name: "Attracting_clients_asset_side",
ccid: 7
},
wgt: 0.3
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
bank: {
name: "Team2"
},
inputValue: 0.5
}
],
atrMSettings: {
name: "GDP_growth_on_loans",
curve: {
name: "BIP_growth_on_loans",
ccid: 8
},
wgt: 0.5
}
},
],
chrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.58
},
{
bank: {
name: "Team2"
},
inputValue: 0.68
}
],
chrMSettings: {
name: "Sensitive_churning_clients_asset_side",
curve: {
name: "Sensitive_churning_clients_asset_side",
ccid: 1
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.6
},
{
bank: {
name: "Team2"
},
inputValue: 0.6
}
],
chrMSettings: {
name: "Service_quality_index",
curve: {
name: "Service_quality_asset_side",
ccid: 3
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
}
],
multiple: 0.5,
hqlaMultiple: 0.5
},
{
bsPosition: {
name: "asset_bc_lombard_a_lt1m",
category: "LOMBARD_LOANS",
type: "ASSET"
},
mktTplus1GrowthPercentage: 0.5,
atrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
bank: {
name: "Team2"
},
inputValue: 0.5
}
],
atrMSettings: {
name: "Attracting_clients_asset_side",
curve: {
name: "Attracting_clients_asset_side",
ccid: 7
},
wgt: 0.5
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
bank: {
name: "Team2"
},
inputValue: 0.5
}
],
atrMSettings: {
name: "GDP_growth_on_loans",
curve: {
name: "BIP_growth_on_loans",
ccid: 8
},
wgt: 0.5
}
},
],
chrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.6
},
{
bank: {
name: "Team2"
},
inputValue: 0.6
}
],
chrMSettings: {
curve: {
name: "Sensitive_churning_clients_asset_side",
ccid: 1
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.6
},
{
bank: {
name: "Team2"
},
inputValue: 0.6
}
],
chrMSettings: {
name: "Service_quality_index",
curve: {
name: "Service_quality_asset_side",
ccid: 3
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
}
],
multiple: 0.5,
hqlaMultiple: 0.5
},
{
bsPosition: {
name: "liability_bc_demanddeposits",
category: "DEMAND_DEPOSITS",
type: "LIABILITY"
},
mktTplus1GrowthPercentage: 0.5,
atrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
name: "Team2"
},
inputValue: 0.5
}
],
atrMSettings: {
name: "Attracting_clients_asset_side",
curve: {
name: "Attracting_clients_asset_side",
ccid: 7
},
wgt: 0.5
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
bank: {
name: "Team2"
},
inputValue: 0.5
}
],
atrMSettings: {
name: "GDP_growth_on_loans",
curve: {
name: "BIP_growth_on_loans",
ccid: 8
},
wgt: 0.5
}
}
],
chrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.658
},
{
bank: {
name: "Team2"
},
inputValue: 0.987
}
],
chrMSettings: {
name: "Sensitive_churning_clients_asset_side",
curve: {
name: "Sensitive_churning_clients_asset_side",
ccid: 1
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
},
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.6
},
{
bank: {
name: "Team2"
},
inputValue: 0.6
}
],
chrMSettings: {
name: "Service_quality_index",
curve: {
name: "Service_quality_asset_side",
ccid: 3
},
min: 0.5,
max: 0.6,
wgt: 0.5
}
}
],
multiple: 0.5,
hqlaMultiple: 0.5
},
{
bsPosition: {
name: "liability_bc_timedeposits",
category: "TIME_DEPOSITS",
type: "LIABILITY"
},
mktTplus1GrowthPercentage: 0.5,
atrFeatures: [
{
inputValues: [
{
bank: {
name: "Team1"
},
inputValue: 0.5
},
{
bank: {
name: "Team2"
},
inputValue: 0.5
}
],