contract_id
Hi,
Ive got price proposal like this
"proposal": {
"longcode": "Win payout if the last digit of Volatility 25 Index is not 5 after 5 ticks.",
"spot": "1979.785",
"display_value": "10.00",
"ask_price": "10.00",
"spot_time": "1466084874",
"date_start": 1466084875,
"id": "EDC70B92-33C8-11E6-B18B-27105EC5F03E",
"payout": 10.98
I need contract_id for price proposal-open contract
but portfolio has no contract_id
"portfolio": {
"contracts": [
]
},
"echo_req": {
"portfolio": 1
what ve i missed ?
thank you
Comments
contract id is "EDC70B92-33C8-11E6-B18B-27105EC5F03E
Regards
but at proposal open contract need
contract_id with type integer
and Contract id received from a Portfolio request
is there another contract_id ?
thanks @tarja
Yes. contract id from portafolio is not the same for the buy request.
Regards
@elbi There are two parts, for
buy
you need to pass id you get fromproposal
call.buy
success will give youcontract_id
. Please note thatportfolio
only returns when you have open contracts, if you need details about contract you can callstatement
as it returns bothopen
andclosed
contract@Raunak
thank you