Digit Differ / Match contracts

First time poster, long time reader,

I would like to make an order of the following:

{
"symbol": "R_100",
"barrier": "9",
"subscribe": 1,
"duration": 5,
"currency": "USD",
"amount": 1000,
"proposal": 1,
"duration_unit": "t",
"basis": "stake",
"contract_type": "DIGITDIFFER"
}

Response:

{
"echo_req": {
"symbol": "R_100",
"barrier": "9",
"subscribe": 1,
"duration": 5,
"currency": "USD",
"amount": 1000,
"proposal": 1,
"basis": "stake",
"duration_unit": "t",
"contract_type": "DIGITDIFFER"
},
"error": {
"message": "Cannot validate contract",
"code": "ContractValidationError"
},
"msg_type": "proposal"
}

I have tried to change it around a little bit but it doesnt work, please let me know what I have done wrong.

Cheers,

101

Comments

  • edited May 2016

    Hello to make the order you should set the proposal then buy it.

    {"proposal":1,"subscribe":1,"amount":1000,"basis":"stake","contract_type":"DIGITDIFF","currency":"USD","symbol":"R_100","duration":5,"duration_unit":"t","barrier":9}

    Regards

  • it now says that I have reached a limit or am already subscribed, what do I do after a proposal?
    RESPONSE
    {
    "echo_req": {
    "symbol": "R_100",
    "barrier": 9,
    "subscribe": 1,
    "duration": 5,
    "currency": "USD",
    "amount": 1000,
    "proposal": 1,
    "duration_unit": "t",
    "basis": "stake",
    "contract_type": "DIGITDIFF"
    },
    "error": {
    "message": "You are either already subscribed or you have reached the limit for proposal subscription.",
    "code": "AlreadySubscribedOrLimit"
    },
    "msg_type": "proposal"
    }

    Is there a quick way to buy at the same time, or for it not to be a proposal?

    Or do I need to use the id that it returned in the previous to purchase?

  • {
    "buy": "E47D1CE4-1766-11E6-AC2C-DEC58FEC8879",
    "price": 100,
    "subscribe": 1
    }

    Does not work either, subscribe doesn't actually work!

    Or does the buy/sell not do it automatically?

    How do I know/ show the user that the contract has come through without getting a reply?

  • You must forget proposal before send a new one. you can do this.

    {
    "forget_all": "Proposal"
    }

    Basically you must do this.

    send forget proposal
    send your proposal
    get control ID returned by your proposal
    buy your contract using the ID.

    Regards

Sign In or Register to comment.