Set up our prop firm as a venue on trdrs using https://docs.trdrs.co/guides/run-a-venue and
https://docs.trdrs.co/guides/venue-accounts. Our accounts are issued on the paper book.
The owner installs the back office with `curl -fsSL https://trdrs.co/install/backoffice.sh | sh`, which creates the venue, and creates its Venue key on that back office's API keys page.
The key carries every Venue scope, so keep it on the server.
Set up the brand, the collar of the `paper` route every venue starts with, a group on that route, a published risk policy in each
currency we issue, and the instruments the group trades, in the order the guide gives.
A risk policy version states one thresholds term for the whole account and each product class under classes,
null where it doesn't offer the class. An account trades every class its policy offers, from one balance.
Issue each account with POST /api/venues/{venueId}/accounts, naming groupId, the trader (their trdrs sign-in
email in email, or our own stable id for them in trader), startingBalance as a whole number from 1000 to
10000000, currency, riskPolicy { policyId } with nothing else in it, and our own stable referenceId.
A trader named by email must already have signed in to the sandbox once.
Send an Idempotency-Key on every write except the brand; a write without one is refused as idempotency_key_required.
Reuse the exact key and body on a retry.
Store the returned accountId; every later call names the account by it.
Set daily loss and position limits on the group, evaluation goals on its stage, and overnight
holding through the group's holding policy before issuing accounts.
POST …/conditions/accounts/{accountId}/risk sets the venue's order and position limits, which are separate.
Halt, resume, reset, credit and debit through …/accounts/{accountId}/halt, /resume, /reset and /balance.
Keep customer identity and payment checks in our backend; a matching email is not proof of payment.
Do not reset existing accounts as part of setup.