API Method "Price Proposal (multiple contracts)" does not work like expected
When I use the API Method "Price Proposal (multiple contracts)" with an array of barriers for the contract, I receive a multiple price proposal response, where the payout is the same for all barrier pairs:
For example I send a request for the two barriers pairs (+1.0/-1.0) and (+2.0/-2.0).
Request:
{
"proposal_array": 1,
"amount": 4,
"basis": "stake",
"contract_type": [
"EXPIRYRANGE"
],
"currency": "USD",
"duration": "2",
"duration_unit": "m",
"symbol": "R_10",
"barriers": [
{
"barrier": "+1.0",
"barrier2": "-1.0"
},
{
"barrier": "+2.0",
"barrier2": "-2.0"
}
],
"req_id": 3
}
Response:
{"echo_req":{"amount":4,"barriers":[{"barrier":"+1.0","barrier2":"-1.0"},{"barrier":"+2.0","barrier2":"-2.0"}],"basis":"stake","contract_type":["EXPIRYRANGE"],"currency":"USD","duration":"2","duration_unit":"m","proposal_array":1,"req_id":3,"symbol":"R_10"},"msg_type":"proposal_array","proposal_array":{"id":"f9c83eb9-af56-20c8-6112-bf408e6468b8","proposals":{"EXPIRYRANGE":[{"longcode":"","payout":4},{"longcode":"","payout":4}]}},"req_id":3}
Then I receive a multiple price proposal response, where the payout is the same (value is 4$) for all barrier pairs. But I expected different payout value for each barrier pair. Is this a bug?
When I use one request per barrier pair (used the API method "Price Proposal"), then I receive a different payout value for each barrier pair like expected:
Request 1:
{
"proposal": 1,
"amount": "30",
"basis": "stake",
"contract_type": "EXPIRYRANGE",
"currency": "USD",
"duration": "2",
"duration_unit": "m",
"symbol": "R_10",
"barrier": "+1",
"barrier2": "-1"
}
Response1:
{"echo_req":{"amount":"30","barrier":"+1","barrier2":"-1","basis":"stake","contract_type":"EXPIRYRANGE","currency":"USD","duration":"2","duration_unit":"m","proposal":1,"symbol":"R_10"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"30.00","date_start":"1499162584","display_value":"30.00","id":"5ac1a394-fb35-81b5-2fb0-9967c43642f7","longcode":"Win payout if Volatility 10 Index ends strictly between entry spot minus 1.000 to entry spot plus 1.000 at 2 minutes after contract start time.","payout":"79.48","spot":"10880.402","spot_time":"1499162584"}}
Request 2:
{
"proposal": 1,
"amount": "30",
"basis": "stake",
"contract_type": "EXPIRYRANGE",
"currency": "USD",
"duration": "2",
"duration_unit": "m",
"symbol": "R_10",
"barrier": "+2",
"barrier2": "-2"
}
Response 2:
{"echo_req":{"amount":"30","barrier":"+2","barrier2":"-2","basis":"stake","contract_type":"EXPIRYRANGE","currency":"USD","duration":"2","duration_unit":"m","proposal":1,"symbol":"R_10"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"30.00","date_start":"1499162822","display_value":"30.00","id":"45e5b5ce-6f26-9493-0b01-f8f3bb657769","longcode":"Win payout if Volatility 10 Index ends strictly between entry spot minus 2.000 to entry spot plus 2.000 at 2 minutes after contract start time.","payout":"44.84","spot":"10877.052","spot_time":"1499162822"}}