Cannot validate contract ERROR

edited March 2016 in General

When requesting a contract, some time i get this error

{
  "echo_req": {
    "symbol": "frxEURGBP",
    "duration": "120",
    "currency": "USD",
    "amount": "18",
    "proposal": 1,
    "duration_unit": "s",
    "basis": "stake",
    "contract_type": "SELL"
  },
  "error": {
    "message": "Cannot validate contract",
    "code": "ContractValidationError"
  },
  "msg_type": "proposal"
}

Can you help me ?

Comments

  • edited March 2016

    @bodsignals2 contract_type that you are passing is not correct. Please update that accordingly

    For example

    {
      "symbol": "frxEURGBP",
      "duration": "120",
      "currency": "USD",
      "amount": "18",
      "proposal": 1,
      "duration_unit": "s",
      "basis": "stake",
      "contract_type": "CALL"
    }
    
  • Thanks Raunak . RESOLVED

    "contract_type": can be "CALL" or "PUT" not "SELL" as done first !

Sign In or Register to comment.