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 answer403 CAPABILITY_BLOCKED.
Blockers and what to do
Blockers and what to do
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.Example refusal
Example refusal
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.
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 whosenext.kind is fund has a paying account short by readiness.amount.
Deposits and shortfalls
Deposits and shortfalls
GET …/venue-accounts/{venueAccountId}/deposit-instructionslists where an exchange account takes deposits; Balances shows what each account holds.- An order on a
fundquote is refused with409 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’ssourceOptions.
Grant or revoke a wallet
Grant or revoke a wallet
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.
Who can grant what
Who can grant what
- 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 withAPI_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.
Before a wallet is granted
Before a wallet is granted
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
organisationWallets fields
organisationWallets fields
503 API_KEY_ORGANISATION_WALLET_AUTHORITY_UNAVAILABLE means the grants could not be read, never an empty list: retry shortly.Workspace capabilities
Workspace capabilities
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.