Skip to content

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:

FieldNotes
MarketThe options market
StakeExact amount: 100 doesn't match 100.5
DirectionUp (buy) or Down (sell)
DurationThe option's time frame

Result ​

ResultWhat happens
WinsPays the stake back plus the profit at the current payout rate
LosesThe 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.

Owner documentation for the CryptoTech exchange platform.