Ends Between
Choose a price range (upper and lower barriers) and predict if the market price will end between or end outside the range at the end of the contract.
If you select "Ends Between", you win the Payout if the Exit spot is strictly higher than the Low Barrier AND strictly lower than the High Barrier.
If you select "Ends Outside", you win the Payout if the Exit spot is EITHER strictly higher than the High Barrier, OR strictly lower than the Low Barrier.
If the Exit spot is equal to either the Low Barrier or the High Barrier, you don’t win the Payout.
Trading Flow
-
Authorize using your token: Call authorize API using your token. Ensure that the token has the trading scope enabled.
-
Fetch Available Instruments: Use the active_symbols API to retrieve a list of all trading instruments offered on Deriv.
-
Get Contract Details: Using the contracts_for API, obtain a list of contracts available for a specific instrument.
-
Request a Price: Use the proposal API to get a quote. This will return an ID for the proposed trade.
For the Ends Between/Outside options, use the following:-
Set
contract_type
:- For Ends Between, use: "
EXPIRYRANGE
" - For Ends Outside, use: "
EXPIRYMISS
"
- For Ends Between, use: "
-
For the High Barrier Offset: set the
barrier
Eg:barrier: "+1.51"
-
For the Low Barrier Offset: set the
barrier2
Eg:barrier: "-1.51"
Add +/- to define a barrier offset. For example, +0.005 means a Barrier that's 0.005 higher than the Entry spot.
-
-
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
. -
Monitor the Contract Status: Check the contract’s progress or outcome using the proposal_open_contract API with the
contract_id
. -
Close the Contract Early (if Needed): If you want to exit before the contract’s expiration, use the sell API with the
contract_id
.
Updated about 1 month ago