Account
A demo account you created. valuation, positions and breaches are on
GET /accounts/{account} and the create answer only; list items and the PATCH answer leave
them out.
idstringRequireduserstringRequireddisplay_namestringRequiredexternal_refstringRequiredNullableA demo account's labels: up to 20; keys 1–40 lower-case letters, digits or _ . -, starting with a letter or digit; string values up to 100 bytes. Never interpreted; filter on them with label.<key>=<value>.
active; locked (by you or Chartnaut; a demo account also locks when its user unlinks);
and the final ones: ended (you, the user, Chartnaut or a session's time cap ended it;
status_reason says who), breached (a close_and_end rule fired),
completed_to_target (the profit target was reached; everything was closed). A
block_order breach refuses new orders but leaves the status active.
locked_atstring (date-time)RequiredNullablelocked_bystringWho locked it (system: the user unlinked). Left out when not locked.
status_reasonstringLeft out when empty.
ended_atstring (date-time)RequiredNullablecurrencystringRequiredA decimal amount in the account currency (USD), at most two decimal places.
leveragenumberRequiredA decimal amount in the account currency (USD), at most two decimal places.
created_atstring (date-time)RequiredThe rule set as stored; {} when there is none.
Show fields
day_resetobjectShow fields
timestringtzstringAn IANA time zone.
rulesarray of object · RuleShow item fields
idstringYour name for the rule; defaults to its type (then type_2, …). Breaches name it.
typestringRequiredOne of
daily_loss
type"daily_loss"RequiredAn amount (a bare number, or {"amount": n}), or {"percent": n} of the starting balance.
Show options
One of
number
With amount
amountnumberRequiredWith percent
percentnumberRequiredbasisstringMeasured from the start-of-day balance or equity.
on_breachstringmax_drawdown
type"max_drawdown"RequiredAn amount (a bare number, or {"amount": n}), or {"percent": n} of the starting balance.
Show options
One of
number
With amount
amountnumberRequiredWith percent
percentnumberRequiredmodestringfixed from the starting balance; trailing from the peak.
peakstringTrailing only: what the peak follows (equity is updated on every price change).
stop_at_starting_balancebooleanTrailing only: the floor stops rising once it reaches the starting balance.
on_breachstringmax_position_size
type"max_position_size"Requiredlimitone of 2 typesRequiredThe largest position per market, in units as the platform shows them (lots, contracts, coins, shares), up to three decimals: a number or {"units": n}.
Show options
One of
number
With units
unitsnumberRequiredon_breachstringmax_open_positions
type"max_open_positions"Requiredlimitone of 2 typesRequiredShow options
One of
integer
With count
countintegerRequiredon_breachstringprofit_target
type"profit_target"RequiredAn amount (a bare number, or {"amount": n}), or {"percent": n} of the starting balance.
Show options
One of
number
With amount
amountnumberRequiredWith percent
percentnumberRequiredbasisstringReached when equity hits it, or when an exit brings the closed balance to it. The recorded result is the closed balance.
slippage
type"slippage"RequiredticksintegerRequiredEvery market and stop fill moves this many ticks against the trader. Limits never slip. A cost, never a breach.
valuationobjectValued now from the engines' last prices. Single read only, and left out when it can't be valued.
Show fields
atstring (date-time)RequiredequitynumberRequiredfloating_pnlnumberRequiredused_marginnumberRequiredfree_marginnumberRequiredmargin_levelnumberRequiredNullablestalebooleanRequiredA position could not be priced, or a quote is old.
positionsarray of objectOpen positions. Single read only, and left out when there are none.
Show item fields
idintegerRequiredinstrumentstringRequiredsidestringRequiredquantitynumberRequiredentry_pricenumberRequiredopened_atstring (date-time)RequiredpendingbooleanRequiredThe entry has not filled yet.
floating_pnlnumberRequiredNullablebreachesobjectSingle read only.
Show fields
countintegerRequiredlatest_atstring (date-time)RequiredNullable