Skip to main content
Quotes only need a key; an order also needs a workspace that may trade, an account or wallet to trade from and funds in it, set up once in the app.

At a glance

Complete your company details

A company, broker or liquidity provider workspace can request quotes, place orders and connect to counterparties once its legal name, country of incorporation, registration number and registered address are on file under Company profile. Until then, those requests answer 403 CAPABILITY_BLOCKED.
Each entry in details.capabilityBlockers names one thing to fix:A separate answer, 503 CAPABILITY_UNAVAILABLE with BASE_PROFILE_UNREADABLE, means the company details could not be read just now: send the request again shortly.
Refusal

Connect a venue account

Someone who can manage your workspace’s venues connects exchange and OTC venue accounts in the app:
1

Choose the provider

Open Counterparties, choose the venue’s liquidity provider and select Set up <provider> account.
2

Enter the account

Work through Integration mode, Account and Venues, entering the credentials the venue asks for.
3

Verify

In Verification, TetraFi checks each venue you added. Select Check again to repeat a check, then Review setup.
Its quotes then appear for members and keys allowed to trade on venue accounts, with tradingSource.kind venueAccount. Without an account, a venue reads unavailable with notConnected.

Fund it

A Basic order spends what the account or wallet already holds. A quote whose next.kind is fund has a paying account short by readiness.amount.
  • GET …/venue-accounts/{venueAccountId}/deposit-instructions lists where an exchange account takes deposits; Balances shows what each account holds.
  • An order on a fund quote is refused with 409 FUNDING_SHORTFALL: fund the account, then get a new price.

Give a key organisation wallets

An API key trades from an organisation wallet only when the wallet is granted to it, and only with venue trading (Authentication); venue accounts need no wallet grant. Granted wallets appear in the key’s sourceOptions.
Create API key with venue trading grants your workspace’s default organisation wallets that you hold a Trade right on. To change it, open Settings, Open API keys under Personal API keys, expand the key and choose Wallets: Grant adds a wallet, Revoke removes one.
  • The key’s owner can grant the workspace’s default organisation wallets they hold a Trade right on, and revoke any grant. Another wallet is refused with API_KEY_ORGANISATION_WALLET_NOT_A_DEFAULT, one without your Trade right with API_KEY_ORGANISATION_WALLET_TRADE_RIGHT_REQUIRED.
  • A workspace owner, or an admin who manages credentials, can grant any active organisation wallet of the workspace. This is the only way a service-account key gets wallets.
  • Every change needs a sign-in with a second factor (otherwise MFA_REQUIRED), in the app: a key cannot change its own grants.
  • At trade time the key’s owner still needs trading rights on the wallet, and the key needs Read quotes and Submit orders. An admin-granted wallet its owner cannot trade is refused.
Until then, on-chain Basic venues read unavailable with apiKeyOrganisationWalletScopeRequired or onchainWalletNotUsable.

Check readiness from your backend

GET /api/v1/me describes the key, including its organisationWallets trading authority. venueTradeScope and venueTradeEnabled must both be true for quotes from your venue accounts.
Output on test networks
503 API_KEY_ORGANISATION_WALLET_AUTHORITY_UNAVAILABLE means the grants could not be read, never an empty list: retry shortly.
GET /api/v1/workspaces/{workspaceId}/capabilities (Read compliance permission) says whether each capability, such as request_quotes or submit_order, is allowed, with the same blockers when not. The quote and order routes enforce the same decision.

Next

Quickstart

Place your first order, with a small amount.

Authentication

Permissions, venue trading and request signing.