Trading Accounts
A trading account is the core entity used for all trading activity on the Match-Trader platform. Each trading account belongs to exactly one user account and is identified by both a numeric login and a UUID. Trading accounts hold financial state (balance, equity, margin, etc.) and are assigned to a group which defines their trading conditions.
All trading accounts created via Broker API v2 are always created as retail accounts. It is not possible to create a non-retail account through this API.
Every trading account resource includes a version field - a numeric revision counter that is used for optimistic locking.
When multiple systems or services update the same trading account concurrently, there is a risk that one update silently overwrites another. The version field prevents this: each successful update increments the version, and any update request that carries an outdated version is rejected, forcing the caller to re-fetch the latest state and retry.
Typical flow:
- Fetch the trading account — note the current
versionvalue in the response. - Send your update request — include that
versionin the request body. - If the request is rejected due to a version mismatch, re-fetch the account to get the latest
versionand retry.
Omitting version from an update request will result in a validation error.
Endpoints
v1/user-accounts/{userAccountUuid}/trading-accounts
v1/trading-accounts?group=group&page=1&size=5&accessRightsFilter=accessRightsFilter
v1/user-accounts/{userAccountUuid}/trading-accounts?accessRightsFilter=FULL
v1/trading-accounts/{tradingAccountLogin}
v1/trading-accounts/uuid/{tradingAccountUuid}
v1/trading-accounts/{tradingAccountLogin}
v1/trading-accounts/{tradingAccountLogin}
v1/trading-accounts/bulk-delete