Appearance
Options templates
A testing tool: a template makes a matching binary option open with a set result, once per user. Use it to demonstrate or test the options flow without waiting for the market.
5 minutesTestingSuperadminVerified against the platform code
Templates currently apply to every account
Templates are meant only for a local test environment or demo accounts, and the list shows Active on this install only when APP_ENV=local. But in the current code (OptionRepository::forcedResultsAllowed() returns true), templates and the forced result mode apply to real users on a live installation too, even when the list says Not applied here.
Until that check is restored, don't create templates on a live exchange, and delete any that exist. Deciding real customers' results in advance would make your options product unfair, and is illegal in most countries.
How a template matches
An option a user opens must match every field exactly:
| Field | Notes |
|---|---|
| Market | The options market |
| Stake | Exact amount: 100 doesn't match 100.5 |
| Direction | Up (buy) or Down (sell) |
| Duration | The option's time frame |
Result
| Result | What happens |
|---|---|
| Wins | Pays the stake back plus the profit at the current payout rate |
| Loses | The stake is lost |
Each template is used once per user: that user's next matching option settles by the market price again. The Used column counts how often a template has applied.
Deleting a template
Delete template removes it. Options already opened under it keep their result.
