VOID Trader API ## Sections • [VOID Trader Manager API](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/void-trader-manager-api.md): REST API for the VOID Trader manager surface, the broker / prop-firm operator control plane. It gives your systems programmatic access to the same accounts, trading users, positions, orders, trades, cash ledger, instruments, and reporting an operator manages by hand in the console, so you can automate onboarding, funding, risk actions, and reconciliation. Every response uses a typed envelope: { ok: true, data } on success or { ok: false, error: { code, message } } on failure, and every state-changing call is written to the tenant audit log. Authenticate with a manager API key sent as a Bearer token ( Authorization: Bearer mk_... ); issue one from the API keys page in the manager console. All access is scoped to your organisation. • [Getting Started](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/getting-started.md): The VOID Trader platform exposes two APIs. Most integrations use both. Base URLs Title Description Title API Base URL Protocol Manager REST API https://api.voidtrading.io HTTPS / JSON Streaming API https://grpc.voidtrading.io gRPC-web REST paths already include the /api/v1 prefix, so the base URL is the origin only (no /api/v1 suffix). Authentication Both APIs are keyed and scoped to your organisation. You never see another tenant's data. REST: a manager API key, sent as a bearer token. Authorization: Bearer mk__An owner issues and revokes these on the API keys page in the manager console. Streaming: a partner key, sent in the authorization metadata header on each stream. authorization: Bearer psk__An owner issues and revokes these on the Partner keys page in the manager console. Scope is stream:read. See the Streaming API guide. Keys are shown once at creation and stored only as a hash. Store them in a secret manager. Response envelope (REST) Every REST response is a typed envelope: JSON // success { "ok": true, "data": { ... } } // failure { "ok": false, "error": { "code": "NOT_FOUND", "message": "..." } } Read error.code (not the prose message) for control flow. BAD_REQUEST responses may include a per-field "fields" map. Quick check CURL curl https://api.voidtrading.io/api/v1/tenant \ -H "Authorization: Bearer mk_your_key_here" A 200 with your tenant profile confirms the base URL and key are correct. Next steps Browse the REST sections (Accounts, Positions, Reports, ...). Read the Streaming API guide to subscribe to live positions, orders, equity, quotes, and ledger events. • [Accounts](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts.md): Platform trading accounts, the unit a user trades on. Create and provision them, move money (deposit, withdraw, transfer between a user’s accounts), set broker-policy fields (leverage, stop-out level, commission), and run lifecycle actions: disable or re-enable, archive, force-close every position, cancel every order, or mint an SSO login token. One account belongs to one user within one tenant. • [List platform accounts](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/list-platform-accounts.md): Returns platform accounts in the caller’s organisation, joined to the owning user’s email and name. Each account carries its lifecycle state ( readOnly / disabled / archived booleans plus readOnlyAt / disabledAt / archivedAt timestamps) so the state toggles can be verified. Optional filters narrow the result (all exact match, combined with AND): userId , email (owner, case-insensitive), accountNumber , kind , environment , accountType , archived . • [Create a platform account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/create-a-platform-account.md): Provisions a new account for an existing user (matched by userId or userEmail ). If userEmail resolves to a user who is not yet linked to this tenant, they’re auto-linked via user_tenants . An initial deposit transaction is written when initialBalance > 0 . Required roles: owner, risk, finance (owners always pass). • [Update a platform account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/update-a-platform-account.md): Patch broker-policy fields. Each call writes a manager_audit_log row of action account.update with a payload diff. Required roles: owner, risk (owners always pass). • [Archive a platform account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/archive-a-platform-account.md): Soft delete. Stamps archived_at ; the account is hidden from trader UI and write APIs but transaction history is preserved. Reversible via the unarchive endpoint. Required roles: owner, risk (owners always pass). • [Get account summary](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/get-account-summary.md): Mark-to-market snapshot: balance, equity, margin, free margin, margin level, today’s P&L. Equity uses live quotes via the broker adapter, call cost is O(open positions). Required roles: owner, risk, support, finance, read_only (owners always pass). • [Get the account equity curve](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/get-the-account-equity-curve.md): Daily balance + equity points derived from realised P&L + transactions. Each row is one UTC day. Required roles: owner, risk, support, finance, read_only (owners always pass). • [Credit a deposit to a single account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/credit-a-deposit-to-a-single-account.md): Atomic balance + equity update + account_transactions row of kind deposit . Use externalRef for reconciliation against the prop’s own ledger. For batches across many accounts use /api/v1/transactions/bulk . Required roles: owner, risk, finance (owners always pass). • [Debit a withdrawal from a single account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/debit-a-withdrawal-from-a-single-account.md): Atomic balance + equity update + account_transactions row of kind withdrawal . SQL-side balance guard prevents the account going negative even under concurrent close-and-debit traffic. For batches use /api/v1/transactions/bulk . Required roles: owner, risk, finance (owners always pass). • [Transfer balance between two accounts owned by the same user](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/transfer-balance-between-two-accounts-owned-by-the-same-user.md): Atomic debit + credit inside a single DB transaction. Both account_transactions rows carry the same audit-row id so a forensic query can pair them. Required roles: owner, risk, finance (owners always pass). • [Disable or re-enable a single account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/disable-or-re-enable-a-single-account.md): Body: { disabled: boolean, reason?: string } . Disable ( disabled: true ) stamps disabled_at and cascade-winds-down the account: force-closes every open position, cancels every pending order, and flips every active conditional/trigger order to cancelled . Each cascade row gets its own audit entry. Re-enable ( disabled: false ) clears disabled_at . It does NOT restore any of the positions or orders that were wound down, those settled into history and are gone. This is the per-account toggle. To disable every account a user owns in this tenant in one call, use /api/v1/users/{id}/disable instead. For permanent removal use /api/v1/accounts/{id}/archive . Required roles: owner, risk (owners always pass). • [Force-close every open position on the account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/force-close-every-open-position-on-the-account.md): Each closed position emits a position_closed execution event with reason operator_force_close . Returns per-position outcomes. Required roles: owner, risk (owners always pass). • [Cancel every pending + conditional order on the account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/cancel-every-pending-conditional-order-on-the-account.md): Each cancellation emits a pending_cancelled execution event with reason operator_cancel . Required roles: owner, risk (owners always pass). • [Mint an SSO token + redirect URL for the account owner](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/mint-an-sso-token-redirect-url-for-the-account-owner.md): Returns a single-use token + a redirectUrl pointing to <trader-app>/sso/<token> . The token is single-use, 5-minute TTL, and consumed atomically, a leaked link can’t be replayed. Redirect the user to redirectUrl and they’ll land signed-in on the trader. Required roles: owner, risk, support (owners always pass). • [Get a platform account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/get-a-platform-account.md): Fetch a single account by id, scoped to the caller’s organisation. Same shape as the list, including lifecycle state ( readOnly / disabled / archived… • [Place an order on an account (server-to-server)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/place-an-order-on-an-account-server-to-server.md): Opens a market, limit, or stop order on an account the caller’s org owns, with no interactive trader session — the server-to-server equivalent of the… • [Set an account's execution venue](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/set-an-account-s-execution-venue.md): Routes an account’s order execution to VOID’s simulated fills ( sim , the default) or a live MT5 account ( mt5 ). mt5 requires an enabled MT5 target… • [Toggle an account's view-only state](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/toggle-an-account-s-view-only-state.md): Sets or clears an account’s view-only (read-only) state. While view-only, the owner can see the account but can’t open or modify trades. Enabling… • [Resend an account's onboarding email](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/accounts/resend-an-account-s-onboarding-email.md): Re-sends the onboarding email for an account the caller’s org owns. kind reports which email went out: activation (the owner still needs to verify… • [Trading users](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users.md): End users of the trader app. List them, create a new user or link an existing one (users can span multiple tenants) into your organisation, disable every account they own here, send a password-reset link, and read lifetime + live aggregate stats. Actions are tenant-scoped: you never touch a user’s access in another organisation. • [List trading users](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/list-trading-users.md): Lists every trading user with access to the caller’s organisation via the user_tenants access matrix. Pass email to look a single user up by address (exact match, case-insensitive). • [Create / link a trading user to this tenant](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/create-link-a-trading-user-to-this-tenant.md): If a user with the given email already exists in any tenant, the call is idempotent, the existing user is linked to this tenant via user_tenants . Otherwise a brand-new user row is created. The user is sent no email; provision their password via the send-password-reset endpoint to deliver them a login link. Required roles: owner, risk (owners always pass). • [Get a single trading user](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/get-a-single-trading-user.md) • [Disable every account this user owns in this tenant](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/disable-every-account-this-user-owns-in-this-tenant.md): Tenant-scoped: stamps disabled_at on every platform_accounts row this user owns in the caller’s organisation. Does NOT lock the user globally (users span tenants); other organisations they belong to are untouched. Required roles: owner, risk (owners always pass). • [Get lifetime + live aggregate stats for a user](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/get-lifetime-live-aggregate-stats-for-a-user.md): Sums + live counts across every account this user owns in the caller’s tenant. Includes balance, MTM equity, unrealised P&L, lifetime cash flow by transaction kind, lifetime trade stats (count + win rate + realised P&L), and live open-position / pending-order counts. Tenant-scoped, props see only the rows they own. Required roles: owner, risk, support, finance, read_only (owners always pass). • [Mint a password-reset token + email it to the user](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trading-users/mint-a-password-reset-token-email-it-to-the-user.md): Tokens are hashed at rest (sha256). The plaintext token only ever appears in the emailed link. 60-minute TTL, single-use. Required roles: owner, risk (owners always pass). • [Positions](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions.md): Open positions with live mark-to-market P&L. Read them filtered by account, user, or symbol; edit stop-loss / take-profit; and force-close one position or many at once. Force-closes emit a position_closed execution event you can receive over webhooks or the streaming API. • [Force-close an open position](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/force-close-an-open-position.md): Manager-initiated close. Bypasses the market-hours gate (operators force-close for risk reasons). Emits a position_closed execution event with reason operator_force_close , webhook subscribers to that event are notified. Required roles: owner, risk (owners always pass). • [Update SL / TP on an open position](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/update-sl-tp-on-an-open-position.md): Pass null for either field to clear it. At least one of stopLoss , takeProfit must be present. Required roles: owner, risk (owners always pass). • [List open positions](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/list-open-positions.md): Filterable by accountId , userId , and symbol . Returns unrealised P&L computed off live quotes. • [Get a single open position](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/get-a-single-open-position.md) • [Force-close many positions in one call](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/force-close-many-positions-in-one-call.md): Pass ids (specific positions) or accountIds + optional symbol . Closes are processed with capped concurrency (8). Each emits a position_closed event with reason operator_force_close . Required roles: owner, risk (owners always pass). • [Force-settle a position at a given price](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/positions/force-settle-a-position-at-a-given-price.md): Settles a position’s P&L at an operator-supplied closePrice and closes it — a reconciliation tool for a position the normal close path can’t settle… • [Pending orders](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/pending-orders.md): Limit and stop orders waiting to fill. Read them and cancel individually or in bulk. Each cancellation emits a pending_cancelled execution event. • [Cancel a pending limit/stop order](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/pending-orders/cancel-a-pending-limit-stop-order.md): Emits a pending_cancelled execution event with reason operator_cancel . Webhook subscribers to that event are notified. Required roles: owner, risk (owners always pass). • [List open pending orders](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/pending-orders/list-open-pending-orders.md) • [Cancel many pending orders in one call](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/pending-orders/cancel-many-pending-orders-in-one-call.md): Pass ids (specific orders) or accountIds (cancel all pendings on these accounts). Capped-concurrency. Required roles: owner, risk (owners always pass). • [Conditional orders](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/conditional-orders.md): Trigger-based (fire-at-price) orders. Read and cancel. Server-side evaluators fire the trigger without the trader’s tab being open. • [Cancel a trigger / conditional order](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/conditional-orders/cancel-a-trigger-conditional-order.md): Required roles: owner, risk (owners always pass). • [List open trigger / conditional orders](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/conditional-orders/list-open-trigger-conditional-orders.md) • [Audit log](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/audit-log.md): Append-only compliance trail. Every state-mutating manager action writes one row capturing who did what, when, and the before/after payload. Read the trail (newest first) or fetch a single entry. • [Read the audit trail](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/audit-log/read-the-audit-trail.md): Returns the most recent rows from manager_audit_log scoped to the caller’s organisation, newest first. • [Get a single audit entry](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/audit-log/get-a-single-audit-entry.md) • [Audit log as CSV (forensic export)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/audit-log/audit-log-as-csv-forensic-export.md): Returns text/csv rather than the standard JSON envelope. Use for compliance archival; same filters as /api/v1/audit . • [Trades](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trades.md): Closed-trade history, the system of record for settled activity, with realised P&L. Cursor-paginated and filterable by account, user, symbol, and date range. • [List closed trades](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trades/list-closed-trades.md): Trade history. Cursor on closed_at descending. • [Get a single closed trade](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/trades/get-a-single-closed-trade.md) • [Transactions](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/transactions.md): The cash ledger: deposits, withdrawals, transfers, manual credits and debits, fees, and payouts. Write single or bulk entries; each one updates balance and equity atomically inside a transaction and is audit-logged. Negative-going entries are refused if they would drive equity below zero. • [Get a single transaction](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/transactions/get-a-single-transaction.md) • [Write many manual credit/debit transactions in one call](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/transactions/write-many-manual-credit-debit-transactions-in-one-call.md): Useful for bulk payouts or evaluation-fee charges. Each entry is applied independently, partial success is surfaced via the outcomes array. Required roles: owner, risk, finance (owners always pass). • [List transactions in this organisation](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/transactions/list-transactions-in-this-organisation.md): Newest-first list of every account-transaction in the caller’s org. Optional accountId narrows to a single account. Defaults to 200 rows. • [Write a single manual transaction](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/transactions/write-a-single-manual-transaction.md): Owner / risk / finance. Atomic balance + equity update + account_transactions row. Negative-going kinds are refused if they would drive equity below zero. Required roles: owner, risk, finance (owners always pass). • [Instruments](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/instruments.md): The tenant’s tradable instrument set, fully resolved (org enablement plus group overrides applied). Read the resolved view, toggle a symbol on or off for the tenant, and set per-org or per-group commercial overrides (spread markup, leverage, commission, contract size, swaps). • [List instruments visible to the caller's tenant](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/instruments/list-instruments-visible-to-the-caller-s-tenant.md): Returns the fully-resolved view, org enablement + group overrides applied. Useful for prop firms that need to confirm which symbols their tenant can trade. • [Enable or disable a symbol for this tenant](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/instruments/enable-or-disable-a-symbol-for-this-tenant.md): Upserts the org-level row in org_instruments (no group scope). Disabled symbols are hidden from all traders in this org regardless of group. Symbols without a platform-curated trading schedule can’t be enabled, that’s a platform-admin precondition. Required roles: owner, risk (owners always pass). • [Set per-org commercial overrides for a symbol](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/instruments/set-per-org-commercial-overrides-for-a-symbol.md): Same field shape as the group-level overrides, null clears that field (cascade falls through to the catalog default). The org-level row is what every group inherits unless the group has its own override. Required roles: owner, risk (owners always pass). • [Reports](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports.md): Aggregate analytics for the tenant: per-account, per-symbol, and per-group trade stats; daily financial activity; and daily/monthly active-account counts. JSON here; several reports also have CSV variants for spreadsheet export. • [Aggregate trade stats per account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/aggregate-trade-stats-per-account.md): JSON variant of the CSV export. Date-range filterable. Required roles: owner, risk, finance, read_only (owners always pass). • [Aggregate trade stats per instrument symbol](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/aggregate-trade-stats-per-instrument-symbol.md): Required roles: owner, risk, finance, read_only (owners always pass). • [Aggregate trade stats per account group](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/aggregate-trade-stats-per-account-group.md): Required roles: owner, risk, finance, read_only (owners always pass). • [Daily-bucketed financial activity (trades, P&L, deposits, withdrawals)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/daily-bucketed-financial-activity-trades-p-and-l-deposits-withdrawals.md): Per-UTC-day aggregate across the tenant, trades closed, net P&L, gross volume, deposits, withdrawals. NOT a unique-account count; for daily/monthly active-account counts use /api/v1/reports/active-accounts . Required roles: owner, risk, finance, read_only (owners always pass). • [Distinct active accounts by day (DAU) or month (MAU)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/distinct-active-accounts-by-day-dau-or-month-mau.md): Counts of unique accounts that closed at least one trade inside each bucket. Pass ?period=daily (default) for DAU-style buckets keyed YYYY-MM-DD , or ?period=monthly for MAU keyed YYYY-MM . Default windows: 30 days for daily, 365 days for monthly. Required roles: owner, risk, finance, read_only (owners always pass). • [Per-account aggregate as CSV](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/per-account-aggregate-as-csv.md): Required roles: owner, risk, finance, read_only (owners always pass). • [Per-symbol aggregate as CSV](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/per-symbol-aggregate-as-csv.md): Required roles: owner, risk, finance, read_only (owners always pass). • [Per-group aggregate as CSV](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/reports/per-group-aggregate-as-csv.md): Required roles: owner, risk, finance, read_only (owners always pass). • [Tenant](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/tenant.md): Your organisation’s context: profile, branding, and usage counts (accounts, users, keys). Read your tenant, or update its display name and branding. • [Get the caller's tenant profile](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/tenant/get-the-caller-s-tenant-profile.md): Tenant name, slug, branding bag. Use this from a prop’s internal admin tooling to discover the caller’s org context. Required roles: owner, risk, support, finance, read_only (owners always pass). • [Update the caller's tenant profile](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/tenant/update-the-caller-s-tenant-profile.md): Owner-only. Updates the display name and/or branding bag. Slug is reserved for platform-admin operations and isn’t editable here. Required roles: owner (owners always pass). • [Get the caller's tenant usage counts](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/tenant/get-the-caller-s-tenant-usage-counts.md): Counts of platform accounts, trading users, and API keys in this org. Useful for prop firms tracking against their internal seat limits. Required roles: owner, risk, support, finance, read_only (owners always pass). • [Account groups](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups.md): Operator-named buckets carrying shared defaults and trading caps: leverage, commission, stop-out level, and position / order / lot limits. Accounts inherit their group’s settings unless overridden per account, and a group can override instrument commercials per symbol. • [List account groups](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/list-account-groups.md): Every account group in the caller’s organisation, each with its active-member count (non-disabled accounts assigned to the group). Sorted by name. • [Create an account group](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/create-an-account-group.md): Operator-named bucket carrying shared defaults (leverage, commission, stop-out). Accounts inherit these unless overridden per-account. id is operator-supplied (lowercase alphanumeric / - / _ , 3–50 chars, unique per org) so audit + report rows stay readable; omit to auto-generate. accountType scopes the group to one product ( fx-cfd / futures / crypto-perp ): it must be a product the tenant offers, it is immutable after creation, and only accounts of the same type can join. It also drives the group’s instrument set and settings — crypto-perp groups charge bps-of-notional + funding (not a flat per-lot commission), so defaultCommissionPerLot is forced to 0 for them. Required roles: owner, risk (owners always pass). • [Get a single account group](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/get-a-single-account-group.md) • [Update an account group's defaults / trading caps](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/update-an-account-group-s-defaults-trading-caps.md): All fields optional. Sending an explicit null on maxOpenPositions / maxOpenOrders / maxLotsPerOrder / maxTotalLots clears that cap to unlimited; omitting the key leaves the existing value in place. instrumentMode toggles between inheriting the org-level instrument set ( inherit ) and per-group overrides ( custom ). Required roles: owner, risk (owners always pass). • [Delete an account group](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/delete-an-account-group.md): Refuses if any account still references the group, detach or move members first. Required roles: owner, risk (owners always pass). • [Set per-group commercial overrides for a symbol](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/set-per-group-commercial-overrides-for-a-symbol.md): Upserts the (org, group, symbol) row in org_instruments . Each field is independently nullable: null clears the group-level override (cascade falls through group → org → catalog default); omitting a key leaves the existing value untouched. Fans a catalog_changed SSE to every group member so their resolved instrument set refetches. Required roles: owner, risk (owners always pass). • [Drop a per-group override for a symbol](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/account-groups/drop-a-per-group-override-for-a-symbol.md): Removes the (org, group, symbol) row entirely. The cascade then resolves through org overrides → catalog default. Required roles: owner, risk (owners always pass). • [Notes](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/notes.md): Free-text operator annotations attached to a user or platform account. Create and read them; handy for support context and shift handoffs. • [List operator notes on a user or account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/notes/list-operator-notes-on-a-user-or-account.md): Pass targetType ( user or platform_account ) and targetId . Returns chronological notes scoped to the caller’s org. Notes are visible to every signed-in manager in the org; only the author can edit / delete. • [Write a note on a user or account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/notes/write-a-note-on-a-user-or-account.md) • [Edit a note (author-only)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/notes/edit-a-note-author-only.md) • [Delete a note (author-only)](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/notes/delete-a-note-author-only.md) • [Payouts](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts.md): Cash-out request workflow: submit, then approve or reject. Debit-on-request: balance and equity drop the moment a request is submitted, and a rejection writes a reversing refund. Read requests and resolve them. • [Submit a payout request against an account](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts/submit-a-payout-request-against-an-account.md): Debit-on-request model: writes a payout -kind transaction + decrements balance + equity immediately, then creates a pending payout-request row that back-references the debit. Approval finalises (no further ledger change); rejection writes a reversing refund transaction restoring the pre-request state. Margin implication. Because balance + equity drop on request, the trader’s margin headroom shrinks. Request from a flat / well-buffered account. Race safety. Insufficient balance is enforced via a SQL-side balance >= amount guard inside the UPDATE, concurrent close-and-debit cannot push the account negative. Required roles: owner, risk, finance (owners always pass). • [List payout requests in this organisation](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts/list-payout-requests-in-this-organisation.md): Cursor on createdAt descending. Optional status filter (pending / approved / rejected). • [Get a single payout request](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts/get-a-single-payout-request.md) • [Approve a pending payout request](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts/approve-a-pending-payout-request.md): Flips the row to approved + stamps resolver attribution. No further ledger movement , the debit was settled at request time, so approval is the completion event. Only pending requests are approvable; already-resolved rows return PRECONDITION_FAILED. Required roles: owner, risk, finance (owners always pass). • [Reject a pending payout request](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/payouts/reject-a-pending-payout-request.md): Writes a refund -kind transaction for the same amount, restoring balance + equity to their pre-request state. Flips the row to rejected + stamps resolver attribution. Only pending requests are rejectable; an already-approved request can’t be undone here (write a manual reversal transaction instead). Required roles: owner, risk, finance (owners always pass). • [Streaming API](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/streaming-api.md): Real-time server-streaming feeds for external integrators (prop back office, PAMM/MAM, risk and reporting, bridges). A client opens one subscribe stream per feed, then receives a continuous flow of events until it disconnects. This document is the integration and operations layer on top of the streaming contract; the full .proto is in the appendix . At a glance Title Description Endpoint https://grpc.voidtrading.io Protocol gRPC-web (not native gRPC) over HTTPS Package void.broker.v1 Auth partner key in the authorization header ( Bearer <key> ) Scope stream:read Shape one subscribe request per stream, then server-streamed events Keep-alive a heartbeat = true event roughly every 30s while idle Why gRPC-web, not native gRPC The gateway itself speaks native gRPC (HTTP/2), but it is not exposed directly. So the public endpoint is an Envoy proxy that speaks gRPC-web to the outside world and translates to native gRPC on the private network to the gateway. What this means for you: Use a gRPC-web client: @connectrpc/connect-web , the reference grpc-web JS library, or any Connect / gRPC-web-capable stack. A Connect client configured with a gRPC-web transport works from both Node and the browser. A native gRPC client (for example @grpc/grpc-js pointed straight at the endpoint) will not work through the public proxy. Native gRPC only works if you are on the private network alongside the gateway. Server streaming arrives as chunked responses, which the HTTP edge forwards fine. Long-lived streams have no server-side idle timeout. Public TLS terminates at the platform edge, so you always connect over https:// . There is no separate certificate to install. Authentication Every stream must carry a partner key in the authorization metadata header: authorization: Bearer psk_<prefix>_<secret> The gateway hashes the presented key and validates it (scope-checked and revocable; only the hash is ever stored). A missing, unknown, revoked, or out-of-scope key closes the stream with UNAUTHENTICATED . Everything you stream is automatically scoped to the organisation the key belongs to; there is no cross-tenant access. Key validity is cached at the gateway for up to 60 seconds, so issuing or revoking a key takes effect on the next connect within that window. Getting a key Your VOID operator issues partner keys from the Partner keys page in the manager console, and hands you the plaintext value. The same page revokes them, and every issue and revoke is recorded in their audit trail. The plaintext is shown only once at creation and cannot be recovered, so store it in your secret manager as soon as you receive it. If it is lost or you suspect it is compromised, ask your operator to revoke it and issue a replacement. The key format is psk_<8 hex>_<48 hex> . The psk_<prefix> portion is non-secret and stays visible to your operator, so quote it if you need them to identify a specific key. The secret half is never recoverable. The feeds All streams live in package void.broker.v1 . Each RPC takes one subscribe request and returns a server stream. Every stream message is a oneof of a data event OR heartbeat = true . All nine are live. Title Description Title Description Service RPC Streams Cadence OpenPositionsService GetOpenPositionsStream open positions (opened / modified / closed) per event OrdersService GetOrdersUpdateStream pending orders (placed / filled / cancelled) per event TradingEventsService GetTradingEventsStream alerts (stop-out, daily-loss, SL/TP hits) per event EquityService GetEquityStream live account equity snapshots up to 1/sec per account, only while it has open positions QuotationsService GetQuotationsWithMarkupStream live bid/ask with the org's markup applied up to 5/sec per symbol LedgerService GetLedgersStream cash movements (deposits, withdrawals, payouts, fees) per event SymbolsService GetSymbolsChangedStream "catalog changed, re-pull via REST" signal per change (coarse, see below) GroupsService GetGroupChangesStream "catalog changed, re-pull via REST" signal per change (coarse, see below) AccountInfoService GetTradingAccountInfoChangedStream account lifecycle changes (created / updated / disabled / enabled / archived) per event Two behaviours worth designing around: Equity is a sampled snapshot, not a per-tick feed. It flows only for accounts that currently hold open positions (the set whose equity moves between discrete events), coalesced to at most one snapshot per account per second. A flat account emits nothing; derive its equity from its balance via the REST API. Symbols and Groups are the same coarse signal. Both are driven by one catalog-change notification, so a symbol change and a group change each fire both streams, and the id field is always empty. Read either as "something in the catalog changed, re-pull it", not as a precise per-symbol or per-group diff. Subscribing to one of the two is enough. Subscribe filters: Most feeds take a SubscribeRequest { repeated string logins } . Empty logins = every account under your org; otherwise only those platform account ids. Quotations takes QuotesSubscribeRequest { repeated string symbols } . Empty symbols = every symbol enabled for your org. Prices already have your org's per-symbol spread markup applied. See the appendix for the complete .proto with the full field-level shape of every message. Client example (Node, Connect + gRPC-web) JSX import { createGrpcWebTransport } from "@connectrpc/connect-web" import { createClient } from "@connectrpc/connect" // Generate these from the .proto in the appendix below, // with buf / protoc-gen-connect-es. import { OpenPositionsService } from "./gen/void_broker_v1_connect" const PARTNER_KEY = process.env.VOID_PARTNER_KEY! // psk_... const transport = createGrpcWebTransport({ baseUrl: "https://grpc.voidtrading.io", }) const client = createClient(OpenPositionsService, transport) async function main() { const stream = client.getOpenPositionsStream( { logins: [] }, // empty = all accounts under the org { headers: { authorization: `Bearer ${PARTNER_KEY}` } }, ) for await (const event of stream) { if (event.payload.case === "heartbeat") continue // idle keep-alive const position = event.payload.value console.log(position.login, position.symbol, position.profit) } } main().catch((err) => { // UNAUTHENTICATED here means a missing / unknown / revoked / out-of- // scope key. Reconnect with backoff on transport-level drops. console.error("stream closed:", err) }) The same pattern applies to every service: create a client for the service, call its stream method with the subscribe request and the authorization header, and iterate. Skip messages whose payload case is heartbeat . Operational notes Heartbeats. Expect a heartbeat = true roughly every 30s on an otherwise idle stream. It keeps the connection warm through proxies and load balancers; treat it as a liveness signal, not data. Reconnects. Streams are long-lived but not guaranteed permanent (deploys, edge restarts). Reconnect with exponential backoff on any transport-level close. On reconnect you get the current live flow, not a replay; use the REST API for point-in-time snapshots. Re-sync signals. The Symbols , Groups , and AccountInfo streams are low-frequency "something changed, re-pull via REST" notifications so you can keep local caches fresh without polling. An empty id (for symbols/groups) means "re-pull everything". Scoping. Every feed is org-scoped by the partner key. You never see another tenant's data, and the logins / symbols filters can only narrow within your own org. Related contracts Streaming contract: the complete .proto is inlined in the appendix below. REST APIs for snapshots and mutations live behind the manager OpenAPI spec (the REST reference in this portal). Appendix: the full .proto contract This is the complete streaming contract. To build a client, save it as void_broker_v1.proto and generate stubs with your gRPC-web toolchain (for example buf generate , or protoc with protoc-gen-connect-es / protoc-gen-grpc-web ). It is self-contained: proto3, no imports. Protocol Buffers syntax = "proto3"; package void.broker.v1; // VOID Trader broker streaming API, v1. // // Server-streaming gRPC feeds for external integrators (prop back // office, PAMM/MAM, risk/reporting, bridges). // A client sends one subscribe request carrying filters, then receives a // continuous stream of messages. Each stream message is // a `oneof` of a data event OR a periodic `heartbeat = true` emitted // when the stream is idle (~30s) so peers and load balancers keep the // connection warm. // // All nine services below are implemented and served by the gateway. // Eight are sourced from the internal execution-event bus; Quotations is // sourced from the market-data tick bus with the org's spread markup // applied. // // Note on SymbolsService / GroupsService: both ride the same coarse // catalog-change signal, so either kind of change fires BOTH streams and // the id is always empty, meaning "re-pull everything". Treat them as a // single "catalog changed, re-sync" notification rather than a precise // per-symbol or per-group diff. message SubscribeRequest { // Optional filter: stream only these account logins (platform account // ids). Empty = every account under the authenticated partner's org. repeated string logins = 1; } // ─── Open positions ────────────────────────────────────────────────── enum PositionStatus { POSITION_STATUS_UNSPECIFIED = 0; OPENED = 1; MODIFIED = 2; CLOSED = 3; } message OpenPosition { string position_id = 1; // user-visible position id string login = 2; // platform account id string symbol = 3; string side = 4; // BUY | SELL double volume = 5; // lots double open_price = 6; double current_price = 7; optional double stop_loss = 8; optional double take_profit = 9; double swap = 10; double commission = 11; // fees booked on the position double profit = 12; // floating P&L (net P&L once CLOSED) double margin = 13; int64 open_time = 14; // epoch ms PositionStatus status = 15; optional double close_price = 16; // set on CLOSED } message OpenPositionEvent { oneof payload { OpenPosition position = 1; bool heartbeat = 2; } } // ─── Pending orders ────────────────────────────────────────────────── enum OrderStatus { ORDER_STATUS_UNSPECIFIED = 0; PLACED = 1; FILLED = 2; CANCELLED = 3; } message Order { string order_id = 1; string login = 2; string symbol = 3; string side = 4; // BUY | SELL double volume = 5; string pending_type = 6; // LIMIT | STOP double activation_price = 7; // trigger price optional double stop_loss = 8; optional double take_profit = 9; OrderStatus status = 10; int64 event_time = 11; // epoch ms } message OrderEvent { oneof payload { Order order = 1; bool heartbeat = 2; } } // ─── Trading events (alerts) ───────────────────────────────────────── enum TradingEventType { TRADING_EVENT_TYPE_UNSPECIFIED = 0; MARGIN_STOP_OUT = 1; DAILY_LOSS_LIMIT = 2; STOP_LOSS_HIT = 3; TAKE_PROFIT_HIT = 4; } message TradingEvent { TradingEventType type = 1; string login = 2; string symbol = 3; string position_id = 4; double price = 5; // close price the event fired at double net_pnl = 6; int64 timestamp = 7; // epoch ms } message TradingEventMessage { oneof payload { TradingEvent event = 1; bool heartbeat = 2; } } // ─── Account equity (live snapshots) ───────────────────────────────── // Coalesced snapshot of an account's live equity. Produced by the risk // evaluator on its per-tick stop-out path (throttled ~1/sec/account), // so it only flows for accounts with open positions, the exact set // whose equity moves between discrete events. message AccountEquity { string login = 1; // platform account id double equity = 2; // balance + open P&L double balance = 3; double margin = 4; double free_margin = 5; double margin_level = 6; // (equity / margin) * 100; 0 when flat double open_pnl = 7; // mark-to-market unrealised P&L } message AccountEquityEvent { oneof payload { AccountEquity equity = 1; bool heartbeat = 2; } } // ─── Quotations (live prices, with the org's markup applied) ───────── // Real-time bid/ask for the partner's org, sourced from the Redis tick // bus (one upstream provider connection for the whole platform) with the // org's per-symbol spread markup applied (org_instruments.spread_type / // spread_markup_pips). Throttled per symbol per subscription. message QuotesSubscribeRequest { // Symbols to stream. Empty = every symbol enabled for the org. repeated string symbols = 1; } message Quotation { string symbol = 1; double bid = 2; // markup applied double ask = 3; // markup applied double spread = 4; int64 timestamp = 5; // epoch ms optional double day_high = 6; optional double day_low = 7; } message QuotationEvent { oneof payload { Quotation quotation = 1; bool heartbeat = 2; } } // ─── Ledger (cash movements) ───────────────────────────────────────── // Deposits, withdrawals, manual adjustments, payouts, and fees as they // commit to account_transactions. Amount is always positive; the sign is // implied by `kind`. message LedgerEntry { string id = 1; string login = 2; // platform account id string kind = 3; // deposit | withdrawal | payout | manual_credit | ... double amount = 4; // always positive string note = 5; int64 created_at = 6; // epoch ms } message LedgerEntryEvent { oneof payload { LedgerEntry entry = 1; bool heartbeat = 2; } } // ─── Config-change notifications (re-sync signals) ─────────────────── // Low-frequency "something changed, re-pull via REST" signals so an // integrator can keep local caches in sync. Symbol + group changes ride // the platform's existing catalog_changed signal (coarse, an empty id // means "re-pull all"); account changes carry the specific account + // lifecycle transition. message SymbolChange { string symbol = 1; // empty = re-pull the whole symbol catalog int64 changed_at = 2; } message SymbolChangeEvent { oneof payload { SymbolChange change = 1; bool heartbeat = 2; } } message GroupChange { string group_id = 1; // empty = re-pull all groups int64 changed_at = 2; } message GroupChangeEvent { oneof payload { GroupChange change = 1; bool heartbeat = 2; } } message AccountInfoChange { string login = 1; // platform account id string change = 2; // created | updated | disabled | enabled | archived int64 changed_at = 3; } message AccountInfoChangeEvent { oneof payload { AccountInfoChange change = 1; bool heartbeat = 2; } } // ─── Services ──────────────────────────────────────────────────────── service OpenPositionsService { rpc GetOpenPositionsStream(SubscribeRequest) returns (stream OpenPositionEvent); } service OrdersService { rpc GetOrdersUpdateStream(SubscribeRequest) returns (stream OrderEvent); } service TradingEventsService { rpc GetTradingEventsStream(SubscribeRequest) returns (stream TradingEventMessage); } service EquityService { rpc GetEquityStream(SubscribeRequest) returns (stream AccountEquityEvent); } service QuotationsService { rpc GetQuotationsWithMarkupStream(QuotesSubscribeRequest) returns (stream QuotationEvent); } service LedgerService { rpc GetLedgersStream(SubscribeRequest) returns (stream LedgerEntryEvent); } service SymbolsService { rpc GetSymbolsChangedStream(SubscribeRequest) returns (stream SymbolChangeEvent); } service GroupsService { rpc GetGroupChangesStream(SubscribeRequest) returns (stream GroupChangeEvent); } service AccountInfoService { rpc GetTradingAccountInfoChangedStream(SubscribeRequest) returns (stream AccountInfoChangeEvent); } • [Export users as CSV](https://app.theneo.io/122226e3-1762-4f11-8603-7c5ca829e964/void-trader-api/users/export-users-as-csv.md): Returns text/csv rather than the JSON envelope: every user in the caller’s org with profile + security columns (id, email, name, first/last name,…