Guides

Digit Even/Odd

If you select "Even", you will win the Payout if the last digit of the last tick is an even number (i.e., 2, 4, 6, 8, or 0).

If you select "Odd", you will win the Payout if the last digit of the last tick is an odd number (i.e., 1, 3, 5, 7, or 9).

Trading Flow

  1. Authorize using your token: Call authorize API using your token. Ensure that the token has the trading scope enabled.

  2. Fetch Available Instruments: Use the active_symbols API to retrieve a list of all trading instruments offered on Deriv.

  3. Get Contract Details: Using the contracts_for API, obtain a list of contracts available for a specific instrument.

  4. Request a Price: Use the proposal API to get a quote. This will return an ID for the proposed trade.
    For the digit Even/Odd options, use the following the contract_type:

    1. For Even: "DIGITEVEN"
    2. For Odd: "DIGITODD"
  5. Buy the Contract: Execute the trade by using the buy API with the ID from the proposal response. This action returns a unique contract_id.

  6. Monitor the Contract Status: Check the contract’s progress or outcome using the proposal_open_contract API with the contract_id.

  7. Close the Contract Early (if Needed): If you want to exit before the contract’s expiration, use the sell API with the contract_id.