The request has been sent:
{ "proposal": 1, "amount": "100", "basis": "stake", "contract_type": "CALL", "currency": "USD", "duration": "18000", "duration_unit": "s", "symbol": "frxEURUSD" }
Server Answer:
{"echo_req":{"amount":"100","basis":"stake","contract_type":"CALL","currency":"USD","duration":"18000","duration_unit":"s","proposal":1,"symbol":"frxEURUSD"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"100.00","date_start":"1510092300","display_value":"100.00","id":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","longcode":"Win payout if EUR\/USD is strictly higher than entry spot at 5 hours after contract start time.","payout":"168.75","spot":"1.15882","spot_time":"1510092290"}}
The request has been sent:
{ "buy": "c27f60f9-0401-ad7d-4912-e44b61c4cd82", "price": 5 }
Server Answer:
{"echo_req":{"buy":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","price":5},"error":{"code":"ContractCreationFailure","message":"Contract's stake amount is more than the maximum purchase price."},"msg_type":"buy"}
In the "price proposal" request it seems that you must set in the "amount" parameter the same value of the "price" parameter in the "buy contract" request.
Here the correct code (152$ invested):
The request has been sent:
{ "proposal": 1, "amount": "152", "basis": "stake", "contract_type": "CALL", "currency": "USD", "duration": "18000", "duration_unit": "s", "symbol": "frxEURUSD" }
Server Answer:
{"echo_req":{"amount":"100","basis":"stake","contract_type":"CALL","currency":"USD","duration":"18000","duration_unit":"s","proposal":1,"symbol":"frxEURUSD"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"100.00","date_start":"1510092300","display_value":"100.00","id":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","longcode":"Win payout if EUR\/USD is strictly higher than entry spot at 5 hours after contract start time.","payout":"168.75","spot":"1.15882","spot_time":"1510092290"}}
The request has been sent:
{ "buy": "c27f60f9-0401-ad7d-4912-e44b61c4cd82", "price": 152 }
I like to use "amount" and "price" to guarantee a minimum payout level. Here is how I do it...
If I want to buy an option for $100 and I want to be sure that the trade will be executed with a potential profit equal to at least 80% of my bet, then I set "basis":"payout", "amount":180, and "price":100. This tells binary.com that I want to receive $180 if I win, and that I am willing to pay a maximum of $100 for the option.
Here is what can happen if the payout changes before the trade is executed...
If the payout is only 70% at the moment of execution, then an option with a payout of $180 would cost $105.88, which exceeds the maximum specified price. So the trade is refused.
If the payout is 90% at the moment of execution, then an option with a payout of $180 would cost only $94.74, and the trade is executed at that price.
The only downside is that sometimes my bet is smaller than I wanted, but on the other hand I can be sure that if the trade goes through then the potential profit is at least 80% of my bet. This is important because the lower the potential profit, the higher the win rate needed to break even.
Comments
@g97iulio can you paste your request sample here?
I have the same problem, here the main points:
The request has been sent:
{ "proposal": 1, "amount": "100", "basis": "stake", "contract_type": "CALL", "currency": "USD", "duration": "18000", "duration_unit": "s", "symbol": "frxEURUSD" }
Server Answer:
{"echo_req":{"amount":"100","basis":"stake","contract_type":"CALL","currency":"USD","duration":"18000","duration_unit":"s","proposal":1,"symbol":"frxEURUSD"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"100.00","date_start":"1510092300","display_value":"100.00","id":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","longcode":"Win payout if EUR\/USD is strictly higher than entry spot at 5 hours after contract start time.","payout":"168.75","spot":"1.15882","spot_time":"1510092290"}}
The request has been sent:
{ "buy": "c27f60f9-0401-ad7d-4912-e44b61c4cd82", "price": 5 }
Server Answer:
{"echo_req":{"buy":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","price":5},"error":{"code":"ContractCreationFailure","message":"Contract's stake amount is more than the maximum purchase price."},"msg_type":"buy"}
RESOLVED!
In the "price proposal" request it seems that you must set in the "amount" parameter the same value of the "price" parameter in the "buy contract" request.
Here the correct code (152$ invested):
The request has been sent:
{ "proposal": 1, "amount": "152", "basis": "stake", "contract_type": "CALL", "currency": "USD", "duration": "18000", "duration_unit": "s", "symbol": "frxEURUSD" }
Server Answer:
{"echo_req":{"amount":"100","basis":"stake","contract_type":"CALL","currency":"USD","duration":"18000","duration_unit":"s","proposal":1,"symbol":"frxEURUSD"},"msg_type":"proposal","passthrough":null,"proposal":{"ask_price":"100.00","date_start":"1510092300","display_value":"100.00","id":"c27f60f9-0401-ad7d-4912-e44b61c4cd82","longcode":"Win payout if EUR\/USD is strictly higher than entry spot at 5 hours after contract start time.","payout":"168.75","spot":"1.15882","spot_time":"1510092290"}}
The request has been sent:
{ "buy": "c27f60f9-0401-ad7d-4912-e44b61c4cd82", "price": 152 }
I like to use "amount" and "price" to guarantee a minimum payout level. Here is how I do it...
If I want to buy an option for $100 and I want to be sure that the trade will be executed with a potential profit equal to at least 80% of my bet, then I set "basis":"payout", "amount":180, and "price":100. This tells binary.com that I want to receive $180 if I win, and that I am willing to pay a maximum of $100 for the option.
Here is what can happen if the payout changes before the trade is executed...
The only downside is that sometimes my bet is smaller than I wanted, but on the other hand I can be sure that if the trade goes through then the potential profit is at least 80% of my bet. This is important because the lower the potential profit, the higher the win rate needed to break even.
This works pretty nicely.