how to place a order in binary.com
hi team,
The following code successfully placed a order in my account for R_100,
websocket.Send("{""parameters"": { ""proposal"": ""0.4"", ""symbol"": ""R_100"", ""contract_type"": ""PUT"", ""duration"": ""14"", ""basis"": ""stake"", ""currency"": ""USD"", ""amount"": ""0.5"", ""duration_unit"": ""m"" }, ""req_id"": 2, ""price"": 5, ""buy"": ""1""}")
the same code i have used for EURUSD,but the order is not able to open
websocket.Send("{""parameters"": { ""proposal"": ""0.4"", ""symbol"": ""frxEURUSD"", ""contract_type"": ""PUT"", ""duration"": ""14"", ""basis"": ""stake"", ""currency"": ""USD"", ""amount"": ""0.5"", ""duration_unit"": ""m"" }, ""req_id"": 2, ""price"": 5, ""buy"": ""1""}")
and also i want to know how to retrieve the result of the contract opened.
Comments
@mahendran1992 what error are you getting?
To get result you can use this call https://developers.binary.com/api/#proposal_open_contract
the first line of code successfully opens order in R_100 but the second line of code not able to open order in EURUSD, i am not getting any error
I am able to purchase with second one as well
There should be error if you are not able to purchase it
amount cannot be 0.5 must to be 1 or more for demo and 5 for real
@mahendran1992 can you please post your code snippet as well account details like loginid or check your websocket frames for error you are getting