Trading accounts
List, read, provision, assign and archive the trading accounts your firm runs.
A trading account is one simulated account running on your executor. It is created against an account type, freezes that type’s rule set version at creation, and is identified by an 8-digit number your trader signs in with.
List accounts
/v1/accountsAvailablescope · accounts:readNewest first, cursor-paginated. Add ?external_id= to get only the accounts you provisioned with that reference (exact match).
curl "https://api.propexecutor.com/v1/accounts?limit=50" \
-H "Authorization: Bearer $PFX_KEY"Each row
iduuidaccountintegeraccount_type_iduuidaccount_type_namestring$10K Standard.trader_iduuid | nulltrader_emailstring | nullstatusstringactive, breached, passed or archived.status_reasonstring | nullstatus_changed_attimestamp | nullstarting_balancenumbercreated_attimestampphaseintegerstagestringevaluation, or funded for the account a trader gets after passing the last phase.previous_accountinteger | nullnext_accountinteger | nullexternal_idstring | nullmetadataobject | nullThe same four fields are on every account this API returns: the single read below, a trader’s accounts, and evaluation in the report (there as phase, stage, previousAccount and nextAccount).
Changed accounts
/v1/accounts/changesAvailablescope · accounts:readEvery account that was created, or whose status, trader, balance or external_id/metadata changed, since the cursor you send as since, each with its state now. Poll this to keep your own copy in sync instead of re-reading every account. Omit since to start from the beginning.
Keep the next_cursor of every answer and send it next time: it is always present, even on an empty page. When has_more is true, ask again straight away. The cursor never skips a change and never repeats one; a change can take a few seconds to appear, never longer than the slowest transaction in flight. An account that changed several times on one page appears once, with every kind in changes. Balance moves only when a position closes; floating equity is not a change (read it from the account).
curl "https://api.propexecutor.com/v1/accounts/changes?since=YzF8OTAwMDAwMTIzfDQy&limit=100" \
-H "Authorization: Bearer $PFX_KEY"{
"data": [
{
"account": 10000231,
"account_id": "9b1e…",
"changes": ["balance", "status"],
"changed_at": "2026-10-25T09:14:03Z",
"status": "passed",
"status_reason": "profit target reached",
"status_changed_at": "2026-10-25T09:14:03Z",
"trader_id": "a77b…",
"balance": 11042.5,
"phase": 1,
"stage": "evaluation",
"external_id": "PS-ORDER-77",
"metadata": { "order_id": "77" }
}
],
"next_cursor": "YzF8OTAwMDAwMjAwfDU3",
"has_more": false
}Read one account
/v1/accounts/{account}Availablescope · accounts:readThe same row plus live trading state: balance, equity and open positions as of now.
{
"id": "6ab66c2b-a334-ee36-8da4-5f2700000001",
"account": 10000042,
"account_type_name": "$10K Standard",
"status": "active",
"starting_balance": 10000,
"balance": 10229.72,
"equity": 10187.4,
"peak_equity": 10310.55,
"open_positions": [
{
"id": "b2c4…",
"instrument": "EURUSD",
"side": "long",
"size": 0.5,
"entry_price": 1.08421,
"mark_price": 1.08337,
"stop_loss": 1.081,
"take_profit": null,
"margin_used": 180.7,
"floating_pnl": -42.32,
"opened_at": "2026-09-27T13:02:11Z"
}
],
"created_at": "2026-09-14T09:12:04Z"
}Balance and equity are not the same number
balance is realized: it only moves when a position closes. equity is balance plus the floating profit and loss of everything still open, marked at the latest price: the number the rule engine judges drawdown against.
Provision accounts
/v1/accountsAvailablescope · accounts:writeCreates one or more accounts against an account type. Up to 5,000 per request.
curl -X POST https://api.propexecutor.com/v1/accounts \
-H "Authorization: Bearer $PFX_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"account_type_id":"0f9c…","quantity":25}'account_type_iduuid · requiredquantityinteger1, at most 5,000 per request. All are created or none are.trader_iduuidexternal_idstringmetadataobject{"order_id":"77","item":"2-step 10K","unit":1,"phase":"1"}. Flat: up to 20 keys (letters, digits, _ . -), each a string (255 characters), number, boolean or null; 4 KB in all. We store and return it and never act on it.This spends credits, permanently
Each account costs one account credit for good. Breaching or archiving it gives nothing back. Send an Idempotency-Key so a network retry cannot spend a second batch, and see billing for the 402 you get when you run out.
{
"data": [
{
"id": "9b1e…",
"account_number": 10000231,
"account_type_id": "0f9c…",
"trader_id": null,
"status": "active",
"server": "apex-prop",
"password": "K7mQ…",
"external_id": "PS-ORDER-77",
"metadata": { "order_id": "77", "item": "2-step 10K" }
}
],
"credits": { "enforced": true, "granted": 1250, "used": 1209, "remaining": 41 }
}account_number, server and password are the login a trader signs in with. password is only included when the key also holds credentials:read; otherwise read it later from credentials.
| Status | Code | Means |
|---|---|---|
| 402 | quota_exhausted | Not enough credits. Carries remaining, requested and tier. Nothing was spent. |
| 404 | account_type_not_found | No such account type. |
| 404 | trader_not_found | No such trader. |
| 409 | account_type_archived | The account type is archived; restore it in the panel. |
| 409 | rule_set_has_no_version | The account type's rule set has nothing published yet. |
| 409 | idempotency_mismatch | This Idempotency-Key was already used for a different request. |
Assign a trader
/v1/accounts/{account}/traderAvailablescope · accounts:writeHands an account to a trader, identified by email. You do not have to create the trader first and you do not have to keep our ids: if your organization has no trader with that email, this creates one with the name you pass and assigns it, in the same transaction.
curl -X PUT https://api.propexecutor.com/v1/accounts/10000042/trader \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jordan Ellis","email":"jordan@example.com"}'namestringemailstringJordan@Example.com and jordan@example.com are the same trader. Nothing else is normalized: jordan+prop@ and jor.dan@ stay distinct people, because deciding otherwise is your call, not ours.{
"account": 10000042,
"trader": {
"id": "3d21f0c2-…",
"name": "Jordan Ellis",
"email": "jordan@example.com"
},
"trader_created": true,
"assigned": true,
"sessions_revoked": true
}trader_createdbooleanassignedbooleansessions_revokedbooleanAn email you already have
The trader record is reused and their stored name is left alone. The name in your request is dropped without comment, and trader_created comes back false. This is deliberate: an assignment call that renamed people on every retry would make your roster depend on whichever integration called last. Correcting a name is a separate, explicit act in the admin panel.
Calling this twice with the same email is safe. The second call writes nothing, ends no sessions, and answers 200 with assigned: false, so a retry after a timeout cannot disconnect the trader it just confirmed.
An account somebody else holds
This does not reassign. It refuses.
If the account already belongs to a different trader you get 409 account_assigned and nothing changes — including the trader you named, who is not created either. Unassign the account first, then assign it.
Handing an account straight from one trader to another in one call is the operation most likely to be a mistake: a wrong account number inside a loop would silently cut a paying customer off and give their account away. One extra call makes that intent explicit.
{
"error": {
"code": "account_assigned",
"message": "this account is already assigned to another trader — unassign it first (DELETE /v1/accounts/10000042/trader)",
"current_trader_id": "3d21f0c2-…"
}
}current_trader_id is who holds it, so you can log the collision or unassign without a second lookup.
Unassign
/v1/accounts/{account}/traderAvailablescope · accounts:writeTakes the account back off whoever holds it. No body: the account number is the whole request.
curl -X DELETE https://api.propexecutor.com/v1/accounts/10000042/trader \
-H "Authorization: Bearer $PFX_KEY"{
"account": 10000042,
"trader_id": null,
"unassigned": true,
"previous_trader_id": "3d21f0c2-…",
"sessions_revoked": true
}Idempotent: an account nobody holds answers 200 with unassigned: false and previous_trader_id: null, not an error.
What assigning and unassigning do
Both end every live executor session on the account. That is the part that matters: it is what gets a former holder out of the terminal, rather than only changing a row.
The password is not rotated
Neither call changes the executor password, and the account number and server never change. So a previous holder who wrote the password down can log in again and keep trading an account they no longer hold.
Rotating is a separate, deliberate call — credentials, because whoever rotates has to see the new password to relay it to the new holder. A full handover is unassign → rotate → assign.
Neither call touches the frozen rule set version, the starting balance, the trade history or the account’s status. Assigning a trader to a breached or closed account is allowed: it is bookkeeping, and it does not put the account back in play.
Archive
/v1/accounts/{account}/archiveAvailablescope · accounts:writeTakes the account out of circulation and revokes its sessions. The record, its trades and its history stay readable. No credit is returned. Safe to repeat: archiving an archived account answers the same.
{ "id": "9b1e…", "status": "closed" }Start the next phase
/v1/accounts/{account}/next-phaseAvailablescope · accounts:writeFor a passed account: creates the account for its next phase, or its funded account after the last phase, and returns its login. The new account goes to the same trader on the same account type, is judged by the next phase of the same rule set version the challenge started on (publishing a new version never changes a challenge already under way), costs one account credit, and is linked both ways: its previous_account is this account and this account’s next_account becomes it.
This works whether the account type is set to auto or manual promotion, so a firm that approves passes itself sets manual and calls this once it has decided. Call it as often as you like: an account only ever has one next phase. A repeat answers 200 with the same account and "created": false; with an Idempotency-Key (as on provisioning) a retry replays the first answer exactly. The password is included only when the key also holds credentials:read.
curl -X POST https://api.propexecutor.com/v1/accounts/10000042/next-phase \
-H "Authorization: Bearer $PFX_KEY" \
-H "Idempotency-Key: 7f9c2e0a-pass-10000042"{
"id": "c41a…",
"account_number": 10000187,
"server": "acme",
"password": "Xk4…",
"phase": 2,
"stage": "evaluation",
"previous_account": 10000042,
"account_type_id": "5d0e…",
"trader_id": "a77b…",
"status": "active",
"created": true
}409 account_not_passed409 no_next_phase409 funded_rule_set_has_no_version402 quota_exhaustedForce a breach
/v1/accounts/{account}/breachAvailablescope · trading:writeEnds an active account for a violation you caught outside the platform: a chargeback, a policy breach, evidence found some other way. The automatic rule checks keep running on every price tick regardless; this is your override on top of them, not a replacement.
curl -X POST https://api.propexecutor.com/v1/accounts/10000042/breach \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{"reason":"Chargeback on the evaluation fee"}'reason is optional and is shown wherever the breach is. Only an active account can be breached; anything else answers 409. The trader’s open terminal is told at once.
Open a position
/v1/accounts/{account}/positionsAvailablescope · trading:writeA market order on the account’s behalf, filled against the live price exactly as if the trader had placed it. It goes through the same checks: the instrument must be allowed by the account’s rule set, and every pre-order rule runs inside the transaction that writes it. A key buys no privileged path.
curl -X POST https://api.propexecutor.com/v1/accounts/10000042/positions \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{"instrument":"EURUSD","side":"long","size":0.5,"stop_loss":1.0790}'instrumentstring · requiredsidestring · requiredlong (buy) or short (sell). Anything else is a 400.sizenumber · requiredstop_lossnumbertake_profitnumber| Status | Means |
|---|---|
| 201 | Filled. The body is the new position, with its id. |
| 400 | The order itself is wrong: a side, size or level that cannot be valid. |
| 403 | The instrument is not allowed for this account, or a rule refused the order and breached the account. |
| 409 | The account is not active. |
| 422 | A rule refused the order, or there is not enough margin. The account keeps trading. |
| 503 | No live price for the instrument right now, or trading is paused. |
Close a position
/v1/accounts/{account}/positions/{id}Availablescope · trading:writeCloses the whole position at the live price. The id comes from open positions. The account is judged again straight after, so a close that reaches the profit target passes it.
Traders
/v1/tradersAvailablescope · accounts:read/v1/tradersAvailablescope · accounts:writeA trader is a name and an email you create so an account has somewhere to hang. Creating one sends nothing, grants nothing and creates no login — traders have no account with us.
You rarely need these: assigning an account creates the trader for you when the email is new. These are for reading your roster and for creating a trader ahead of having an account to give them.
curl -X POST https://api.propexecutor.com/v1/traders \
-H "Authorization: Bearer $PFX_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"Jordan Ellis","email":"jordan@example.com"}'Trade history
/v1/accounts/{account}/tradesAvailablescope · accounts:readEvery position the account has ever taken, open and closed, newest first, cursor-paginated. An open position has closed_at and realized_pnl of null.
iduuidticketintegerid to join.instrumentstringEURUSD, XAUUSD, BTCUSD.sidestringlong or short.sizenumberentry_pricenumberexit_pricenumber | nullopened_attimestampclosed_attimestamp | nullrealized_pnlnumber | nullPaginated because an account traded hard for a year is tens of thousands of rows. If you want every aggregate over the whole ledger in one response instead of walking it, that is the account report: it computes the totals server-side rather than making you sum pages.
Open positions
/v1/accounts/{account}/positionsAvailablescope · accounts:readWhat the account holds right now, each marked to the latest price. Not paginated: how many positions an account may hold at once is a rule, and an account with no such rule is still bounded by its margin.
{
"data": [{
"id": "50ac559c-…",
"trading_account_id": "4592a6d9-…",
"instrument": "USDCAD",
"side": "short",
"size": 0.03,
"entry_price": 1.39153,
"opened_at": "2026-09-15T17:21:50Z",
"stop_loss": null,
"take_profit": null,
"margin_used": 30,
"floating_pnl": -53.4,
"mark_price": 1.41675
}],
"next_cursor": null
}floating_pnlnumbermark_pricenumbermargin_usednumberstop_lossnumber | nullThis is a live view, not a ledger read
Positions, their floating P&L and their margin are derived from the current price and held in memory: the same view the trader sees in their own terminal. Two of our instances serve requests and reconcile with the database every 10 seconds, so a position opened a moment ago may take that long to appear on every read.
For anything you are going to reconcile or report on, read trades instead: that is the ledger, and it is exact.
Resting orders
/v1/accounts/{account}/ordersAvailablescope · accounts:readLimits and stops that have been placed and have not triggered. Same live, in-memory source as positions, and the same caveat.
order_typestringtrigger_pricenumberrequired_marginnumberstatusstringRule flags
/v1/accounts/{account}/rule-flagsAvailablescope · accounts:readRules the account tripped whose action is flag rather than breach: worth a look, trading continued. Unlike a breach these accumulate, so each carries an occurrence count and a first/last seen time.
{
"data": [{
"rule_id": "r3",
"rule_key": "max_lot_per_order",
"reason": "Order of 2.50 lots exceeds the 2.00 lot guidance",
"occurrences": 4,
"first_seen_at": "2026-09-14T11:02:10Z",
"last_seen_at": "2026-09-27T08:41:55Z"
}],
"next_cursor": null
}This is the answer to “why is breaches empty when I know something happened” on the account report: a flag is not a breach, and the two are reported separately on purpose.
Warnings
/v1/accounts/{account}/warningsAvailablescope · accounts:readEvery warning a warn-first rule gave that counts against this account: its own and those of the accounts it was promoted from (an earlier phase), oldest first. Each carries the order and the trades it was judged against, so you can write the warning email yourself.
{
"data": [{
"id": "4c8e…",
"account": 10000042,
"account_id": "9b1e…",
"trader_id": "3d21…",
"rule_id": "avg",
"rule_key": "averaging_down",
"warning": 1,
"warnings_allowed": 1,
"order_allowed": true,
"reason": "warning 1 of 1 — averaging down: adding to 1 losing long position(s) on EURUSD (allowed 0)",
"evidence": {
"order": { "kind": "market", "instrument": "EURUSD", "side": "long", "lots": 1, "price": 1.1, "at": "2026-10-24T09:12:04Z" },
"trades": [
{ "ticket": 1000231, "instrument": "EURUSD", "side": "long", "lots": 1, "entry_price": 1.2, "opened_at": "2026-10-24T08:40:11Z" }
]
},
"warned_at": "2026-10-24T09:12:04Z"
}],
"next_cursor": null
}accountintegerwarning / warnings_allowedintegerorder_allowedbooleanevidence.tradesobject[]