Bulk revert accounts to a trading day or an instant
Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages.
Who — exactly one of:
accountIds (max 5000) — a targeted revert;
allAccounts: true — every account in your organization with activity after the restore point;
audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P&L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone.
To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began.
Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it.
Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so:
Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged).
More than 1000 accounts, or "background": true at any size: the call records the batch and answers 202 right away with { batchId, status: "running", total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout.
Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it.
While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished.
Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen).
Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30:
{ "audience": { "from": "2026-09-08T13:30:00Z", "to": "2026-09-08T14:00:00Z", "condition": "failed_or_loss" }, "reason": "Feed outage at the NY open, 8 Sep", "preview": true}
Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually.
Batch-level error codes:
Code
Status
Meaning
NO_ACCOUNTS
400
Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0
TOO_MANY_ACCOUNTS
400
More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max
AMBIGUOUS_TARGET
400
Not exactly one of accountIds / allAccounts / audience
INVALID_AUDIENCE_WINDOW
400
audience.from is not before audience.to, or not timestamps
INVALID_REVERT_POINT
400
Both tradingDay and revertTo, revertTo not a timestamp, or in the future
AUDIENCE_ERROR
500
Could not read the activity needed to resolve the audience — retry
TARGETS_ERROR
500
allAccounts: could not read the activity needed to find the affected accounts — retry
REVERT_START_ERROR
500
Background run: the batch could not be recorded, so nothing was started or changed — retry
allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial.
Recommended flow: run with "preview": true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute.
Example — preview an org-wide revert, then execute:
{
"success": true,
"message": "Reverting 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "running",
"tradingDay": "2026-07-07",
"revertTo": null,
"audience": null,
"total": 1229,
"preview": false
}
}
{
"success": false,
"code": "TOO_MANY_ACCOUNTS",
"message": "Too many accounts in one revert: 5210 match, the maximum is 5000 — split into batches",
"matched": 5210,
"max": 5000
}
{
"success": false,
"statusCode": 409,
"error": "Conflict",
"message": "This Idempotency-Key was already used with a different request body. Use a new key for a different request.",
"code": "IDEMPOTENCY_KEY_REUSED"
}
{
"success": false,
"statusCode": 429,
"error": "Too Many Requests",
"message": "Too many requests to this endpoint. Try again in 12 second(s).",
"code": "RATE_LIMITED"
}
{
"success": false,
"statusCode": 503,
"error": "Service Unavailable",
"message": "The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.",
"code": "IDEMPOTENCY_UNAVAILABLE"
}
Authorizations
X-API-Key
string
header
required
Organization API key (hp_live_...), sent in the X-API-Key header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A full-access key can call every endpoint in this reference. A read-only key can call GET endpoints (and create a trading stream token); any other request returns 403 READ_ONLY_KEY. A key with an IP allowlist returns 403 IP_NOT_ALLOWED from any other address. Each endpoint lists which keys can call it under Access.
Headers
Idempotency-Key
string
Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with Idempotency-Replayed: true) instead of repeating the change. The same key with a different body returns 409 IDEMPOTENCY_KEY_REUSED; a retry while the first request is still running returns 409 IDEMPOTENCY_KEY_IN_PROGRESS. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns 409 IDEMPOTENCY_KEY_COMPLETED with the original status in originalStatus. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns 503 IDEMPOTENCY_UNAVAILABLE; retry with the same key.
Maximum string length: 255
Body
application/json
reason
string
required
Why — audit trail, account metadata, webhooks
Required string length: 3 - 1000
Example:
"Data feed outage"
tradingDay
string
END-OF-DAY restore: Chicago trading day (YYYY-MM-DD) to revert TO. One of tradingDay / revertTo; with an audience and neither given, the accounts are restored to audience.from.
Pattern: ^\d{4}-\d{2}-\d{2}$
Example:
"2026-07-07"
revertTo
string
POINT-IN-TIME restore: the exact instant (ISO 8601, UTC) every targeted account is restored to — typically the moment the outage began. See the single-account endpoint for how the state at an instant is reconstructed.
Example:
"2026-09-08T13:30:00Z"
accountIds
string[]
Specific accounts to revert (max 5000 per call; more than 1000 runs in the background)
Required array length: 1 - 5000 elements
allAccounts
enum<boolean>
Revert every account in the organization with activity after the restore point (later trades or snapshots) — including accounts created during the outage day itself. Untouched accounts are skipped.
Available options:
true
audience
object
Target the accounts an outage window actually touched, instead of naming them. Only non-voided activity counts. The response reports how many matched; an empty audience returns 200 with reverted: 0 (nothing to do is not an error).
Show child attributes
preview
boolean
default:false
Dry run: per-account report of what WOULD happen, nothing changed. Use it to build the confirmation screen before an org-wide revert.
Example:
true
previewLimit
integer
Preview only: report at most this many accounts individually (the first ones matched); total still counts every match. Default: all of them up to 1000 matches, the first 100 above that.
Required range: 1 <= x <= 1000
Example:
100
background
boolean
Run the revert in the background: answer 202 with the batchId right away and follow progress with GET /revert-batches/{batchId}. Reverts of more than 1000 accounts always run in the background. Ignored in previews.
{
"success": true,
"message": "Reverting 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"data": {
"batchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"status": "running",
"tradingDay": "2026-07-07",
"revertTo": null,
"audience": null,
"total": 1229,
"preview": false
}
}
{
"success": false,
"code": "TOO_MANY_ACCOUNTS",
"message": "Too many accounts in one revert: 5210 match, the maximum is 5000 — split into batches",
"matched": 5210,
"max": 5000
}
{
"success": false,
"statusCode": 409,
"error": "Conflict",
"message": "This Idempotency-Key was already used with a different request body. Use a new key for a different request.",
"code": "IDEMPOTENCY_KEY_REUSED"
}
{
"success": false,
"statusCode": 429,
"error": "Too Many Requests",
"message": "Too many requests to this endpoint. Try again in 12 second(s).",
"code": "RATE_LIMITED"
}
{
"success": false,
"statusCode": 503,
"error": "Service Unavailable",
"message": "The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.",
"code": "IDEMPOTENCY_UNAVAILABLE"
}
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Hyperprop Platform API","colors":{"primary":"#253CFF","light":"#253CFF","dark":"#253CFF"},"logo":{"light":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/light.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=e3a0a071fb4ba3ae53ef978c23cc38a3","dark":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/dark.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=1e52fc25e71c2a6a9e047b4fbd60dae4","href":"https://hyperprop.com"},"favicon":"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/favicon.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=760656e341413d4cd9dae53925c04cf6","navbar":{"primary":{"type":"button","label":"Open Dashboard","href":"https://portal.hyperprop.com"}},"footer":{"socials":{"x":"https://x.com/hyperpropcom","github":"https://github.com/Hyperprop-LLC-FZ"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"hyperprop-401fc39d","hasAudioNarration":false,"actualSubdomain":"hyperprop-401fc39d","customDomains":["docs.hyperprop.com"],"gitSource":{"type":"github","owner":"hyperprop-llc-fz","repo":"hyperprop-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af9d28c5400fbb020686d90","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"API Reference","count":246},{"language":"default","tag":"Platform API","count":202},{"language":"default","tag":"Trade API","count":44},{"language":"default","tag":"Risk","count":39},{"language":"default","tag":"Documentation","count":37},{"language":"default","tag":"Trading accounts","count":29},{"language":"default","tag":"Mass credit","count":23},{"language":"default","tag":"Billing and invoices","count":16},{"language":"default","tag":"Guides","count":14},{"language":"default","tag":"Webhooks","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#navbar nav-logo img,nav-logo img{height:2rem!important;width:auto}@media (max-width: 640px){pre{max-width:100%;overflow-x:auto}pre code{white-space:pre;word-break:normal}}@media (max-width: 640px){.prose table,#content-area table{display:block;max-width:100%;overflow-x:auto}}html.dark pre.shiki.shiki-themes,html[data-theme=\"dark\"] pre.shiki.shiki-themes{background-color:var(--shiki-dark-bg)!important;color:var(--shiki-dark)!important}html.dark pre.shiki.shiki-themes span,html[data-theme=\"dark\"] pre.shiki.shiki-themes span{color:var(--shiki-dark)!important;font-style:var(--shiki-dark-font-style)!important;font-weight:var(--shiki-dark-font-weight)!important;text-decoration:var(--shiki-dark-text-decoration)!important}"}],"page":{"pagePath":"platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant","slug":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant","pageMetadata":{"title":"Bulk revert accounts to a trading day or an instant","description":"**Time Machine, org-wide:** the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages.\n\n**Who** — exactly one of:\n- `accountIds` (max 5000) — a targeted revert;\n- `allAccounts: true` — every account in your organization with activity after the restore point;\n- `audience: { from, to, condition }` — the accounts an outage window actually touched: `traded` (any fill in the window), `loss` (net realized P\u0026L in the window below zero), `failed` (the account failed inside the window), or `failed_or_loss`. Everyone else is left alone.\n\n**To when** — `tradingDay` (end-of-day state of that Chicago trading day) or `revertTo` (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an `audience` and neither given, the accounts go back to `audience.from` — the point at which the issues began.\n\nEach account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with `PAYOUT_OR_ADJUSTMENT_IN_RANGE` and is neither closed out nor changed. All changes share one `batchId` in the audit trail, and the batch records the restore point and the audience that selected it.\n\n**Size, and background runs.** One call may revert up to **5000** accounts. A revert takes roughly half a second per account, so:\n- Up to 1000 accounts without `background`: the call works through every account and answers `200` with the full per-account report (unchanged).\n- More than 1000 accounts, or `\"background\": true` at any size: the call records the batch and answers **`202`** right away with `{ batchId, status: \"running\", total, … }`. The revert keeps going after the response. Poll `GET /revert-batches/{batchId}` for `status` (`running` → `completed`), `processedCount`, `failedCount`, `failures` and `job`. Use `background` for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout.\n\n**Background runs are durable.** A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with `GET /revert-batches/{batchId}/items`, stop it with `POST /revert-batches/{batchId}/cancel`, and once it has finished, run the failed accounts again with `POST /revert-batches/{batchId}/retry-failed`. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it.\n\nWhile a batch is running it cannot be undone (`BATCH_RUNNING`); undo it once it has finished.\n\n**Large previews.** A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or `previewLimit`, at most 1000) and sets `previewTruncated: true`; `total` always carries the full match count. Pass `previewLimit` to keep any preview quick (for example `100` for a confirmation screen).\n\n**Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30:**\n```json\n{\n \"audience\": { \"from\": \"2026-09-08T13:30:00Z\", \"to\": \"2026-09-08T14:00:00Z\", \"condition\": \"failed_or_loss\" },\n \"reason\": \"Feed outage at the NY open, 8 Sep\",\n \"preview\": true\n}\n```\n\n**Undoable.** The returned `batchId` is a Time Machine ledger entry (`GET /revert-batches`). If the batch was a mistake, `POST /revert-batches/{batchId}/undo` restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually.\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `NO_ACCOUNTS` | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty `audience` is NOT an error: 200 with `reverted: 0` |\n| `TOO_MANY_ACCOUNTS` | 400 | More than 5000 accounts in one call — split into batches. The response carries `matched` (how many accounts matched) and `max` |\n| `AMBIGUOUS_TARGET` | 400 | Not exactly one of accountIds / allAccounts / audience |\n| `INVALID_AUDIENCE_WINDOW` | 400 | audience.from is not before audience.to, or not timestamps |\n| `INVALID_REVERT_POINT` | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future |\n| `AUDIENCE_ERROR` | 500 | Could not read the activity needed to resolve the audience — retry |\n| `TARGETS_ERROR` | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry |\n| `REVERT_START_ERROR` | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry |\n\n`allAccounts` and `audience` consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial.\n\n**Recommended flow:** run with `\"preview\": true` first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute.\n\n**Example — preview an org-wide revert, then execute:**\n```bash\n# 1. Dry run\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\", \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/revert-trading-day","href":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n pre: \"pre\",\n span: \"span\",\n strong: \"strong\",\n table: \"table\",\n tbody: \"tbody\",\n td: \"td\",\n th: \"th\",\n thead: \"thead\",\n tr: \"tr\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n }, {CodeBlock} = _components;\n if (!CodeBlock) _missingMdxReference(\"CodeBlock\", true);\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Time Machine, org-wide:\"\n }), \" the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Who\"\n }), \" — exactly one of:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"accountIds\"\n }), \" (max 5000) — a targeted revert;\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"allAccounts: true\"\n }), \" — every account in your organization with activity after the restore point;\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.code, {\n children: \"audience: { from, to, condition }\"\n }), \" — the accounts an outage window actually touched: \", _jsx(_components.code, {\n children: \"traded\"\n }), \" (any fill in the window), \", _jsx(_components.code, {\n children: \"loss\"\n }), \" (net realized P\u0026L in the window below zero), \", _jsx(_components.code, {\n children: \"failed\"\n }), \" (the account failed inside the window), or \", _jsx(_components.code, {\n children: \"failed_or_loss\"\n }), \". Everyone else is left alone.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"To when\"\n }), \" — \", _jsx(_components.code, {\n children: \"tradingDay\"\n }), \" (end-of-day state of that Chicago trading day) or \", _jsx(_components.code, {\n children: \"revertTo\"\n }), \" (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an \", _jsx(_components.code, {\n children: \"audience\"\n }), \" and neither given, the accounts go back to \", _jsx(_components.code, {\n children: \"audience.from\"\n }), \" — the point at which the issues began.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with \", _jsx(_components.code, {\n children: \"PAYOUT_OR_ADJUSTMENT_IN_RANGE\"\n }), \" and is neither closed out nor changed. All changes share one \", _jsx(_components.code, {\n children: \"batchId\"\n }), \" in the audit trail, and the batch records the restore point and the audience that selected it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Size, and background runs.\"\n }), \" One call may revert up to \", _jsx(_components.strong, {\n children: \"5000\"\n }), \" accounts. A revert takes roughly half a second per account, so:\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"Up to 1000 accounts without \", _jsx(_components.code, {\n children: \"background\"\n }), \": the call works through every account and answers \", _jsx(_components.code, {\n children: \"200\"\n }), \" with the full per-account report (unchanged).\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"More than 1000 accounts, or \", _jsx(_components.code, {\n children: \"\\\"background\\\": true\"\n }), \" at any size: the call records the batch and answers \", _jsx(_components.strong, {\n children: _jsx(_components.code, {\n children: \"202\"\n })\n }), \" right away with \", _jsx(_components.code, {\n children: \"{ batchId, status: \\\"running\\\", total, … }\"\n }), \". The revert keeps going after the response. Poll \", _jsx(_components.code, {\n children: \"GET /revert-batches/{batchId}\"\n }), \" for \", _jsx(_components.code, {\n children: \"status\"\n }), \" (\", _jsx(_components.code, {\n children: \"running\"\n }), \" → \", _jsx(_components.code, {\n children: \"completed\"\n }), \"), \", _jsx(_components.code, {\n children: \"processedCount\"\n }), \", \", _jsx(_components.code, {\n children: \"failedCount\"\n }), \", \", _jsx(_components.code, {\n children: \"failures\"\n }), \" and \", _jsx(_components.code, {\n children: \"job\"\n }), \". Use \", _jsx(_components.code, {\n children: \"background\"\n }), \" for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout.\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Background runs are durable.\"\n }), \" A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with \", _jsx(_components.code, {\n children: \"GET /revert-batches/{batchId}/items\"\n }), \", stop it with \", _jsx(_components.code, {\n children: \"POST /revert-batches/{batchId}/cancel\"\n }), \", and once it has finished, run the failed accounts again with \", _jsx(_components.code, {\n children: \"POST /revert-batches/{batchId}/retry-failed\"\n }), \". A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"While a batch is running it cannot be undone (\", _jsx(_components.code, {\n children: \"BATCH_RUNNING\"\n }), \"); undo it once it has finished.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Large previews.\"\n }), \" A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or \", _jsx(_components.code, {\n children: \"previewLimit\"\n }), \", at most 1000) and sets \", _jsx(_components.code, {\n children: \"previewTruncated: true\"\n }), \"; \", _jsx(_components.code, {\n children: \"total\"\n }), \" always carries the full match count. Pass \", _jsx(_components.code, {\n children: \"previewLimit\"\n }), \" to keep any preview quick (for example \", _jsx(_components.code, {\n children: \"100\"\n }), \" for a confirmation screen).\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30:\"\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"5\",\n language: \"json\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"json\",\n children: _jsxs(_components.code, {\n language: \"json\",\n numberOfLines: \"5\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"{\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"audience\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": { \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"from\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"2026-09-08T13:30:00Z\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"to\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"2026-09-08T14:00:00Z\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \", \"\n }), _jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \"\\\"condition\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"failed_or_loss\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \" },\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"reason\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \"\\\"Feed outage at the NY open, 8 Sep\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \",\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#116329\",\n \"--shiki-dark\": \"#9CDCFE\"\n },\n children: \" \\\"preview\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \": \"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \"true\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#1F2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n children: \"}\"\n })\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Undoable.\"\n }), \" The returned \", _jsx(_components.code, {\n children: \"batchId\"\n }), \" is a Time Machine ledger entry (\", _jsx(_components.code, {\n children: \"GET /revert-batches\"\n }), \"). If the batch was a mistake, \", _jsx(_components.code, {\n children: \"POST /revert-batches/{batchId}/undo\"\n }), \" restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Batch-level error codes:\"\n })\n }), \"\\n\", _jsxs(_components.table, {\n children: [_jsx(_components.thead, {\n children: _jsxs(_components.tr, {\n children: [_jsx(_components.th, {\n children: \"Code\"\n }), _jsx(_components.th, {\n style: {\n textAlign: \"center\"\n },\n children: \"Status\"\n }), _jsx(_components.th, {\n children: \"Meaning\"\n })]\n })\n }), _jsxs(_components.tbody, {\n children: [_jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"NO_ACCOUNTS\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"400\"\n }), _jsxs(_components.td, {\n children: [\"Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty \", _jsx(_components.code, {\n children: \"audience\"\n }), \" is NOT an error: 200 with \", _jsx(_components.code, {\n children: \"reverted: 0\"\n })]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"TOO_MANY_ACCOUNTS\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"400\"\n }), _jsxs(_components.td, {\n children: [\"More than 5000 accounts in one call — split into batches. The response carries \", _jsx(_components.code, {\n children: \"matched\"\n }), \" (how many accounts matched) and \", _jsx(_components.code, {\n children: \"max\"\n })]\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"AMBIGUOUS_TARGET\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"400\"\n }), _jsx(_components.td, {\n children: \"Not exactly one of accountIds / allAccounts / audience\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"INVALID_AUDIENCE_WINDOW\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"400\"\n }), _jsx(_components.td, {\n children: \"audience.from is not before audience.to, or not timestamps\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"INVALID_REVERT_POINT\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"400\"\n }), _jsx(_components.td, {\n children: \"Both tradingDay and revertTo, revertTo not a timestamp, or in the future\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"AUDIENCE_ERROR\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"500\"\n }), _jsx(_components.td, {\n children: \"Could not read the activity needed to resolve the audience — retry\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"TARGETS_ERROR\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"500\"\n }), _jsx(_components.td, {\n children: \"allAccounts: could not read the activity needed to find the affected accounts — retry\"\n })]\n }), _jsxs(_components.tr, {\n children: [_jsx(_components.td, {\n children: _jsx(_components.code, {\n children: \"REVERT_START_ERROR\"\n })\n }), _jsx(_components.td, {\n style: {\n textAlign: \"center\"\n },\n children: \"500\"\n }), _jsx(_components.td, {\n children: \"Background run: the batch could not be recorded, so nothing was started or changed — retry\"\n })]\n })]\n })]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"allAccounts\"\n }), \" and \", _jsx(_components.code, {\n children: \"audience\"\n }), \" consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Recommended flow:\"\n }), \" run with \", _jsx(_components.code, {\n children: \"\\\"preview\\\": true\"\n }), \" first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Example — preview an org-wide revert, then execute:\"\n })\n }), \"\\n\", _jsx(CodeBlock, {\n numberOfLines: \"11\",\n language: \"shellscript\",\n children: _jsx(_components.pre, {\n className: \"shiki shiki-themes github-light-default dark-plus\",\n style: {\n backgroundColor: \"#ffffff\",\n \"--shiki-dark-bg\": \"#0B0C0E\",\n color: \"#1f2328\",\n \"--shiki-dark\": \"#D4D4D4\"\n },\n language: \"shellscript\",\n children: _jsxs(_components.code, {\n language: \"shellscript\",\n numberOfLines: \"11\",\n children: [_jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# 1. Dry run\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -X\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" POST\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\".../v1/organization/accounts/revert-trading-day\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"X-API-Key: hp_live_your_key_here\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Content-Type: application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -d\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\", \\\"preview\\\": true }'\"\n })]\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\"\n }), \"\\n\", _jsx(_components.span, {\n className: \"line\",\n children: _jsx(_components.span, {\n style: {\n color: \"#6E7781\",\n \"--shiki-dark\": \"#6A9955\"\n },\n children: \"# 2. Execute\"\n })\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#953800\",\n \"--shiki-dark\": \"#DCDCAA\"\n },\n children: \"curl\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -X\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" POST\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\".../v1/organization/accounts/revert-trading-day\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"X-API-Key: hp_live_your_key_here\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -H\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" \\\"Content-Type: application/json\\\"\"\n }), _jsx(_components.span, {\n style: {\n color: \"#CF222E\",\n \"--shiki-dark\": \"#D7BA7D\"\n },\n children: \" \\\\\"\n })]\n }), \"\\n\", _jsxs(_components.span, {\n className: \"line\",\n children: [_jsx(_components.span, {\n style: {\n color: \"#0550AE\",\n \"--shiki-dark\": \"#569CD6\"\n },\n children: \" -d\"\n }), _jsx(_components.span, {\n style: {\n color: \"#0A3069\",\n \"--shiki-dark\": \"#CE9178\"\n },\n children: \" '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\" }'\"\n })]\n }), \"\\n\"]\n })\n })\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.strong, {\n children: \"Access:\"\n }), \" full-access API keys only (a read-only key gets \", _jsx(_components.code, {\n children: \"403 READ_ONLY_KEY\"\n }), \"). Dashboard members need manage access to Operations \u0026 time machine.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\nfunction _missingMdxReference(id, component) {\n throw new Error(\"Expected \" + (component ? \"component\" : \"object\") + \" `\" + id + \"` to be defined: you likely forgot to import, pass, or provide it.\");\n}\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Bulk revert accounts to a trading day or an instant","description":"**Time Machine, org-wide:** the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages.\n\n**Who** — exactly one of:\n- `accountIds` (max 5000) — a targeted revert;\n- `allAccounts: true` — every account in your organization with activity after the restore point;\n- `audience: { from, to, condition }` — the accounts an outage window actually touched: `traded` (any fill in the window), `loss` (net realized P\u0026L in the window below zero), `failed` (the account failed inside the window), or `failed_or_loss`. Everyone else is left alone.\n\n**To when** — `tradingDay` (end-of-day state of that Chicago trading day) or `revertTo` (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an `audience` and neither given, the accounts go back to `audience.from` — the point at which the issues began.\n\nEach account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with `PAYOUT_OR_ADJUSTMENT_IN_RANGE` and is neither closed out nor changed. All changes share one `batchId` in the audit trail, and the batch records the restore point and the audience that selected it.\n\n**Size, and background runs.** One call may revert up to **5000** accounts. A revert takes roughly half a second per account, so:\n- Up to 1000 accounts without `background`: the call works through every account and answers `200` with the full per-account report (unchanged).\n- More than 1000 accounts, or `\"background\": true` at any size: the call records the batch and answers **`202`** right away with `{ batchId, status: \"running\", total, … }`. The revert keeps going after the response. Poll `GET /revert-batches/{batchId}` for `status` (`running` → `completed`), `processedCount`, `failedCount`, `failures` and `job`. Use `background` for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout.\n\n**Background runs are durable.** A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with `GET /revert-batches/{batchId}/items`, stop it with `POST /revert-batches/{batchId}/cancel`, and once it has finished, run the failed accounts again with `POST /revert-batches/{batchId}/retry-failed`. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it.\n\nWhile a batch is running it cannot be undone (`BATCH_RUNNING`); undo it once it has finished.\n\n**Large previews.** A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or `previewLimit`, at most 1000) and sets `previewTruncated: true`; `total` always carries the full match count. Pass `previewLimit` to keep any preview quick (for example `100` for a confirmation screen).\n\n**Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30:**\n```json\n{\n \"audience\": { \"from\": \"2026-09-08T13:30:00Z\", \"to\": \"2026-09-08T14:00:00Z\", \"condition\": \"failed_or_loss\" },\n \"reason\": \"Feed outage at the NY open, 8 Sep\",\n \"preview\": true\n}\n```\n\n**Undoable.** The returned `batchId` is a Time Machine ledger entry (`GET /revert-batches`). If the batch was a mistake, `POST /revert-batches/{batchId}/undo` restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually.\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `NO_ACCOUNTS` | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty `audience` is NOT an error: 200 with `reverted: 0` |\n| `TOO_MANY_ACCOUNTS` | 400 | More than 5000 accounts in one call — split into batches. The response carries `matched` (how many accounts matched) and `max` |\n| `AMBIGUOUS_TARGET` | 400 | Not exactly one of accountIds / allAccounts / audience |\n| `INVALID_AUDIENCE_WINDOW` | 400 | audience.from is not before audience.to, or not timestamps |\n| `INVALID_REVERT_POINT` | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future |\n| `AUDIENCE_ERROR` | 500 | Could not read the activity needed to resolve the audience — retry |\n| `TARGETS_ERROR` | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry |\n| `REVERT_START_ERROR` | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry |\n\n`allAccounts` and `audience` consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial.\n\n**Recommended flow:** run with `\"preview\": true` first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute.\n\n**Example — preview an org-wide revert, then execute:**\n```bash\n# 1. Dry run\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\", \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/revert-trading-day","href":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Bulk revert accounts to a trading day or an instant","operationId":"postV1OrganizationAccountsReverttradingday","description":"**Time Machine, org-wide:** the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages.\n\n**Who** — exactly one of:\n- `accountIds` (max 5000) — a targeted revert;\n- `allAccounts: true` — every account in your organization with activity after the restore point;\n- `audience: { from, to, condition }` — the accounts an outage window actually touched: `traded` (any fill in the window), `loss` (net realized P\u0026L in the window below zero), `failed` (the account failed inside the window), or `failed_or_loss`. Everyone else is left alone.\n\n**To when** — `tradingDay` (end-of-day state of that Chicago trading day) or `revertTo` (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an `audience` and neither given, the accounts go back to `audience.from` — the point at which the issues began.\n\nEach account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with `PAYOUT_OR_ADJUSTMENT_IN_RANGE` and is neither closed out nor changed. All changes share one `batchId` in the audit trail, and the batch records the restore point and the audience that selected it.\n\n**Size, and background runs.** One call may revert up to **5000** accounts. A revert takes roughly half a second per account, so:\n- Up to 1000 accounts without `background`: the call works through every account and answers `200` with the full per-account report (unchanged).\n- More than 1000 accounts, or `\"background\": true` at any size: the call records the batch and answers **`202`** right away with `{ batchId, status: \"running\", total, … }`. The revert keeps going after the response. Poll `GET /revert-batches/{batchId}` for `status` (`running` → `completed`), `processedCount`, `failedCount`, `failures` and `job`. Use `background` for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout.\n\n**Background runs are durable.** A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with `GET /revert-batches/{batchId}/items`, stop it with `POST /revert-batches/{batchId}/cancel`, and once it has finished, run the failed accounts again with `POST /revert-batches/{batchId}/retry-failed`. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it.\n\nWhile a batch is running it cannot be undone (`BATCH_RUNNING`); undo it once it has finished.\n\n**Large previews.** A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or `previewLimit`, at most 1000) and sets `previewTruncated: true`; `total` always carries the full match count. Pass `previewLimit` to keep any preview quick (for example `100` for a confirmation screen).\n\n**Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30:**\n```json\n{\n \"audience\": { \"from\": \"2026-09-08T13:30:00Z\", \"to\": \"2026-09-08T14:00:00Z\", \"condition\": \"failed_or_loss\" },\n \"reason\": \"Feed outage at the NY open, 8 Sep\",\n \"preview\": true\n}\n```\n\n**Undoable.** The returned `batchId` is a Time Machine ledger entry (`GET /revert-batches`). If the batch was a mistake, `POST /revert-batches/{batchId}/undo` restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually.\n\n**Batch-level error codes:**\n| Code | Status | Meaning |\n|------|:---:|---------|\n| `NO_ACCOUNTS` | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty `audience` is NOT an error: 200 with `reverted: 0` |\n| `TOO_MANY_ACCOUNTS` | 400 | More than 5000 accounts in one call — split into batches. The response carries `matched` (how many accounts matched) and `max` |\n| `AMBIGUOUS_TARGET` | 400 | Not exactly one of accountIds / allAccounts / audience |\n| `INVALID_AUDIENCE_WINDOW` | 400 | audience.from is not before audience.to, or not timestamps |\n| `INVALID_REVERT_POINT` | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future |\n| `AUDIENCE_ERROR` | 500 | Could not read the activity needed to resolve the audience — retry |\n| `TARGETS_ERROR` | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry |\n| `REVERT_START_ERROR` | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry |\n\n`allAccounts` and `audience` consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial.\n\n**Recommended flow:** run with `\"preview\": true` first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute.\n\n**Example — preview an org-wide revert, then execute:**\n```bash\n# 1. Dry run\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\", \"preview\": true }'\n\n# 2. Execute\ncurl -X POST \".../v1/organization/accounts/revert-trading-day\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{ \"tradingDay\": \"2026-07-07\", \"allAccounts\": true, \"reason\": \"Data feed outage\" }'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Operations \u0026 time machine.","parameters":["02848972-ea8e-4e4a-89f6-d74e9e032d6c"],"requestBody":"d68fad62-763b-4406-90ce-f85d9e642b7d","tags":["Time Machine"],"security":["775aa1e2-c13a-4189-8262-dae424cc1154"],"responses":{"200":"938b0fc0-2e67-4d63-b6e8-d0fd36ea5a92","202":"c93e399c-d919-4b7c-a8bb-ad6265594065","400":"4ee3d835-b76a-460f-91ef-7d469d2d6121","401":"d5cc39f9-b541-4d12-a972-ea39c40d99c9","403":"a51837ea-c44b-40f5-a412-05adedd83a5c","409":"0b3d41c7-d56f-4374-8f0c-b9134536cf7e","429":"2f998d1d-b74b-42c7-8f1c-81acab705847","500":"8233a9e3-f9c0-435a-ad03-ceba70d90612","503":"6691428d-e6c3-4389-8313-22e347a5d92c"},"method":"post","type":"path","servers":["b949171f-b56e-4c69-b8a6-d819dee3b071"],"path":"/v1/organization/accounts/revert-trading-day","baseUrlOptions":["https://api.hyperprop.com/platform"],"title":"Bulk revert accounts to a trading day or an instant","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"02848972-ea8e-4e4a-89f6-d74e9e032d6c":{"name":"Idempotency-Key","in":"header","required":false,"description":"Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with `Idempotency-Replayed: true`) instead of repeating the change. The same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`; a retry while the first request is still running returns `409 IDEMPOTENCY_KEY_IN_PROGRESS`. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns `409 IDEMPOTENCY_KEY_COMPLETED` with the original status in `originalStatus`. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns `503 IDEMPOTENCY_UNAVAILABLE`; retry with the same key.","example":"crm-sync-8814-attempt-1","schema":{"type":"string","maxLength":255,"isRequired":false,"description":"Optional. A value that identifies this operation on your side, at most 255 characters. A retry with the same key, method, path and body within 24 hours returns the original response (with `Idempotency-Replayed: true`) instead of repeating the change. The same key with a different body returns `409 IDEMPOTENCY_KEY_REUSED`; a retry while the first request is still running returns `409 IDEMPOTENCY_KEY_IN_PROGRESS`. A response that contains a credential (such as a new API key or signing secret) is not saved: the change is still not repeated, and a retry returns `409 IDEMPOTENCY_KEY_COMPLETED` with the original status in `originalStatus`. Server errors (5xx) are not saved, so a retry runs again. If the key cannot be recorded, the request is not run and returns `503 IDEMPOTENCY_UNAVAILABLE`; retry with the same key.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","description":"Why — audit trail, account metadata, webhooks","example":"Data feed outage","minLength":3,"maxLength":1000,"isRequired":true,"uniqueKey":"reason","typeLabel":"string"},"tradingDay":{"type":"string","description":"END-OF-DAY restore: Chicago trading day (YYYY-MM-DD) to revert TO. One of tradingDay / revertTo; with an `audience` and neither given, the accounts are restored to `audience.from`.","example":"2026-07-07","pattern":"^\\d{4}-\\d{2}-\\d{2}$","uniqueKey":"tradingDay","typeLabel":"string"},"revertTo":{"type":"string","description":"POINT-IN-TIME restore: the exact instant (ISO 8601, UTC) every targeted account is restored to — typically the moment the outage began. See the single-account endpoint for how the state at an instant is reconstructed.","example":"2026-09-08T13:30:00Z","x-format":{"isoDate":true},"uniqueKey":"revertTo","typeLabel":"string"},"accountIds":{"type":"array","description":"Specific accounts to revert (max 5000 per call; more than 1000 runs in the background)","minItems":1,"maxItems":5000,"items":{"type":"string","x-format":{"guid":true},"uniqueKey":"accountIds.items.[INDEX]","typeLabel":"string"},"uniqueKey":"accountIds","typeLabel":"string[]"},"allAccounts":{"type":"boolean","description":"Revert every account in the organization with activity after the restore point (later trades or snapshots) — including accounts created during the outage day itself. Untouched accounts are skipped.","enum":[true],"uniqueKey":"allAccounts","typeLabel":"enum\u003cboolean>"},"audience":{"type":"object","description":"Target the accounts an outage window actually touched, instead of naming them. Only non-voided activity counts. The response reports how many matched; an empty audience returns 200 with `reverted: 0` (nothing to do is not an error).","properties":{"from":{"type":"string","description":"Start of the outage window (ISO 8601, UTC)","example":"2026-09-08T13:30:00Z","x-format":{"isoDate":true},"isRequired":true,"uniqueKey":"audience.from","typeLabel":"string"},"condition":{"type":"string","description":"Who inside the window: `traded` = any fill in the window · `loss` = net realized P\u0026L in the window is negative · `failed` = the account failed in the window · `failed_or_loss` = either","example":"failed_or_loss","enum":["traded","loss","failed","failed_or_loss"],"isRequired":true,"uniqueKey":"audience.condition","typeLabel":"enum\u003cstring>"},"to":{"type":"string","description":"End of the outage window (ISO 8601, UTC). Default: now.","example":"2026-09-08T14:00:00Z","x-format":{"isoDate":true},"uniqueKey":"audience.to","typeLabel":"string"}},"required":["from","condition"],"uniqueKey":"audience","typeLabel":"object"},"preview":{"type":"boolean","description":"Dry run: per-account report of what WOULD happen, nothing changed. Use it to build the confirmation screen before an org-wide revert.","example":true,"default":false,"uniqueKey":"preview","typeLabel":"boolean"},"previewLimit":{"type":"integer","description":"Preview only: report at most this many accounts individually (the first ones matched); `total` still counts every match. Default: all of them up to 1000 matches, the first 100 above that.","example":100,"minimum":1,"maximum":1000,"uniqueKey":"previewLimit","typeLabel":"integer"},"background":{"type":"boolean","description":"Run the revert in the background: answer 202 with the `batchId` right away and follow progress with GET /revert-batches/{batchId}. Reverts of more than 1000 accounts always run in the background. Ignored in previews.","example":true,"uniqueKey":"background","typeLabel":"boolean"}},"required":["reason"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"reason":"Data feed outage","tradingDay":"2026-07-07","revertTo":"2026-09-08T13:30:00Z","accountIds":["\u003cstring>"],"allAccounts":true,"preview":true,"previewLimit":100,"background":true}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"938b0fc0-2e67-4d63-b6e8-d0fd36ea5a92":{"description":"Bulk revert processed (check per-account failures)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Reverted 42 accounts to 2026-07-07","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","example":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","tradingDay":"2026-07-07","reverted":2,"failed":0,"accounts":[{"accountId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","accountNumber":"ACC-7845KXPQ","revertedTo":"2026-07-07","balanceBefore":48750,"balanceAfter":51250,"statusBefore":"failed","statusAfter":"in_progress","snapshotsDeleted":1,"ordersVoided":14,"positionsClosed":1,"ordersCancelled":2},{"accountId":"8d0f7780-8536-51ef-b55c-f18gd2g01bf8","accountNumber":"ACC-9921MZPL","revertedTo":"2026-07-07","balanceBefore":50100,"balanceAfter":50900,"statusBefore":"in_progress","statusAfter":"in_progress","snapshotsDeleted":1,"ordersVoided":9,"positionsClosed":0,"ordersCancelled":0}],"failures":[]},"properties":{"batchId":{"type":"string","description":"Time Machine ledger id — list it via GET /revert-batches, undo the whole batch via POST /revert-batches/{batchId}/undo. null in previews.","uniqueKey":"data.batchId","typeLabel":"string"},"tradingDay":{"type":"string","description":"Chicago trading day restored (end-of-day restore) or containing the instant (point-in-time restore)","uniqueKey":"data.tradingDay","typeLabel":"string"},"revertTo":{"type":"string","description":"The instant (ISO, UTC) for a point-in-time restore; null for an end-of-day restore","uniqueKey":"data.revertTo","typeLabel":"string"},"audience":{"type":"object","description":"Echo of the audience that selected the accounts; null when accountIds/allAccounts were used","properties":{"from":{"type":"string","uniqueKey":"data.audience.from","typeLabel":"string"},"to":{"type":"string","uniqueKey":"data.audience.to","typeLabel":"string"},"condition":{"type":"string","uniqueKey":"data.audience.condition","typeLabel":"string"},"matched":{"type":"number","description":"Accounts the window + condition selected","uniqueKey":"data.audience.matched","typeLabel":"number"}},"uniqueKey":"data.audience","typeLabel":"object"},"preview":{"type":"boolean","description":"true = dry run, nothing was changed","uniqueKey":"data.preview","typeLabel":"boolean"},"total":{"type":"number","description":"Previews only: how many accounts matched (the preview may report fewer — see previewTruncated)","uniqueKey":"data.total","typeLabel":"number"},"previewTruncated":{"type":"boolean","description":"Previews only: true when `accounts`/`failures` cover only the first matched accounts","uniqueKey":"data.previewTruncated","typeLabel":"boolean"},"reverted":{"type":"number","description":"Accounts reverted (in a preview: accounts in the report that would be reverted)","uniqueKey":"data.reverted","typeLabel":"number"},"failed":{"type":"number","uniqueKey":"data.failed","typeLabel":"number"},"accounts":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].accountId","typeLabel":"string"},"accountNumber":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].accountNumber","typeLabel":"string"},"revertedTo":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].revertedTo","typeLabel":"string"},"balanceBefore":{"type":"number","uniqueKey":"data.accounts.items.[INDEX].balanceBefore","typeLabel":"number"},"balanceAfter":{"type":"number","uniqueKey":"data.accounts.items.[INDEX].balanceAfter","typeLabel":"number"},"statusBefore":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].statusBefore","typeLabel":"string"},"statusAfter":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].statusAfter","typeLabel":"string"},"snapshotsDeleted":{"type":"number","uniqueKey":"data.accounts.items.[INDEX].snapshotsDeleted","typeLabel":"number"},"ordersVoided":{"type":"number","uniqueKey":"data.accounts.items.[INDEX].ordersVoided","typeLabel":"number"},"positionsClosed":{"type":"number","description":"Open positions force-closed before the revert","uniqueKey":"data.accounts.items.[INDEX].positionsClosed","typeLabel":"number"},"ordersCancelled":{"type":"number","description":"Working orders cancelled before the revert","uniqueKey":"data.accounts.items.[INDEX].ordersCancelled","typeLabel":"number"},"warnings":{"type":"array","description":"Present only when part of the bookkeeping did not complete although the account was restored","items":{"type":"string","uniqueKey":"data.accounts.items.[INDEX].warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.accounts.items.[INDEX].warnings","typeLabel":"string[]"}},"uniqueKey":"data.accounts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.accounts","typeLabel":"object[]"},"failures":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string","uniqueKey":"data.failures.items.[INDEX].accountId","typeLabel":"string"},"code":{"type":"string","uniqueKey":"data.failures.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","uniqueKey":"data.failures.items.[INDEX].message","typeLabel":"string"}},"uniqueKey":"data.failures.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.failures","typeLabel":"object[]"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Reverted 42 accounts to 2026-07-07","data":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","tradingDay":"2026-07-07","reverted":2,"failed":0,"accounts":[{"accountId":"7c9e6679-7425-40de-944b-e07fc1f90ae7","accountNumber":"ACC-7845KXPQ","revertedTo":"2026-07-07","balanceBefore":48750,"balanceAfter":51250,"statusBefore":"failed","statusAfter":"in_progress","snapshotsDeleted":1,"ordersVoided":14,"positionsClosed":1,"ordersCancelled":2},{"accountId":"8d0f7780-8536-51ef-b55c-f18gd2g01bf8","accountNumber":"ACC-9921MZPL","revertedTo":"2026-07-07","balanceBefore":50100,"balanceAfter":50900,"statusBefore":"in_progress","statusAfter":"in_progress","snapshotsDeleted":1,"ordersVoided":9,"positionsClosed":0,"ordersCancelled":0}],"failures":[]}}}},"exampleType":"generated"}},"exampleType":"generated"},"c93e399c-d919-4b7c-a8bb-ad6265594065":{"description":"Background revert started (more than 1000 accounts, or `background: true`) — follow it with GET /revert-batches/{batchId}","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"message":{"type":"string","example":"Reverting 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890","uniqueKey":"message","typeLabel":"string"},"data":{"type":"object","example":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"running","tradingDay":"2026-07-07","revertTo":null,"audience":null,"total":1229,"preview":false},"properties":{"batchId":{"type":"string","description":"Time Machine ledger id — poll GET /revert-batches/{batchId} for progress","uniqueKey":"data.batchId","typeLabel":"string"},"status":{"type":"string","enum":["running"],"uniqueKey":"data.status","typeLabel":"enum\u003cstring>"},"tradingDay":{"type":"string","uniqueKey":"data.tradingDay","typeLabel":"string"},"revertTo":{"type":"string","uniqueKey":"data.revertTo","typeLabel":"string"},"audience":{"type":"object","properties":{"from":{"type":"string","uniqueKey":"data.audience.from","typeLabel":"string"},"to":{"type":"string","uniqueKey":"data.audience.to","typeLabel":"string"},"condition":{"type":"string","uniqueKey":"data.audience.condition","typeLabel":"string"},"matched":{"type":"number","uniqueKey":"data.audience.matched","typeLabel":"number"}},"uniqueKey":"data.audience","typeLabel":"object"},"total":{"type":"number","description":"Accounts the batch will process","uniqueKey":"data.total","typeLabel":"number"},"preview":{"type":"boolean","enum":[false],"uniqueKey":"data.preview","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":true,"message":"Reverting 1229 accounts in the background — follow progress with GET /revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890","data":{"batchId":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","status":"running","tradingDay":"2026-07-07","revertTo":null,"audience":null,"total":1229,"preview":false}}}},"exampleType":"generated"}},"exampleType":"generated"},"4ee3d835-b76a-460f-91ef-7d469d2d6121":{"description":"No accounts / too many accounts, or a reason over its length limit (`VALIDATION_ERROR`)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"code":{"type":"string","example":"TOO_MANY_ACCOUNTS","uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","example":"Too many accounts in one revert: 5210 match, the maximum is 5000 — split into batches","uniqueKey":"message","typeLabel":"string"},"matched":{"type":"number","example":5210,"uniqueKey":"matched","typeLabel":"number"},"max":{"type":"number","example":5000,"uniqueKey":"max","typeLabel":"number"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"code":"TOO_MANY_ACCOUNTS","message":"Too many accounts in one revert: 5210 match, the maximum is 5000 — split into batches","matched":5210,"max":5000}}},"exampleType":"generated"}},"exampleType":"generated"},"d5cc39f9-b541-4d12-a972-ea39c40d99c9":{"description":"Authentication required","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":401,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Unauthorized","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Authentication required","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"UNAUTHORIZED","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":401,"error":"Unauthorized","message":"Authentication required","code":"UNAUTHORIZED"}}},"exampleType":"generated"}},"exampleType":"generated"},"a51837ea-c44b-40f5-a412-05adedd83a5c":{"description":"Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":403,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Forbidden","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Access denied","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"FORBIDDEN","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":403,"error":"Forbidden","message":"Access denied","code":"FORBIDDEN"}}},"exampleType":"generated"}},"exampleType":"generated"},"0b3d41c7-d56f-4374-8f0c-b9134536cf7e":{"description":"The `Idempotency-Key` was used with a different body (`IDEMPOTENCY_KEY_REUSED`), a request with the same key is still running (`IDEMPOTENCY_KEY_IN_PROGRESS`), or the request with this key already completed and its response is not available again (`IDEMPOTENCY_KEY_COMPLETED`)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"integer","example":409,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","example":"Conflict","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"This Idempotency-Key was already used with a different request body. Use a new key for a different request.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["IDEMPOTENCY_KEY_REUSED","IDEMPOTENCY_KEY_IN_PROGRESS","IDEMPOTENCY_KEY_COMPLETED"],"example":"IDEMPOTENCY_KEY_REUSED","description":"Machine-readable error code — switch on this, not on message text","uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":409,"error":"Conflict","message":"This Idempotency-Key was already used with a different request body. Use a new key for a different request.","code":"IDEMPOTENCY_KEY_REUSED"}}},"exampleType":"generated"}},"exampleType":"generated"},"2f998d1d-b74b-42c7-8f1c-81acab705847":{"description":"Too many requests: this endpoint allows 20 calls per minute per organization. Wait the number of seconds in the `Retry-After` header.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"integer","example":429,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","example":"Too Many Requests","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"Too many requests to this endpoint. Try again in 12 second(s).","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["RATE_LIMITED"],"example":"RATE_LIMITED","description":"Machine-readable error code — switch on this, not on message text","uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":429,"error":"Too Many Requests","message":"Too many requests to this endpoint. Try again in 12 second(s).","code":"RATE_LIMITED"}}},"exampleType":"generated"}},"exampleType":"generated"},"8233a9e3-f9c0-435a-ad03-ceba70d90612":{"description":"An unexpected error occurred","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"number","example":500,"uniqueKey":"statusCode","typeLabel":"number"},"error":{"type":"string","example":"Internal Server Error","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"An unexpected error occurred","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","description":"Machine-readable error code — switch on this, not on message text","example":"INTERNAL_ERROR","uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":500,"error":"Internal Server Error","message":"An unexpected error occurred","code":"INTERNAL_ERROR"}}},"exampleType":"generated"}},"exampleType":"generated"},"6691428d-e6c3-4389-8313-22e347a5d92c":{"description":"The `Idempotency-Key` could not be recorded, so the request was not run (`IDEMPOTENCY_UNAVAILABLE`). Retry with the same key after the `Retry-After` seconds.","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Always false on errors","example":false,"uniqueKey":"success","typeLabel":"boolean"},"statusCode":{"type":"integer","example":503,"uniqueKey":"statusCode","typeLabel":"integer"},"error":{"type":"string","example":"Service Unavailable","uniqueKey":"error","typeLabel":"string"},"message":{"type":"string","example":"The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.","uniqueKey":"message","typeLabel":"string"},"code":{"type":"string","enum":["IDEMPOTENCY_UNAVAILABLE"],"example":"IDEMPOTENCY_UNAVAILABLE","description":"Machine-readable error code — switch on this, not on message text","uniqueKey":"code","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"statusCode":503,"error":"Service Unavailable","message":"The Idempotency-Key could not be recorded, so the request was not run. Retry with the same key.","code":"IDEMPOTENCY_UNAVAILABLE"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"775aa1e2-c13a-4189-8262-dae424cc1154":{"X-API-Key":{"type":"apiKey","name":"X-API-Key","in":"header","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","scopes":[],"schemeName":"X-API-Key"}}},"servers":{"b949171f-b56e-4c69-b8a6-d819dee3b071":{"url":"https://api.hyperprop.com/platform","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"X-API-Key","in":"header","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","scopes":[],"schemeName":"X-API-Key"},"schema":{"title":"X-API-Key","type":"string","description":"Organization API key (`hp_live_...`), sent in the `X-API-Key` header. Create, rotate and restrict keys in the dashboard or with the API keys endpoints; an organization can have two active keys, so you can rotate without downtime. A **full-access** key can call every endpoint in this reference. A **read-only** key can call `GET` endpoints (and create a trading stream token); any other request returns `403 READ_ONLY_KEY`. A key with an IP allowlist returns `403 IP_NOT_ALLOWED` from any other address. Each endpoint lists which keys can call it under **Access**.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"X-API-Key","name":"X-API-Key"}],"title":"X-API-Key"}]},"originalFileLocation":"https://api.hyperprop.com/platform/openapi.json"},"subdomain":"hyperprop-401fc39d","siteName":"Hyperprop Platform API","title":"Bulk revert accounts to a trading day or an instant - Hyperprop Platform API","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-15T15:41:10.224Z","originalFileLocation":"platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages. Who — exactly one of: - accountIds (max 5000) — a targeted revert; - allAccounts: true — every account in your organization with activity after the restore point; - audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P\u0026amp;L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone. To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began. Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it. Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so: - Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged). - More than 1000 accounts, or \u0026quot;background\u0026quot;: true at any size: the call records the batch and answers 202 right away with { batchId, status: \u0026quot;running\u0026quot;, total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout. Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it. While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished. Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen). Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30: json { \u0026quot;audience\u0026quot;: { \u0026quot;from\u0026quot;: \u0026quot;2026-09-08T13:30:00Z\u0026quot;, \u0026quot;to\u0026quot;: \u0026quot;2026-09-08T14:00:00Z\u0026quot;, \u0026quot;condition\u0026quot;: \u0026quot;failed_or_loss\u0026quot; }, \u0026quot;reason\u0026quot;: \u0026quot;Feed outage at the NY open, 8 Sep\u0026quot;, \u0026quot;preview\u0026quot;: true } Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually. Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | NO_ACCOUNTS | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0 | | TOO_MANY_ACCOUNTS | 400 | More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max | | AMBIGUOUS_TARGET | 400 | Not exactly one of accountIds / allAccounts / audience | | INVALID_AUDIENCE_WINDOW | 400 | audience.from is not before audience.to, or not timestamps | | INVALID_REVERT_POINT | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future | | AUDIENCE_ERROR | 500 | Could not read the activity needed to resolve the audience — retry | | TARGETS_ERROR | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry | | REVERT_START_ERROR | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry | allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial. Recommended flow: run with \u0026quot;preview\u0026quot;: true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute. Example — preview an org-wide revert, then execute: bash # 1. Dry run curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot;, \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Bulk revert accounts to a trading day or an instant - Hyperprop Platform API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages. Who — exactly one of: - accountIds (max 5000) — a targeted revert; - allAccounts: true — every account in your organization with activity after the restore point; - audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P\u0026amp;L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone. To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began. Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it. Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so: - Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged). - More than 1000 accounts, or \u0026quot;background\u0026quot;: true at any size: the call records the batch and answers 202 right away with { batchId, status: \u0026quot;running\u0026quot;, total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout. Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it. While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished. Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen). Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30: json { \u0026quot;audience\u0026quot;: { \u0026quot;from\u0026quot;: \u0026quot;2026-09-08T13:30:00Z\u0026quot;, \u0026quot;to\u0026quot;: \u0026quot;2026-09-08T14:00:00Z\u0026quot;, \u0026quot;condition\u0026quot;: \u0026quot;failed_or_loss\u0026quot; }, \u0026quot;reason\u0026quot;: \u0026quot;Feed outage at the NY open, 8 Sep\u0026quot;, \u0026quot;preview\u0026quot;: true } Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually. Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | NO_ACCOUNTS | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0 | | TOO_MANY_ACCOUNTS | 400 | More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max | | AMBIGUOUS_TARGET | 400 | Not exactly one of accountIds / allAccounts / audience | | INVALID_AUDIENCE_WINDOW | 400 | audience.from is not before audience.to, or not timestamps | | INVALID_REVERT_POINT | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future | | AUDIENCE_ERROR | 500 | Could not read the activity needed to resolve the audience — retry | | TARGETS_ERROR | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry | | REVERT_START_ERROR | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry | allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial. Recommended flow: run with \u0026quot;preview\u0026quot;: true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute. Example — preview an org-wide revert, then execute: bash # 1. Dry run curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot;, \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://hyperprop-401fc39d.mintlify.site/_mintlify/api/og/v2?division=Time+Machine\u0026amp;title=Bulk+revert+accounts+to+a+trading+day+or+an+instant\u0026amp;description=**Time+Machine%2C+org-wide%3A**+the+same+operation+as+the+single-account+revert%2C+applied+to+many+accounts+in+one+call+%E2%80%94+built+for+exchange%2Fplatform+outages.%0A%0A**Who*\u0026amp;theme=09948cbc21d4dec195ff5794\u0026amp;signature=9447dd49775c153007a506dfd78fe1363c12d7efd45197cb8ed6318201a6305e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Bulk revert accounts to a trading day or an instant - Hyperprop Platform API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages. Who — exactly one of: - accountIds (max 5000) — a targeted revert; - allAccounts: true — every account in your organization with activity after the restore point; - audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P\u0026amp;L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone. To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began. Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it. Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so: - Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged). - More than 1000 accounts, or \u0026quot;background\u0026quot;: true at any size: the call records the batch and answers 202 right away with { batchId, status: \u0026quot;running\u0026quot;, total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout. Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it. While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished. Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen). Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30: json { \u0026quot;audience\u0026quot;: { \u0026quot;from\u0026quot;: \u0026quot;2026-09-08T13:30:00Z\u0026quot;, \u0026quot;to\u0026quot;: \u0026quot;2026-09-08T14:00:00Z\u0026quot;, \u0026quot;condition\u0026quot;: \u0026quot;failed_or_loss\u0026quot; }, \u0026quot;reason\u0026quot;: \u0026quot;Feed outage at the NY open, 8 Sep\u0026quot;, \u0026quot;preview\u0026quot;: true } Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually. Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | NO_ACCOUNTS | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0 | | TOO_MANY_ACCOUNTS | 400 | More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max | | AMBIGUOUS_TARGET | 400 | Not exactly one of accountIds / allAccounts / audience | | INVALID_AUDIENCE_WINDOW | 400 | audience.from is not before audience.to, or not timestamps | | INVALID_REVERT_POINT | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future | | AUDIENCE_ERROR | 500 | Could not read the activity needed to resolve the audience — retry | | TARGETS_ERROR | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry | | REVERT_START_ERROR | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry | allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial. Recommended flow: run with \u0026quot;preview\u0026quot;: true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute. Example — preview an org-wide revert, then execute: bash # 1. Dry run curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot;, \u0026quot;preview\u0026quot;: true }\u0026#x27; # 2. Execute curl -X POST \u0026quot;.../v1/organization/accounts/revert-trading-day\u0026quot; \\ -H \u0026quot;X-API-Key: hp_live_your_key_here\u0026quot; \\ -H \u0026quot;Content-Type: application/json\u0026quot; \\ -d \u0026#x27;{ \u0026quot;tradingDay\u0026quot;: \u0026quot;2026-07-07\u0026quot;, \u0026quot;allAccounts\u0026quot;: true, \u0026quot;reason\u0026quot;: \u0026quot;Data feed outage\u0026quot; }\u0026#x27; Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026amp; time machine.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://hyperprop-401fc39d.mintlify.site/_mintlify/api/og/v2?division=Time+Machine\u0026amp;title=Bulk+revert+accounts+to+a+trading+day+or+an+instant\u0026amp;description=**Time+Machine%2C+org-wide%3A**+the+same+operation+as+the+single-account+revert%2C+applied+to+many+accounts+in+one+call+%E2%80%94+built+for+exchange%2Fplatform+outages.%0A%0A**Who*\u0026amp;theme=09948cbc21d4dec195ff5794\u0026amp;signature=9447dd49775c153007a506dfd78fe1363c12d7efd45197cb8ed6318201a6305e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/hyperprop-401fc39d/E21rb6hoYD-Zo_QV/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hyperprop Platform API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#253CFF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hyperprop.com/#organization\",\"name\":\"Hyperprop Platform API\",\"url\":\"https://docs.hyperprop.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/hyperprop-401fc39d/snMIX7SYzcFqAv9j/logo/light.svg?fit=max\u0026auto=format\u0026n=snMIX7SYzcFqAv9j\u0026q=85\u0026s=e3a0a071fb4ba3ae53ef978c23cc38a3\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hyperprop.com#website\",\"name\":\"Hyperprop Platform API\",\"url\":\"https://docs.hyperprop.com\",\"publisher\":{\"@id\":\"https://docs.hyperprop.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant#webpage\",\"url\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant\",\"name\":\"Bulk revert accounts to a trading day or an instant\",\"description\":\"Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages. Who — exactly one of: - accountIds (max 5000) — a targeted revert; - allAccounts: true — every account in your organization with activity after the restore point; - audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P\u0026L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone. To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began. Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it. Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so: - Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged). - More than 1000 accounts, or \\\"background\\\": true at any size: the call records the batch and answers 202 right away with { batchId, status: \\\"running\\\", total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout. Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it. While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished. Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen). Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30: json { \\\"audience\\\": { \\\"from\\\": \\\"2026-09-08T13:30:00Z\\\", \\\"to\\\": \\\"2026-09-08T14:00:00Z\\\", \\\"condition\\\": \\\"failed_or_loss\\\" }, \\\"reason\\\": \\\"Feed outage at the NY open, 8 Sep\\\", \\\"preview\\\": true } Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually. Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | NO_ACCOUNTS | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0 | | TOO_MANY_ACCOUNTS | 400 | More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max | | AMBIGUOUS_TARGET | 400 | Not exactly one of accountIds / allAccounts / audience | | INVALID_AUDIENCE_WINDOW | 400 | audience.from is not before audience.to, or not timestamps | | INVALID_REVERT_POINT | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future | | AUDIENCE_ERROR | 500 | Could not read the activity needed to resolve the audience — retry | | TARGETS_ERROR | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry | | REVERT_START_ERROR | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry | allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial. Recommended flow: run with \\\"preview\\\": true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute. Example — preview an org-wide revert, then execute: bash # 1. Dry run curl -X POST \\\".../v1/organization/accounts/revert-trading-day\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\", \\\"preview\\\": true }' # 2. Execute curl -X POST \\\".../v1/organization/accounts/revert-trading-day\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\" }' Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026 time machine.\",\"dateModified\":\"2026-11-15T15:41:10.224Z\",\"isPartOf\":{\"@id\":\"https://docs.hyperprop.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform API\",\"item\":\"https://docs.hyperprop.com/platform-api/trading-accounts/list-close-all-runs\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Machine\",\"item\":\"https://docs.hyperprop.com/platform-api/time-machine/list-revert-batches\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Bulk revert accounts to a trading day or an instant\",\"item\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant#apireference\",\"headline\":\"Bulk revert accounts to a trading day or an instant\",\"name\":\"Bulk revert accounts to a trading day or an instant\",\"description\":\"Time Machine, org-wide: the same operation as the single-account revert, applied to many accounts in one call — built for exchange/platform outages. Who — exactly one of: - accountIds (max 5000) — a targeted revert; - allAccounts: true — every account in your organization with activity after the restore point; - audience: { from, to, condition } — the accounts an outage window actually touched: traded (any fill in the window), loss (net realized P\u0026L in the window below zero), failed (the account failed inside the window), or failed_or_loss. Everyone else is left alone. To when — tradingDay (end-of-day state of that Chicago trading day) or revertTo (exact state at an instant; see the single-account endpoint for how it is reconstructed). With an audience and neither given, the accounts go back to audience.from — the point at which the issues began. Each account is processed independently: the response lists per-account results and per-account failures (one bad account never aborts the batch — per-account error codes match the single-account endpoint). An account with a payout, payout reversal, balance adjustment or firm balance change after the close its balance would be rebuilt from is reported with PAYOUT_OR_ADJUSTMENT_IN_RANGE and is neither closed out nor changed. All changes share one batchId in the audit trail, and the batch records the restore point and the audience that selected it. Size, and background runs. One call may revert up to 5000 accounts. A revert takes roughly half a second per account, so: - Up to 1000 accounts without background: the call works through every account and answers 200 with the full per-account report (unchanged). - More than 1000 accounts, or \\\"background\\\": true at any size: the call records the batch and answers 202 right away with { batchId, status: \\\"running\\\", total, … }. The revert keeps going after the response. Poll GET /revert-batches/{batchId} for status (running → completed), processedCount, failedCount, failures and job. Use background for anything beyond a few dozen accounts if your HTTP client or proxy has a short timeout. Background runs are durable. A background revert continues on its own through our maintenance and restarts: it picks up where it stopped and never processes an account twice. Accounts are processed in small groups at a steady pace, so live trading is not slowed down. An account that hits a temporary error is retried automatically (up to 5 attempts, with increasing delays) before it is reported as failed. While it runs you can follow every account with GET /revert-batches/{batchId}/items, stop it with POST /revert-batches/{batchId}/cancel, and once it has finished, run the failed accounts again with POST /revert-batches/{batchId}/retry-failed. A batch can only have one background run at a time, and an account that another background run is working on waits until that run has finished with it. While a batch is running it cannot be undone (BATCH_RUNNING); undo it once it has finished. Large previews. A preview reports every account individually up to 1000 matches. Above 1000 it reports the first 100 (or previewLimit, at most 1000) and sets previewTruncated: true; total always carries the full match count. Pass previewLimit to keep any preview quick (for example 100 for a confirmation screen). Example — an outage at the NY open (09:30–10:00 ET on 8 Sep 2026) failed some accounts and cost others money; put exactly those accounts back to 09:30: json { \\\"audience\\\": { \\\"from\\\": \\\"2026-09-08T13:30:00Z\\\", \\\"to\\\": \\\"2026-09-08T14:00:00Z\\\", \\\"condition\\\": \\\"failed_or_loss\\\" }, \\\"reason\\\": \\\"Feed outage at the NY open, 8 Sep\\\", \\\"preview\\\": true } Undoable. The returned batchId is a Time Machine ledger entry (GET /revert-batches). If the batch was a mistake, POST /revert-batches/{batchId}/undo restores every account in it to its pre-revert state in one call — accounts with new trader activity since the revert are skipped and reported individually. Batch-level error codes: | Code | Status | Meaning | |------|:---:|---------| | NO_ACCOUNTS | 400 | Nothing to revert (empty accountIds, or allAccounts found no affected accounts). An empty audience is NOT an error: 200 with reverted: 0 | | TOO_MANY_ACCOUNTS | 400 | More than 5000 accounts in one call — split into batches. The response carries matched (how many accounts matched) and max | | AMBIGUOUS_TARGET | 400 | Not exactly one of accountIds / allAccounts / audience | | INVALID_AUDIENCE_WINDOW | 400 | audience.from is not before audience.to, or not timestamps | | INVALID_REVERT_POINT | 400 | Both tradingDay and revertTo, revertTo not a timestamp, or in the future | | AUDIENCE_ERROR | 500 | Could not read the activity needed to resolve the audience — retry | | TARGETS_ERROR | 500 | allAccounts: could not read the activity needed to find the affected accounts — retry | | REVERT_START_ERROR | 500 | Background run: the batch could not be recorded, so nothing was started or changed — retry | allAccounts and audience consider every account in your organization. A failure to read any of them is an error; the selection is never silently partial. Recommended flow: run with \\\"preview\\\": true first — you get the full per-account impact report (balances restored, accounts revived, orders voided) with zero changes — then execute. Example — preview an org-wide revert, then execute: bash # 1. Dry run curl -X POST \\\".../v1/organization/accounts/revert-trading-day\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\", \\\"preview\\\": true }' # 2. Execute curl -X POST \\\".../v1/organization/accounts/revert-trading-day\\\" \\\\ -H \\\"X-API-Key: hp_live_your_key_here\\\" \\\\ -H \\\"Content-Type: application/json\\\" \\\\ -d '{ \\\"tradingDay\\\": \\\"2026-07-07\\\", \\\"allAccounts\\\": true, \\\"reason\\\": \\\"Data feed outage\\\" }' Access: full-access API keys only (a read-only key gets 403 READ_ONLY_KEY). Dashboard members need manage access to Operations \u0026 time machine.\",\"url\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hyperprop.com/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant#webpage\"},\"dateModified\":\"2026-11-15T15:41:10.224Z\",\"publisher\":{\"@id\":\"https://docs.hyperprop.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hyperprop.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Hyperprop Platform API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Hyperprop Platform API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant.md","siteName":"Hyperprop Platform API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Platform API","pages":[{"group":"Trading accounts","pages":[{"title":"List close-all runs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/flatten-runs","href":"/platform-api/trading-accounts/list-close-all-runs"},{"title":"Get trading accounts for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts","href":"/platform-api/trading-accounts/get-trading-accounts-for-your-organization"},{"title":"Create a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts","href":"/platform-api/trading-accounts/create-a-trading-account"},{"title":"Get bulk operation details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/bulk-operations/{batchId}","href":"/platform-api/trading-accounts/get-bulk-operation-details"},{"title":"Get a close-all run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/flatten-runs/{runId}","href":"/platform-api/trading-accounts/get-a-close-all-run"},{"title":"Get active traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/active-traders","href":"/platform-api/trading-accounts/get-active-traders"},{"title":"Get daily account and trader activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/activity","href":"/platform-api/trading-accounts/get-daily-account-and-trader-activity"},{"title":"Bulk-create unlinked accounts with import keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/bulk","href":"/platform-api/trading-accounts/bulk-create-unlinked-accounts-with-import-keys"},{"title":"Bulk update trading accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/bulk-update","href":"/platform-api/trading-accounts/bulk-update-trading-accounts"},{"title":"Close all positions across accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/flatten","href":"/platform-api/trading-accounts/close-all-positions-across-accounts"},{"title":"Get open positions and equity for many accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/positions","href":"/platform-api/trading-accounts/get-open-positions-and-equity-for-many-accounts"},{"title":"Get a specific trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}","href":"/platform-api/trading-accounts/get-a-specific-trading-account"},{"title":"Update a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-accounts/{accountId}","href":"/platform-api/trading-accounts/update-a-trading-account"},{"title":"Get an account's event log and session history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/activity","href":"/platform-api/trading-accounts/get-an-accounts-event-log-and-session-history"},{"title":"List an account's balance adjustments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/balance-adjustments","href":"/platform-api/trading-accounts/list-an-accounts-balance-adjustments"},{"title":"Credit or debit a trading account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/balance-adjustments","href":"/platform-api/trading-accounts/credit-or-debit-a-trading-account"},{"title":"Get account change history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/changes","href":"/platform-api/trading-accounts/get-account-change-history"},{"title":"Get an account's daily P\u0026L","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/daily-pnl","href":"/platform-api/trading-accounts/get-an-accounts-daily-p\u0026l"},{"title":"Turn an account off (pause)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/deactivate","href":"/platform-api/trading-accounts/turn-an-account-off-pause"},{"title":"Get an account's equity and unrealized P\u0026L","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/equity","href":"/platform-api/trading-accounts/get-an-accounts-equity-and-unrealized-p\u0026l"},{"title":"Close all positions on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/flatten","href":"/platform-api/trading-accounts/close-all-positions-on-an-account"},{"title":"Get an account's order event timeline","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/order-events","href":"/platform-api/trading-accounts/get-an-accounts-order-event-timeline"},{"title":"Get an account's order history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/orders","href":"/platform-api/trading-accounts/get-an-accounts-order-history"},{"title":"Get an account's open positions","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/positions","href":"/platform-api/trading-accounts/get-an-accounts-open-positions"},{"title":"Turn an account back on","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/reactivate","href":"/platform-api/trading-accounts/turn-an-account-back-on"},{"title":"Unlink a trader (issues a fresh import key)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/unlink","href":"/platform-api/trading-accounts/unlink-a-trader-issues-a-fresh-import-key"},{"title":"Get a balance adjustment by reference","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-accounts/{accountId}/balance-adjustments/{reference}","href":"/platform-api/trading-accounts/get-a-balance-adjustment-by-reference"},{"title":"Cancel working orders on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/orders/cancel","href":"/platform-api/trading-accounts/cancel-working-orders-on-an-account"},{"title":"Close one position on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/{accountId}/positions/{contract}/close","href":"/platform-api/trading-accounts/close-one-position-on-an-account"}]},{"group":"Traders","pages":[{"title":"List trader identity bindings (customer ⇄ Hyperprop login)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trader-bindings","href":"/platform-api/traders/list-trader-identity-bindings-customer-⇄-hyperprop-login"},{"title":"Get traders for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/traders","href":"/platform-api/traders/get-traders-for-your-organization"},{"title":"Get a specific trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/traders/{traderId}","href":"/platform-api/traders/get-a-specific-trader"},{"title":"Update a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/traders/{traderId}","href":"/platform-api/traders/update-a-trader"},{"title":"Rebind a customer to a new Hyperprop login (support flow)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trader-bindings/{bindingId}/rebind","href":"/platform-api/traders/rebind-a-customer-to-a-new-hyperprop-login-support-flow"}]},{"group":"Trading plans","pages":[{"title":"Get trading plans for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-plans","href":"/platform-api/trading-plans/get-trading-plans-for-your-organization"},{"title":"Create a new trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-plans","href":"/platform-api/trading-plans/create-a-new-trading-plan"},{"title":"Get a specific trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/get-a-specific-trading-plan"},{"title":"Delete a trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/delete-a-trading-plan"},{"title":"Update a trading plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-plans/{planId}","href":"/platform-api/trading-plans/update-a-trading-plan"}]},{"group":"Trading rules","pages":[{"title":"Get trading rules for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-rules","href":"/platform-api/trading-rules/get-trading-rules-for-your-organization"},{"title":"Create a new trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-rules","href":"/platform-api/trading-rules/create-a-new-trading-rule"},{"title":"Get a specific trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/get-a-specific-trading-rule"},{"title":"Delete a trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/delete-a-trading-rule"},{"title":"Update a trading rule","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/trading-rules/{ruleId}","href":"/platform-api/trading-rules/update-a-trading-rule"}]},{"group":"Instruments","pages":[{"title":"List instruments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/instruments","href":"/platform-api/instruments/list-instruments"}]},{"group":"Lockouts","pages":[{"title":"List all active lockouts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts","href":"/platform-api/lockouts/list-all-active-lockouts"},{"title":"Create admin lockout","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/lockouts","href":"/platform-api/lockouts/create-admin-lockout"},{"title":"Get daily lockout activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts/activity","href":"/platform-api/lockouts/get-daily-lockout-activity"},{"title":"Get lockout status for account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/get-lockout-status-for-account"},{"title":"Remove lockout from account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/remove-lockout-from-account"},{"title":"Update active lockout","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/lockouts/{accountId}","href":"/platform-api/lockouts/update-active-lockout"}]},{"group":"Payouts","pages":[{"title":"Payout queue — bulk payout eligibility","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/payout-eligibility","href":"/platform-api/payouts/payout-queue-—-bulk-payout-eligibility"},{"title":"Get daily payout activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/payouts/activity","href":"/platform-api/payouts/get-daily-payout-activity"},{"title":"Check payout eligibility","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/accounts/{accountId}/payout-eligibility","href":"/platform-api/payouts/check-payout-eligibility"},{"title":"List payouts for an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/accounts/{accountId}/payouts","href":"/platform-api/payouts/list-payouts-for-an-account"},{"title":"Execute a payout (balance withdrawal)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/payouts","href":"/platform-api/payouts/execute-a-payout-balance-withdrawal"},{"title":"Reverse a payout (restore the withdrawn balance)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/payouts/{payoutId}/reverse","href":"/platform-api/payouts/reverse-a-payout-restore-the-withdrawn-balance"}]},{"group":"Purchases","pages":[{"title":"Get purchases for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/purchases","href":"/platform-api/purchases/get-purchases-for-your-organization"},{"title":"Get a specific purchase","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/purchases/{purchaseId}","href":"/platform-api/purchases/get-a-specific-purchase"}]},{"group":"Time Machine","pages":[{"title":"List revert batches","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches","href":"/platform-api/time-machine/list-revert-batches"},{"title":"Get revert settings","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/time-machine-settings","href":"/platform-api/time-machine/get-revert-settings"},{"title":"Update revert settings","description":"How a **point-in-time restore** (`revertTo` on `POST /accounts/{accountId}/revert-trading-day` and `POST /accounts/revert-trading-day`) treats the high-water mark and the trading day of the instant. End-of-day reverts (`tradingDay`) are not affected.\n\n| Field | Values |\n|---|---|\n| `instantRevertHighWaterMark` | `at_instant` (default): the high-water mark as it stood at the instant. Intraday-trailing accounts take the peak balance up to the instant; end-of-day-trailing accounts the last close's value. · `restored_balance`: as `at_instant`, and the restored balance also counts as a high, as if the day had closed at the instant. Stricter: the trailing floor rises to the restored balance minus the drawdown. · `keep_current`: the revert leaves the high-water mark as it is. |\n| `instantRevertDaySnapshot` | `partial` (default): the trading day containing the instant keeps its snapshot, cut at the instant: ending balance = restored balance, P\u0026L, fills and contracts up to the instant. The day stays in calendars, reports and consistency. · `void`: the whole trading day of the instant is voided, like every later day. |\n\nUndo restores the snapshot of the instant's day as it was before the revert.\n\nSend only the fields to change. Requires the **settings: manage** permission. A change applies to reverts started after it; earlier reverts keep what they wrote.\n\n**Example:**\n```bash\ncurl -X PUT \"https://api.hyperprop.com/platform/v1/organization/time-machine-settings\" \\\n -H \"X-API-Key: hp_live_your_key_here\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\"instantRevertHighWaterMark\": \"restored_balance\"}'\n```\n\n**Access:** full-access API keys only (a read-only key gets `403 READ_ONLY_KEY`). Dashboard members need manage access to Org settings \u0026 API keys.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/time-machine-settings","href":"/platform-api/time-machine/update-revert-settings"},{"title":"Bulk revert accounts to a trading day or an instant","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/revert-trading-day","href":"/platform-api/time-machine/bulk-revert-accounts-to-a-trading-day-or-an-instant"},{"title":"Inspect a revert batch","description":"Everything one revert batch did, account by account: the balance and status each account had before and after, how many snapshots and orders were voided, whether positions were force-closed, and whether that account has since been undone.\n\nFor each account, `balanceBefore`/`statusBefore` is the **pre-revert** state — exactly what an undo would restore.\n\n**Following a background revert.** A bulk revert that answered `202` keeps running after the response; poll this endpoint (every few seconds is plenty) until `status` leaves `running`:\n| `status` | Meaning |\n|---|---|\n| `running` | Still working. `processedCount` of `accountCount` accounts are done (`failedCount` of them failed); `accounts` lists the ones reverted so far |\n| `completed` | Finished. `accountCount` is now the number of accounts reverted; `failures` lists accounts that could not be reverted |\n| `interrupted` | The run was cancelled (`POST /revert-batches/{batchId}/cancel`) before reaching every account. Accounts already reverted stay reverted and can be undone with this batch; `POST /revert-batches/{batchId}/retry-failed` reverts the rest. Runs started before 18 October 2026 could also stop early when our service restarted; those cannot be retried, so run the revert again for the remaining accounts |\n\nA background run continues through our maintenance and restarts and picks up where it stopped, so `status` stays `running`. `job` shows its progress: `succeededCount`, `failedCount`, `retryingCount` (accounts waiting to retry after a temporary error) and `pendingCount` of `total`. `GET /revert-batches/{batchId}/items` lists every account with its outcome.\n\n`failures` holds up to the first 200 failed accounts (`accountId`, `code`, `message`; codes as in the single-account endpoint); `failedCount` always counts all of them. Batches that ran within their request are `completed` with an empty `failures` list — their failures were in the revert response.\n\n**Following a background undo.** An undo that answered `202` sets `status` to `undoing` until it finishes; `undoProcessedCount` of `undoTotal` accounts are done (`undoFailedCount` failed, listed in `undoFailures`, first 200), and `undoneCount` grows as accounts are restored. When it finishes, `status` returns to what it was before the undo (`completed`, or `interrupted` for a revert that had stopped early). Like a background revert, a background undo continues through our maintenance and restarts and can be cancelled. A cancelled undo returns the batch to its previous `status`; the accounts it restored stay restored, and `POST /revert-batches/{batchId}/retry-failed` or another undo restores the rest.\n\n**Large batches.** `accounts` lists up to `accountsLimit` accounts (default and maximum 1000), oldest first; `accountsTotal` counts all of them. Page with `accountsOffset`.\n\n**Example:**\n```bash\ncurl \"https://api.hyperprop.com/platform/v1/organization/revert-batches/a1b2c3d4-e5f6-7890-abcd-ef1234567890\" \\\n -H \"X-API-Key: hp_live_your_key_here\"\n```\n\n**Access:** read-only and full-access API keys. Dashboard members need view access to Operations \u0026 time machine.","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}","href":"/platform-api/time-machine/inspect-a-revert-batch"},{"title":"Revert an account to a trading day or an instant","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/accounts/{accountId}/revert-trading-day","href":"/platform-api/time-machine/revert-an-account-to-a-trading-day-or-an-instant"},{"title":"Cancel a background run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/cancel","href":"/platform-api/time-machine/cancel-a-background-run"},{"title":"List the accounts of a background run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}/items","href":"/platform-api/time-machine/list-the-accounts-of-a-background-run"},{"title":"Retry the failed accounts of a background run","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/retry-failed","href":"/platform-api/time-machine/retry-the-failed-accounts-of-a-background-run"},{"title":"Undo a revert batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/revert-batches/{batchId}/undo","href":"/platform-api/time-machine/undo-a-revert-batch"},{"title":"List the fills a revert voided on an account","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/revert-batches/{batchId}/accounts/{accountId}/voided-fills","href":"/platform-api/time-machine/list-the-fills-a-revert-voided-on-an-account"}]},{"group":"Mass credit","pages":[{"title":"List balance adjustment batches","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments","href":"/platform-api/mass-credit/list-balance-adjustment-batches"},{"title":"Credit back an incident window's losses","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments","href":"/platform-api/mass-credit/credit-back-an-incident-windows-losses"},{"title":"List bulk jobs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs","href":"/platform-api/mass-credit/list-bulk-jobs"},{"title":"Preview a balance credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/preview","href":"/platform-api/mass-credit/preview-a-balance-credit"},{"title":"Preview a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews","href":"/platform-api/mass-credit/preview-a-mass-credit"},{"title":"List mass credit templates","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments/templates","href":"/platform-api/mass-credit/list-mass-credit-templates"},{"title":"Create a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/templates","href":"/platform-api/mass-credit/create-a-mass-credit-template"},{"title":"Get a balance adjustment batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balance-adjustments/{batchId}","href":"/platform-api/mass-credit/get-a-balance-adjustment-batch"},{"title":"Get a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}","href":"/platform-api/mass-credit/get-a-bulk-job"},{"title":"Delete a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/balance-adjustments/templates/{templateId}","href":"/platform-api/mass-credit/delete-a-mass-credit-template"},{"title":"Update a mass credit template","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json patch /v1/organization/balance-adjustments/templates/{templateId}","href":"/platform-api/mass-credit/update-a-mass-credit-template"},{"title":"Retry a balance adjustment batch","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/{batchId}/retry","href":"/platform-api/mass-credit/retry-a-balance-adjustment-batch"},{"title":"Reverse a balance credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/{batchId}/reverse","href":"/platform-api/mass-credit/reverse-a-balance-credit"},{"title":"Cancel a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/cancel","href":"/platform-api/mass-credit/cancel-a-bulk-job"},{"title":"Export a bulk job's items as CSV","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}/export","href":"/platform-api/mass-credit/export-a-bulk-jobs-items-as-csv"},{"title":"List a bulk job's items","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/jobs/{jobId}/items","href":"/platform-api/mass-credit/list-a-bulk-jobs-items"},{"title":"Pause a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/pause","href":"/platform-api/mass-credit/pause-a-bulk-job"},{"title":"Resume a bulk job","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/resume","href":"/platform-api/mass-credit/resume-a-bulk-job"},{"title":"Retry a bulk job's failed items","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/jobs/{jobId}/retry","href":"/platform-api/mass-credit/retry-a-bulk-jobs-failed-items"},{"title":"Reverse a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/jobs/{jobId}/reverse","href":"/platform-api/mass-credit/reverse-a-mass-credit"},{"title":"Confirm a mass credit","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/confirm","href":"/platform-api/mass-credit/confirm-a-mass-credit"},{"title":"Add accounts to a draft preview","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/inputs","href":"/platform-api/mass-credit/add-accounts-to-a-draft-preview"},{"title":"Start a draft preview","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/balance-adjustments/previews/{jobId}/start","href":"/platform-api/mass-credit/start-a-draft-preview"}]},{"group":"Webhooks","pages":[{"title":"View webhook delivery history","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries","href":"/platform-api/webhooks/view-webhook-delivery-history"},{"title":"List all webhooks","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks","href":"/platform-api/webhooks/list-all-webhooks"},{"title":"Register a webhook endpoint","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks","href":"/platform-api/webhooks/register-a-webhook-endpoint"},{"title":"Get daily webhook delivery activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries/activity","href":"/platform-api/webhooks/get-daily-webhook-delivery-activity"},{"title":"Inspect a webhook event and all delivery attempts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhook-deliveries/{deliveryId}","href":"/platform-api/webhooks/inspect-a-webhook-event-and-all-delivery-attempts"},{"title":"Get webhook details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/get-webhook-details"},{"title":"Update a webhook","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/update-a-webhook"},{"title":"Delete a webhook","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/webhooks/{webhookId}","href":"/platform-api/webhooks/delete-a-webhook"},{"title":"Redeliver a webhook delivery","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhook-deliveries/{deliveryId}/redeliver","href":"/platform-api/webhooks/redeliver-a-webhook-delivery"},{"title":"Get webhook endpoint delivery and latency metrics","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/webhooks/{webhookId}/metrics","href":"/platform-api/webhooks/get-webhook-endpoint-delivery-and-latency-metrics"},{"title":"Rotate signing secret","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/rotate-secret","href":"/platform-api/webhooks/rotate-signing-secret"},{"title":"Simulate any event type (QA fixture)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/simulate","href":"/platform-api/webhooks/simulate-any-event-type-qa-fixture"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/webhooks/{webhookId}/test","href":"/platform-api/webhooks/send-a-test-event"}]},{"group":"Events","pages":[{"title":"List all organization events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events","href":"/platform-api/events/list-all-organization-events"},{"title":"Inspect one event and all its webhook deliveries","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events/{eventId}","href":"/platform-api/events/inspect-one-event-and-all-its-webhook-deliveries"}]},{"group":"Real-time streams","pages":[{"title":"Real-time event stream (WebSocket)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/events/stream","href":"/platform-api/real-time-streams/real-time-event-stream-websocket"},{"title":"Create a trading stream token","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/trading-accounts/stream-token","href":"/platform-api/real-time-streams/create-a-trading-stream-token"}]},{"group":"Reconciliation","pages":[{"title":"Get account balances (bulk, reconciliation-friendly)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/balances","href":"/platform-api/reconciliation/get-account-balances-bulk-reconciliation-friendly"},{"title":"Reconcile a trading day in one call","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/reconciliation","href":"/platform-api/reconciliation/reconcile-a-trading-day-in-one-call"},{"title":"Get end-of-day account snapshots","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/snapshots/accounts","href":"/platform-api/reconciliation/get-end-of-day-account-snapshots"},{"title":"Get fills for a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/snapshots/fills","href":"/platform-api/reconciliation/get-fills-for-a-trading-day"}]},{"group":"Analytics","pages":[{"title":"Get organization analytics","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics","href":"/platform-api/analytics/get-organization-analytics"},{"title":"Get hourly activity by weekday","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/hourly","href":"/platform-api/analytics/get-hourly-activity-by-weekday"},{"title":"Get revenue breakdown","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/revenue","href":"/platform-api/analytics/get-revenue-breakdown"},{"title":"Get top traders over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/analytics/top-traders","href":"/platform-api/analytics/get-top-traders-over-time"}]},{"group":"Risk","pages":[{"title":"Get your alert limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/alert-limits","href":"/platform-api/risk/get-your-alert-limits"},{"title":"Set your alert limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/alert-limits","href":"/platform-api/risk/set-your-alert-limits"},{"title":"List alerts raised by your limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/alerts","href":"/platform-api/risk/list-alerts-raised-by-your-limits"},{"title":"Get trader behavior by plan","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/behavior","href":"/platform-api/risk/get-trader-behavior-by-plan"},{"title":"Get plan performance by purchase month","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/cohorts","href":"/platform-api/risk/get-plan-performance-by-purchase-month"},{"title":"Read exposure and concentration","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/exposure","href":"/platform-api/risk/read-exposure-and-concentration"},{"title":"List exposure limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/exposure-limits","href":"/platform-api/risk/list-exposure-limits"},{"title":"Set exposure limits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/exposure-limits","href":"/platform-api/risk/set-exposure-limits"},{"title":"Read the risk flags of accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/flags","href":"/platform-api/risk/read-the-risk-flags-of-accounts"},{"title":"List flagged traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/inbox","href":"/platform-api/risk/list-flagged-traders"},{"title":"List link clearances","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/link-clearances","href":"/platform-api/risk/list-link-clearances"},{"title":"Clear two traders to share a device or address","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/link-clearances","href":"/platform-api/risk/clear-two-traders-to-share-a-device-or-address"},{"title":"Get traders linked by a shared device or IP address","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/linked-traders","href":"/platform-api/risk/get-traders-linked-by-a-shared-device-or-ip-address"},{"title":"List news windows","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/news-windows","href":"/platform-api/risk/list-news-windows"},{"title":"Add or update news windows","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/news-windows","href":"/platform-api/risk/add-or-update-news-windows"},{"title":"Get a payout forecast for the next 7 and 30 days","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/payout-forecast","href":"/platform-api/risk/get-a-payout-forecast-for-the-next-7-and-30-days"},{"title":"Get per-plan unit economics and sustainability flags","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/plan-economics","href":"/platform-api/risk/get-per-plan-unit-economics-and-sustainability-flags"},{"title":"Get monthly firm P\u0026L (revenue vs payouts vs platform costs)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/pnl","href":"/platform-api/risk/get-monthly-firm-p\u0026l-revenue-vs-payouts-vs-platform-costs"},{"title":"List daily risk reports","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports","href":"/platform-api/risk/list-daily-risk-reports"},{"title":"Get the summary email settings","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/summary-email","href":"/platform-api/risk/get-the-summary-email-settings"},{"title":"Set the summary email","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/summary-email","href":"/platform-api/risk/set-the-summary-email"},{"title":"List today's provisional risk pairs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/today","href":"/platform-api/risk/list-todays-provisional-risk-pairs"},{"title":"Detect self-hedging, hedging and copy trading","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/trading-patterns","href":"/platform-api/risk/detect-self-hedging-hedging-and-copy-trading"},{"title":"Read the risk money summary","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/value","href":"/platform-api/risk/read-the-risk-money-summary"},{"title":"Read one risk finding with its proof","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/findings/{findingId}","href":"/platform-api/risk/read-one-risk-finding-with-its-proof"},{"title":"Count flagged traders","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/inbox/count","href":"/platform-api/risk/count-flagged-traders"},{"title":"Set the review state of a flagged trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/risk/inbox/{traderId}","href":"/platform-api/risk/set-the-review-state-of-a-flagged-trader"},{"title":"Revoke a link clearance","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/risk/link-clearances/{clearanceId}","href":"/platform-api/risk/revoke-a-link-clearance"},{"title":"Read a risk match export","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/match-exports/{exportId}","href":"/platform-api/risk/read-a-risk-match-export"},{"title":"Delete a news window","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/risk/news-windows/{windowId}","href":"/platform-api/risk/delete-a-news-window"},{"title":"List stored trading patterns","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/patterns/stored","href":"/platform-api/risk/list-stored-trading-patterns"},{"title":"Read the daily risk report of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports/{tradingDay}","href":"/platform-api/risk/read-the-daily-risk-report-of-a-trading-day"},{"title":"List every risk match of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/reports/{tradingDay}/matches","href":"/platform-api/risk/list-every-risk-match-of-a-trading-day"},{"title":"List the decisions on a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/traders/{traderId}/decisions","href":"/platform-api/risk/list-the-decisions-on-a-trader"},{"title":"Record a decision on a flagged trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/traders/{traderId}/decisions","href":"/platform-api/risk/record-a-decision-on-a-flagged-trader"},{"title":"Read one trader's risk findings with their proof","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/traders/{traderId}/findings","href":"/platform-api/risk/read-one-traders-risk-findings-with-their-proof"},{"title":"Rebuild the full risk match list of a trading day","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/risk/reports/{tradingDay}/matches/export","href":"/platform-api/risk/rebuild-the-full-risk-match-list-of-a-trading-day"}]},{"group":"Trader insights","pages":[{"title":"Read trader sentiment over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/sentiment","href":"/platform-api/trader-insights/read-trader-sentiment-over-time"},{"title":"List your top traders by realized performance","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/top-traders","href":"/platform-api/trader-insights/list-your-top-traders-by-realized-performance"},{"title":"List the traders you follow","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/watchlist","href":"/platform-api/trader-insights/list-the-traders-you-follow"},{"title":"Get live positioning across all accounts","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning","href":"/platform-api/trader-insights/get-live-positioning-across-all-accounts"},{"title":"List the entries and exits of the traders you follow","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/insights/watchlist/activity","href":"/platform-api/trader-insights/list-the-entries-and-exits-of-the-traders-you-follow"},{"title":"Follow a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/insights/watchlist/{traderId}","href":"/platform-api/trader-insights/follow-a-trader"},{"title":"Stop following a trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/insights/watchlist/{traderId}","href":"/platform-api/trader-insights/stop-following-a-trader"},{"title":"Get long vs short positioning over time","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning/history","href":"/platform-api/trader-insights/get-long-vs-short-positioning-over-time"},{"title":"Get live exposure by product and trader","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/risk/positioning/live","href":"/platform-api/trader-insights/get-live-exposure-by-product-and-trader"}]},{"group":"Billing and invoices","pages":[{"title":"Get daily billing activity","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/activity","href":"/platform-api/billing-and-invoices/get-daily-billing-activity"},{"title":"Get credits","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/credits","href":"/platform-api/billing-and-invoices/get-credits"},{"title":"List billing cycles","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/cycles","href":"/platform-api/billing-and-invoices/list-billing-cycles"},{"title":"Get your billing details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/details","href":"/platform-api/billing-and-invoices/get-your-billing-details"},{"title":"Update your billing details","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/billing/details","href":"/platform-api/billing-and-invoices/update-your-billing-details"},{"title":"List all billing events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/events","href":"/platform-api/billing-and-invoices/list-all-billing-events"},{"title":"Project next month's bill from the current state","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/forecast","href":"/platform-api/billing-and-invoices/project-next-months-bill-from-the-current-state"},{"title":"List invoices","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices","href":"/platform-api/billing-and-invoices/list-invoices"},{"title":"Get all-months billing aggregates","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/monthly","href":"/platform-api/billing-and-invoices/get-all-months-billing-aggregates"},{"title":"Get monthly billing summary","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/summary","href":"/platform-api/billing-and-invoices/get-monthly-billing-summary"},{"title":"Get this month so far","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/usage","href":"/platform-api/billing-and-invoices/get-this-month-so-far"},{"title":"Get an invoice","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}","href":"/platform-api/billing-and-invoices/get-an-invoice"},{"title":"Export a month's line items as CSV","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/line-items/export","href":"/platform-api/billing-and-invoices/export-a-months-line-items-as-csv"},{"title":"Get events for a billing cycle","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/cycles/{cycleId}/events","href":"/platform-api/billing-and-invoices/get-events-for-a-billing-cycle"},{"title":"Get bank transfer instructions","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}/payment-instructions","href":"/platform-api/billing-and-invoices/get-bank-transfer-instructions"},{"title":"Download an invoice PDF","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/billing/invoices/{invoiceId}/pdf","href":"/platform-api/billing-and-invoices/download-an-invoice-pdf"}]},{"group":"Team and roles","pages":[{"title":"List roles (system presets + your custom roles)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/roles","href":"/platform-api/team-and-roles/list-roles-system-presets-+-your-custom-roles"},{"title":"Get team members for your organization","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/team","href":"/platform-api/team-and-roles/get-team-members-for-your-organization"},{"title":"List pending team invitations","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/team/invitations","href":"/platform-api/team-and-roles/list-pending-team-invitations"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-keys","href":"/platform-api/api-keys/list-api-keys"},{"title":"List AI apps connected with your API keys","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-keys/connections","href":"/platform-api/api-keys/list-ai-apps-connected-with-your-api-keys"}]},{"group":"Logs and health","pages":[{"title":"List API request logs","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/api-logs","href":"/platform-api/logs-and-health/list-api-request-logs"},{"title":"Get organization audit log","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/audit-log","href":"/platform-api/logs-and-health/get-organization-audit-log"},{"title":"Get integration health (alerts, errors, insights)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/health","href":"/platform-api/logs-and-health/get-integration-health-alerts-errors-insights"},{"title":"Look up an idempotency key","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/idempotency-keys","href":"/platform-api/logs-and-health/look-up-an-idempotency-key"},{"title":"List organization audit events","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/audit-log/events","href":"/platform-api/logs-and-health/list-organization-audit-events"},{"title":"Release a stuck idempotency key","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/idempotency-keys/release","href":"/platform-api/logs-and-health/release-a-stuck-idempotency-key"}]},{"group":"Organization profile","pages":[{"title":"Get your organization profile","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/profile","href":"/platform-api/organization-profile/get-your-organization-profile"},{"title":"Update your organization profile","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json put /v1/organization/profile","href":"/platform-api/organization-profile/update-your-organization-profile"},{"title":"Upload organization logo","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/profile/logo","href":"/platform-api/organization-profile/upload-organization-logo"},{"title":"Delete organization logo","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json delete /v1/organization/profile/logo","href":"/platform-api/organization-profile/delete-organization-logo"}]},{"group":"Support","pages":[{"title":"List your support tickets","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/support/tickets","href":"/platform-api/support/list-your-support-tickets"},{"title":"Create a support ticket","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/tickets","href":"/platform-api/support/create-a-support-ticket"},{"title":"Get signed upload URLs for ticket attachments","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/uploads","href":"/platform-api/support/get-signed-upload-urls-for-ticket-attachments"},{"title":"Get a support ticket with its reply thread","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/organization/support/tickets/{ticketId}","href":"/platform-api/support/get-a-support-ticket-with-its-reply-thread"},{"title":"Reply on a support ticket","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json post /v1/organization/support/tickets/{ticketId}/comments","href":"/platform-api/support/reply-on-a-support-ticket"}]},{"group":"Partner access","pages":[{"title":"Get order history (keyset-paginated)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/user/trading/orders","href":"/platform-api/partner-access/get-order-history-keyset-paginated"},{"title":"Get completed round-trip trades (server-derived)","deprecated":null,"version":null,"openapi":"https://api.hyperprop.com/platform/openapi.json get /v1/user/trading/trades","href":"/platform-api/partner-access/get-completed-round-trip-trades-server-derived"}]}]},{"group":"Trade API","pages":[{"group":"Account","pages":[{"title":"Get current trading account with equity and P\u0026L","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account","href":"/trade-api/account/get-current-trading-account-with-equity-and-p\u0026l"},{"title":"Get account lockout status","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account/lockout","href":"/trade-api/account/get-account-lockout-status"},{"title":"Create or update account lockout","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/lockout","href":"/trade-api/account/create-or-update-account-lockout"},{"title":"Remove account lockout","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/account/lockout","href":"/trade-api/account/remove-account-lockout"},{"title":"Set or clear a trading account's display nickname.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/nickname","href":"/trade-api/account/set-or-clear-a-trading-accounts-display-nickname"},{"title":"Get all trading accounts for the authenticated user","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/accounts","href":"/trade-api/account/get-all-trading-accounts-for-the-authenticated-user"},{"title":"Create a personal API key session","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/api-keys/session","href":"/trade-api/account/create-a-personal-api-key-session"},{"title":"List the trader's API keys","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/partner/keys","href":"/trade-api/account/list-the-traders-api-keys"},{"title":"Generate a trader API key for third-party access","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/partner/keys","href":"/trade-api/account/generate-a-trader-api-key-for-third-party-access"},{"title":"Revoke one of the trader's API keys","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/partner/keys/{key_id}","href":"/trade-api/account/revoke-one-of-the-traders-api-keys"},{"title":"Create a partner session","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/partner/session","href":"/trade-api/account/create-a-partner-session"}]},{"group":"Risk","pages":[{"title":"Read the trader's personal risk settings for an account.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/account/risk-settings","href":"/trade-api/risk/read-the-traders-personal-risk-settings-for-an-account"},{"title":"Update personal risk settings.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/account/risk-settings","href":"/trade-api/risk/update-personal-risk-settings"}]},{"group":"Accounts","pages":[{"title":"Consistency status for one of the caller's accounts","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/accounts/{account_id}/consistency","href":"/trade-api/accounts/consistency-status-for-one-of-the-callers-accounts"}]},{"group":"Positions","pages":[{"title":"Close all open positions for an account","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/close-all","href":"/trade-api/positions/close-all-open-positions-for-an-account"},{"title":"Flatten account: close positions and cancel orders","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/flatten","href":"/trade-api/positions/flatten-account:-close-positions-and-cancel-orders"},{"title":"Add margin to an isolated perpetual position, or remove some.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/perp/isolated-margin","href":"/trade-api/positions/add-margin-to-an-isolated-perpetual-position-or-remove-some"},{"title":"Read the account's perpetual margin settings and position margins.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/perp/margin","href":"/trade-api/positions/read-the-accounts-perpetual-margin-settings-and-position-margins"},{"title":"Set a perpetual's margin mode and/or leverage.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/perp/margin","href":"/trade-api/positions/set-a-perpetuals-margin-mode-andor-leverage"},{"title":"Get perpetual mark prices","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/perp/mark","href":"/trade-api/positions/get-perpetual-mark-prices"},{"title":"Close a specific position by contract","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/close","href":"/trade-api/positions/close-a-specific-position-by-contract"},{"title":"Reverse a position (close + open opposite side)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/reverse","href":"/trade-api/positions/reverse-a-position-close-+-open-opposite-side"},{"title":"Set TP/SL at the position level for one (account, contract) pair.","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/position/set-bracket","href":"/trade-api/positions/set-tpsl-at-the-position-level-for-one-account-contract-pair"},{"title":"Get open positions with real-time P\u0026L","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/positions","href":"/trade-api/positions/get-open-positions-with-real-time-p\u0026l"}]},{"group":"Orders","pages":[{"title":"Get command processing status by id","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/commands/{command_id}","href":"/trade-api/orders/get-command-processing-status-by-id"},{"title":"Submit a market, limit, or stop order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order","href":"/trade-api/orders/submit-a-market-limit-or-stop-order"},{"title":"Attach TP/SL bracket to an existing order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/attach-bracket","href":"/trade-api/orders/attach-tpsl-bracket-to-an-existing-order"},{"title":"Cancel a pending order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/cancel","href":"/trade-api/orders/cancel-a-pending-order"},{"title":"Detach TP/SL bracket leg from an order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/detach-bracket","href":"/trade-api/orders/detach-tpsl-bracket-leg-from-an-order"},{"title":"Link a standalone order into the position's OCO group","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/link-oco","href":"/trade-api/orders/link-a-standalone-order-into-the-positions-oco-group"},{"title":"Modify price or quantity of a pending order","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/order/modify","href":"/trade-api/orders/modify-price-or-quantity-of-a-pending-order"},{"title":"Get all orders (filled, pending, cancelled)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders","href":"/trade-api/orders/get-all-orders-filled-pending-cancelled"},{"title":"Cancel all pending orders for an account (keeps live position protection)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/orders/cancel-all","href":"/trade-api/orders/cancel-all-pending-orders-for-an-account-keeps-live-position-protection"},{"title":"Get order history (append-only lifecycle events)","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders/history","href":"/trade-api/orders/get-order-history-append-only-lifecycle-events"},{"title":"Get active working orders","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/orders/pending","href":"/trade-api/orders/get-active-working-orders"},{"title":"Get trade execution history","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/trades","href":"/trade-api/orders/get-trade-execution-history"}]},{"group":"Copy Trading","pages":[{"title":"Get copy trading configuration","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/copy/config","href":"/trade-api/copy-trading/get-copy-trading-configuration"},{"title":"Create or update a copy trading config","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/config","href":"/trade-api/copy-trading/create-or-update-a-copy-trading-config"},{"title":"Delete a copy trading config","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/copy/config","href":"/trade-api/copy-trading/delete-a-copy-trading-config"},{"title":"Toggle copy config active state","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/config/active","href":"/trade-api/copy-trading/toggle-copy-config-active-state"},{"title":"Delete all copy trading configs","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json delete /trade/copy/config/all","href":"/trade-api/copy-trading/delete-all-copy-trading-configs"},{"title":"Bulk update copy trading group followers","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json post /trade/copy/group","href":"/trade-api/copy-trading/bulk-update-copy-trading-group-followers"},{"title":"Get copy trading status and positions","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/copy/status","href":"/trade-api/copy-trading/get-copy-trading-status-and-positions"}]},{"group":"WebSocket","pages":[{"title":"Real-time WebSocket for trading events","deprecated":null,"version":null,"openapi":"/api-reference/trade-openapi.json get /trade/ws","href":"/trade-api/websocket/real-time-websocket-for-trading-events"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Bulk revert accounts to a trading day or an instant - Hyperprop Platform API","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-BIYvYBgk.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js","Markdown-CEfymfIH.js","clsx-Dq9TQuNi.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-D2J8knkn.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BgZ2ThuU.js"]}