> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trdrs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Venue settings

> Change your venue's money, team, billing, keys and Advanced settings in the back office, and see who may change each one.

Change how your venue runs from the back office's Settings: who is on your team, how your company
money moves and who approves it, how you pay trdrs, which logins your wallets use, your Venue keys,
your Advanced switches, your own accounts at exchanges, and, for the venue that runs the trdrs app,
the Connect tiles and Demos its traders get. Each section below says what a setting does, who may
change it, what happens when it changes, and the routes the back office calls for it.

Use this page when you run a venue in the [back office](https://docs.trdrs.co/guides/back-office.md), or when you build your
own back office over the same routes. By the end you know which team role each change needs and
what each switch does before you touch it.

Your team has three roles. An **owner** manages the team and keys and approves money moves, an **editor** changes what
your venue runs, and a **reader** only reads. "Any member" below means any of the three.

> [!NOTE]
>
> The routes on this page are called from a signed-in back office session, the team member's own
> verified email sign-in, and every change is sent from the back office's trusted origin. A Venue key
> can't call them. A few reads also have a Venue key form for your backend, each with `venue:read`:
> `GET /api/venues/{venueId}/money-moves`, `GET /api/venues/{venueId}/money-moves/{moveId}`,
> `GET /api/venues/{venueId}/money-settings`, `GET /api/venues/{venueId}/payouts-pause` and
> `GET /api/venues/{venueId}/company-wallet/platform`. See [Venue keys](https://docs.trdrs.co/guides/venue-keys.md) for what a
> key reaches.

Every venue route below starts `/api/back-office/venues/{venueId}`, shortened in the tables to the
part after it.

## Control your company money

Money moves send your company wallet's USDC, and nothing is sent without an owner's Approve. Every
move is written down first, with who asked, who approved and the chain's transaction hash. Moves run
only in the sandbox until trdrs turns them on in production, and only while your venue's money rails
are on (see [Advanced](#change-the-advanced-settings)). The [back office guide](https://docs.trdrs.co/guides/back-office.md#money-moves)
walks through paying a trader and the day's moves.

* **Moves and their approval.** Any member reads the list of moves, oldest first, up to 500 at a time,
  filtered by state or by UTC day. An owner proposes a move: USDC from the company wallet to a saved
  place on your funding chain, to your company Hyperliquid account (5 USDC at least), or out of the
  company Hyperliquid account back to the company wallet, which Hyperliquid pays out less its 1 USDC
  fee. An owner approves it, and the owner who proposed a move can approve it too. On Approve the
  engine checks the stop, the place, the network, the company wallet's USDC and the daily cap, counts
  the move against today's cap and sends it. Approving a move again that wasn't sent yet sends it
  under the same request, never twice. An owner can cancel a move nobody approved.
* **The day's moves.** An owner proposes the day's moves: the engine reads each account that has a
  target and proposes a sweep of what is above it or a top-up of what is below it, and a by-hand line
  for any account it can't send for. This replaces the day's proposals nobody approved.
* **Approve all.** An owner approves every proposed move the engine sends, oldest first, each checked
  against the cap as it is approved. A move refused stays proposed, with why. By-hand lines are left
  for you to approve one at a time.
* **The daily cap and targets.** The engine sends at most 100,000 USDC a day from your company money,
  counted in UTC days by when each move was approved, until an owner sets another cap in whole USDC.
  The same change sets each account's target: `company_hyperliquid` or a hedge account's ID, and a
  null target removes one. Any member reads the cap, the stop, the targets, and today's total and
  what's left.
* **Stop and resume.** An owner or an editor stops every move: none is proposed by hand, approved or
  sent. Payouts and the day's proposals are still written down, to wait. Only an owner resumes.
* **Payouts pause.** An owner pauses payouts with a reason of 1 to 300 characters, which your site
  reads. While it is on, new payout requests, their approvals and every payout recorded on an account
  are refused as `payouts_paused`. A payout quote still answers. An owner lifts it the same way, and
  any member reads it.

> [!WARNING]
>
> Approving a move sends real USDC once money moves run in your environment. Check the place and the
> amount before you approve, and use Stop if anything looks wrong: an editor can stop, and only an
> owner can resume.

### Routes

| Step | Route |
| - | - |
| List and propose money moves | `GET` and `POST /money-moves` |
| Read, approve or cancel one move | `GET /money-moves/{moveId}`, `POST /money-moves/{moveId}/approve` and `/cancel` |
| Propose the day's moves | `POST /money-moves/daily` |
| Approve all | `POST /money-moves/approve-all` |
| Read and set the cap and targets | `GET` and `PUT /money-settings` |
| Stop and resume money moves | `POST /money-settings/stop` and `/resume` |
| Read and set the payouts pause | `GET` and `PUT /payouts-pause` |

## Manage your team

Your team belongs to your organization, so one team runs every venue the organization holds. Each
person signs in with their own email, and the engine checks their current role on every request.

Any member lists the team, active and removed, and the invitations still pending. An owner invites
a person by the exact email they sign in with, or changes a pending invitation's role. Someone who
already has a verified sign-in for that email joins at once; anyone else gets an invitation by email
and no access, and joins the first time they sign in with that email verified. An owner changes a
member's role and removes members. A removed member loses access to everything the organization runs
at once, and stays listed as inactive. Each change sends the member's or invitation's current
`version` as `expectedVersion`, so a teammate's change is never overwritten.

Changing an owner matters beyond the team: a Venue key works only while the owner who created it is
still an owner, so removing that owner, or making them an editor, stops every key they created.

### Routes

| Step | Route |
| - | - |
| List, change and remove members | `GET`, `POST` and `DELETE /api/organizations/{organizationId}/members` |
| List, send and cancel invitations | `GET`, `POST` and `DELETE /api/organizations/{organizationId}/invitations` |

## Set up billing

Billing runs in production, where your venue pays trdrs for each month's active issued accounts at
its agreed graduated prices, each bracket at its own rate, charged to your card. Every sandbox venue
is free, so the sandbox answers these routes `409 production_only`.

Any member reads your billing: the current Venue terms and your acceptance of them, your billing
name and email, your card on file, your standing, and `setupRequired`, what your venue still needs
before it issues production accounts. An owner accepts the current Venue terms, with the billing
name and email your invoices carry, and changes that name or email later, from the next invoice.

An owner saves a card through a hosted setup that charges nothing. Saving another card replaces the
one on file: each invoice charges the card saved last, and a card saved while an invoice is past due
charges that invoice again. Only an owner reads the invoices, newest first, and charges the card
again for a past-due invoice, at most once an hour for each invoice.

### Routes

| Step | Route |
| - | - |
| Read your billing | `GET /billing` |
| Accept the Venue terms | `PUT /billing/terms` |
| Change the billing name or email | `PATCH /billing/profile` |
| Save a card and read its setup | `POST /billing/cards`, `GET /billing/cards/{cardId}` |
| Read your invoices | `GET /invoices` |
| Charge a past-due invoice again | `POST /invoices/{invoiceId}/charge` |

## Save your wallet keys

Wallet keys are the logins your venue saves at a wallet platform. Only an owner saves or removes
one, and any member reads which login is saved. trdrs tries each login at the platform before it
saves it, changing nothing there, and keeps its secret encrypted. No answer ever returns a secret.

* **Trader wallets login.** Your own Privy app's ID and secret, so your traders make their own wallets
  in your app and trdrs reads them there. Each trader's wallet signs only on their device, so a
  read-only secret serves. Saving the first one turns trader wallets on, which means your venue holds
  its traders' money in its own app, and in most places that needs a license: the save needs
  `licenseAcknowledged: true`, and trdrs records which owner sent it. Where you saved a company Privy
  login, send `useCompanyLogin: true` instead, and your trader wallets use that one. Removing it offers
  your traders no new wallets; a wallet already made stays in your app with its money.
* **Circle login.** A Circle API key that reads your company's developer-controlled wallets: a
  Restricted Access key with Wallets set to Read, `TEST_API_KEY` for a sandbox venue and `LIVE_API_KEY`
  for a production one. Your entity secret never comes to trdrs: your back office keeps it on your own
  server, makes your Circle company wallet and sends your moves there, and trdrs reads what it did.
* **Company Privy login.** Your own Privy app's ID and secret for your company wallet. Saving it makes
  the company wallet in that app, one address for each family of chains, and moves no money. A login
  for another Privy app makes a new company wallet there, and the wallet in the app before stays in
  that app with its money. Removing the login leaves the company wallet on record, unreachable, with
  its money in your Privy app.
* **Company wallet platform.** Your company wallet runs on one platform, Privy or Circle, and every
  money move the engine sends goes through it. With one company login saved it is that one. With both
  saved an owner picks, and until they do it is Privy. The wallet on the other platform stays readable,
  and moves send only from the one picked.

### Routes

| Step | Route |
| - | - |
| Read, save and remove the trader wallets login | `GET`, `PUT` and `DELETE /wallet-login` |
| Read, save and remove the Circle login | `GET`, `PUT` and `DELETE /circle-login` |
| Read, save and remove the company Privy login | `GET`, `PUT` and `DELETE /company-privy-login` |
| Read and pick the company wallet platform | `GET` and `PUT /company-wallet/platform` |

## Manage your Venue keys

A Venue key is what your backend calls the Venue API with. The back office calls these **API keys**.
Only an owner lists, creates and revokes keys, since no key can create another. A key names its
scopes and lasts from 60 seconds to one year. Its token appears once, when it's created, and a list
shows each key's name, scopes, expiry and revocation, never the token. A revoked key is refused on
every later call, including one already under way that hasn't reached its write.

A sandbox key works only in the sandbox. A production key needs current conformance, trdrs's
commercial approval and billing first. [Venue keys](https://docs.trdrs.co/guides/venue-keys.md) lists what each scope opens.

### Routes

| Step | Route |
| - | - |
| List and create keys | `GET` and `POST /keys` |
| Revoke a key | `DELETE /keys/{keyId}` |

## Change the Advanced settings

Advanced holds the switches that decide how your venue's money and orders run. Any member reads them,
and only an owner changes them. Each read says whether the value is an owner's or the engine's
default, and who last set it. A setting your engine doesn't run reads null.

| Setting | What it does | Where no owner set it |
| - | - | - |
| Money rails | Payout moves, company wallet moves and swaps, hedge top-ups and company Hyperliquid deposits run only while they're on. While they're off each is refused as `money_rails_off`. | On in the sandbox, off in production |
| Automatic sweeps | Once a day the engine proposes the day's moves and approves each sweep it sends itself, as the owner who switched it on, under the money rails, the daily cap and the stop. Top-ups and by-hand lines still wait for an owner. | Off |
| Builder fee | The builder your hedge orders at your company Hyperliquid account pay, and whether they pay it. On runs the builder fee's Turn on steps at your earnings wallet or at your own builder's address; off takes the builder off every hedging policy there and keeps the address. | Whatever your hedging policies name |
| Unified balances | A money move that finds too little USDC on its chain has it brought from another chain the company wallet holds it on, through Circle's CCTP or Relay, the cheaper taken. Each hop is its own chain move under the money rails, the cap and the stop. | On in the sandbox, off in production |
| Auto close | How the engine closes your failed and idle prop accounts on the paper book, never an account whose money is real: `off`, `count` (logs what it would close) or `on`, after `idleDays` without a fill, from 1 to 365. | Off, after 30 days |
| Smart order router | The venue-wide switch over your groups' router. On, each group's own switch decides; off, every group trades as with its router off, and each group's switch is kept. You can't switch it off while a hedge account holds routed hedges at another company account (`router_hedges_elsewhere`). | On |
| Quote requests | The venue-wide switch over your groups' quotes first and your company quoting on Backpack's and Monaco's requests for quote. Off, no order asks for quotes first and the company quotes nothing, and their settings are kept. | On |

Sending a change again with the same `Idempotency-Key` changes nothing.

### Routes

| Step | Route |
| - | - |
| Read the Advanced settings | `GET /advanced` |
| Switch the money rails | `PUT /advanced/money-rails` |
| Switch the automatic sweeps | `PUT /advanced/automatic-sweeps` |
| Set the builder | `PUT /advanced/builder-fee` |
| Switch the unified balances | `PUT /advanced/unified-balances` |
| Set the auto close | `PUT /advanced/auto-close` |
| Switch the smart order router | `PUT /advanced/router` |
| Switch the quote requests | `PUT /advanced/quote-requests` |

## Connect your company exchange accounts

Your venue can hold its own accounts at exchanges, for its own trading and as hedge accounts. Any
member reads each account and where it stands; only an owner connects one, funds it, saves its
deposit addresses or sets it up as a hedge account. A sandbox venue's account is on the exchange's
testnet and a production venue's on its mainnet.

* **Hyperliquid.** Your company Hyperliquid account is your company wallet's EVM address on
  Hyperliquid, so nothing new is made. It needs a saved company Privy login and its company wallet.
  Hyperliquid refuses every action from an account that never held money, so you fund it first: an
  owner's deposit sends USDC from the company wallet on the funding chain to Hyperliquid's bridge, at
  least 5 USDC, at once and only while the money rails are on. To send it under an Approve and the
  daily cap instead, propose a money move to the company Hyperliquid account. Connecting then has the
  company wallet approve a trading key for the account. trdrs makes that key, keeps it encrypted and
  never answers it, and it can't withdraw.
* **Monaco.** Your company Monaco account is also your company wallet's EVM address. You fund it
  first, then connecting grants a trading key over its perpetuals account, which can't withdraw. A
  deposit is sent on Sei, where the company wallet pays each network fee in SEI it holds, so send it
  SEI first. Deposits run only in the sandbox: production refuses them as `deposit_off_in_production`.
  Company Monaco quoting answers Monaco's requests for quote from this account as a maker, on terms an
  owner sets.
* **Backpack.** Backpack makes API keys on its own website, so connecting makes a signing wallet in
  your company Privy app and answers its public key. You register that key on the Backpack account
  you mean, then verify, which makes one signed read at Backpack and records the account connected.
  The signing wallet holds no money; the account's money is at Backpack. Company Backpack quoting
  answers Backpack's requests for quote on the spread and largest notional an owner sets. Backpack
  offers no way to withdraw a quote, so a quote already sent stands until its request expires, even
  after quoting is switched off.
* **Binance, Bybit and Alpaca.** An owner pastes an API key and its secret. The engine first reads
  what the key may do, and keeps it only where it can read and trade and can neither withdraw nor move
  money to another account; any other key is refused with what to turn off at the exchange. The key is
  kept encrypted and never answered. Alpaca offers no key that can't withdraw, so an Alpaca key is kept
  only while its crypto withdrawal allow-list holds your company wallet's own addresses alone, and each
  read names any other address added since. Alpaca accounts are read and traded, never hedge accounts.

**Deposit places.** For Backpack, Binance, Bybit and Alpaca, an owner saves the account's USDC
deposit addresses, one for each chain the company wallet holds and the exchange takes USDC on, as
saved places, so a money move sends there like to any place. Saving them sends nothing. Backpack
takes deposits on its mainnet alone, so a sandbox venue saves none there.

**Hedge accounts.** One owner step sets an account up as one of your hedge accounts, which a hedging
policy then picks like any other. Hyperliquid's works in production. Monaco's, Backpack's, Binance's
and Bybit's are usable in the sandbox, and production refuses them. See
[Hedging](https://docs.trdrs.co/guides/venue-hedging.md) for hedging policies.

### Routes

| Step | Route |
| - | - |
| Read and connect the company Hyperliquid account | `GET` and `POST /company-hyperliquid` |
| Fund it from the company wallet | `POST /company-hyperliquid/deposit` |
| Set it up as a hedge account | `POST /company-hyperliquid/hedging` |
| Read and connect the company Monaco account | `GET` and `POST /company-monaco` |
| Fund it, or set it up as a hedge account | `POST /company-monaco/deposit` and `/hedging` |
| Read and set Monaco quoting, switch it on or off | `GET` and `PUT /company-monaco/quoting`, `POST /company-monaco/quoting/start` and `/stop` |
| Read the Backpack account and make its signing key | `GET` and `POST /company-backpack` |
| Verify it, save its deposit places, set it up as a hedge account | `POST /company-backpack/verify`, `/deposit-places` and `/hedging` |
| Read and set Backpack quoting, switch it on or off | `GET` and `PUT /company-backpack/quoting`, `POST /company-backpack/quoting/start` and `/stop` |
| List every exchange account connected with a key | `GET /company-exchanges` |
| Read and connect one | `GET` and `POST /company-exchanges/{provider}`, where `{provider}` is `binance`, `bybit` or `alpaca` |
| Save its deposit places, or set it up as a hedge account | `POST /company-exchanges/{provider}/deposit-places` and `/hedging` (Binance and Bybit) |

## Choose Connect and Demo for your traders

Choose which tiles your traders get in Connect in the trading platform, in your order, and whether
they can open white-label paper, your tile for the paper book under your venue's name and logo,
and at what balance its Demo opens. A trader your venue holds, as its trader or by an account it
issued or granted them, gets your choices, and everyone else, signed-out visitors included, gets the
choices of the venue that runs the trdrs app. Each answer says in `runsTheApp` whether that venue is
yours.

Any member reads both. Until your first change, the tiles read every tile on at revision 0. The
Demo reads `connectApp: null` with what your traders get now: white-label paper on at 100,000, at
revision 0.

* **Connect tiles.** The tiles you choose from are those of the providers a trader signs in to with a
  login of their own, and of the venues that run on them. Each is named by its `slug`, which is the
  same in the sandbox and in production, and carries its `entry` (`venue` or `provider`) and the
  `provider` it opens. Send `autoEnable`, whether a tile trdrs lists later joins on by itself, the
  `enabled` slugs, and `order` if you change it. Switching a tile off stops new connections to it
  at once and disconnects nothing a trader already connected.
* **White-label paper.** Whether your traders can open a Demo, and the whole US dollars a new one
  opens with, from 1,000 to 10,000,000. A Demo already open keeps the balance it opened with.
* **Revisions.** Each change sends the `revision` you read as `expectedRevision`, and a change made
  from an older read is refused as `version_conflict`. With revision 0, your first change records
  your venue's choices. An owner or an editor changes the tiles, and an owner the Demo.

### Routes

| Step | Route |
| - | - |
| Read and choose your tiles | `GET` and `PUT /connect-tiles` |
| Read and set the Demo | `GET` and `PUT /connect-app/white-label-paper` |

## Sign the agreement and go to production

A sandbox venue doesn't ask for production from the back office: once it passes conformance, trdrs
upgrades it and sets your account prices in one step, as
[Upgrade to production](https://docs.trdrs.co/guides/back-office.md#upgrade-to-production) explains. The production venue it
makes is held, and issues no accounts, production keys or listing until an owner does two things, in
either order: signs the Venue agreement, and accepts the Venue terms and saves a card in
[billing](#set-up-billing). When both are done the venue operates.

Any member reads the production standing: whether the venue is `held` or `operating`, whether the
agreement is signed and billing connected, what comes `next`, and whether there is a newer agreement
to sign. A venue that wasn't upgraded answers `404`. Only an owner reads the agreement, with its
pricing schedule, and signs it with the company's legal details and `authority: true`. If the
agreement or its prices changed after you read them, signing is refused as `agreement_stale` with
the current versions, so read it again. A newer agreement binds your venue only once an owner signs
it, and your venue keeps operating meanwhile.

### Routes

| Step | Route |
| - | - |
| Read the production standing | `GET /production` |
| Read and sign the Venue agreement | `GET` and `POST /agreement` |

## Next steps

> [card] [Back Office](https://docs.trdrs.co/guides/back-office.md)
>
> Install the back office and walk through money moves, swaps and the upgrade to production.

> [card] [Venue keys](https://docs.trdrs.co/guides/venue-keys.md)
>
> Create the key your backend uses and see what each scope opens.

> [card] [Hedging](https://docs.trdrs.co/guides/venue-hedging.md)
>
> Pick a hedge account for your groups with a hedging policy.

> [card] [Tiles and white-label paper](https://docs.trdrs.co/guides/connect-tiles-and-paper.md)
>
> Choose the tiles and Demos a Connect app offers its own traders.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.