CreateAccount
userstringRequiredusr_<id> or ext:<ref>.
display_namestringRequiredShown to the user in Chartnaut. Required.
starting_balancenumberThe starting balance in USD, rounded to whole cents. 0 or left out: 100,000.
leveragenumber0 or left out: 50.
rulesone of 2 types · RulesInputInline rules, copied onto the session or account at create and fixed after that. Either a
list of rules, or { "day_reset": {...}, "rules": [...] } to move the trading day (one per
rule set; default 17:00 America/New_York, the FX rollover, which follows US daylight saving).
At most 50 rules. Checked in whole cents.
on_breach:
record(default): store the breach and sendrule.breached; nothing else.block_order: also refuse new orders (exits stay allowed). Adaily_lossblock lasts until the next day reset; any other rule's lasts for good. The status staysactive.close_and_end: also close everything and end it; the status becomesbreached.
A profit target has no on_breach: reaching it closes everything and ends as
completed_to_target. Every breach acts as its rule says. Only if Chartnaut pauses rule
actions for you in an emergency are breaches stored with action_applied: false, and
nothing is done.
Show options
One of
array of object · Rule
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.
RuleSet
The canonical form, returned on read with every default filled in and every id present.
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.
lockedbooleanCreated locked; open it with a bulk unlock.
external_refstringYour id for the account; unique per partner (409 conflict on reuse).
labelsmap of string · AccountLabelsA 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>.
