These routes are a preview. They’re served on the sandbox to every venue, and production
availability is arranged when your venue qualifies. Trading API keys and pre-registration keys
don’t authorize them. The back office runs the same steps under Connections.
Before you start
- A Venue key on your server. Creating, checking and promoting a connection needs
connection:manage, reading needsvenue:read, and binding an account also needsaccount:issue. - The provider version’s id, from
GET /api/venues/{venueId}/providers. - The credential the provider issued your venue. For a private integration, also its HTTPS base URL: a public hostname on port 443, with no credentials, query or fragment. trdrs calls nothing else, so an IP address or a local name never works.
Create the connection
Create a draft connection to the provider version. trdrs stores the credential encrypted, bound to this connection, and never returns it.endpoint is your provider service’s public HTTPS address.
Required scope: connection:manage.
state: "draft", with hasCredential: true and its version.
Keep its id. credentialId is your own name for the credential, at most 128 characters, and the
credential itself is at most 8,192 printable characters with no spaces.
Check it
Queue a read-only check. trdrs fetches the provider’s manifest and compares it with the provider version, and for a provider that holds accounts it then lists every account your credential can see. Send an empty JSON body. Required scope:connection:manage.
202 with a validation in state: "pending". Poll
GET /api/venues/{venueId}/connections/{connectionId}/validations/{jobId} until its state is
passed or failed. A failure, an expiry or a lost permission never reads as a pass, and
tradingReady is always false: a pass proves the manifest and changes nothing else.
A failed check names what it saw in resultCode, and provider errors are redacted:
Bind the accounts it found
Skip this step for a provider that serves prices alone. When a check of kindmanifest_and_accounts passes, its discoverySnapshotId names the accounts it found. List them
with GET /api/venues/{venueId}/connections/{connectionId}/accounts, 500 to a page, and bind the
ones you want with
POST /api/venues/{venueId}/accounts/bind.
The list lasts only as long as the provider’s grant, at most 60 seconds, so bind soon after the
check passes.
Required scopes: connection:manage and account:issue.
A bound account keeps the position model the provider reports, net or hedged. To bind a hedge
account instead, Hedge venue exposure covers the extra scopes it needs.
Promote it
Promote the connection on that passed check. Send the connection’sversion as you read it as
expectedVersion, and the check’s id as validationJobId.
Required scope: connection:manage.
state: "validated". The same request again answers what it
answered the first time. A validated connection still isn’t ready to trade on its own: a group’s
route has to name it, and an order still needs a bound account, margin, a fresh price and a live
account stream.
Keep it running
A connection is in one of four states, andGET /api/venues/{venueId}/connections shows each
connection’s state without its credential.
Check a validated connection again whenever you want proof it still matches. A check that fails on
what the provider answered halts it until you promote it again on a check that passed. A check that
never reached the provider for the connection’s current version, because the connection changed or
the requester lost their access, halts nothing.
Each check reads the provider’s manifest, and its 1.1 manifest for a version pinned to 1.1, and
fails
manifest_mismatch when either changed from the version you hold. With a connection
description, it also fails provider_mismatch when the login reaches another company than the one
the provider version is linked to.
A provider you plugged in is hidden from your traders by default. Show it in Connect, to traders
holding an account your venue issued, with
POST /api/venues/{venueId}/connections/{connectionId}/expose. Retire a provider version you no
longer use with POST /api/venues/{venueId}/providers/{providerId}/retire, once no connection that
isn’t revoked names it.
Test it end to end
Run the whole path in the sandbox before you plan for production:- Create a sandbox connection, check it and promote it.
GET /api/venues/{venueId}/connectionsshows itvalidated. - For a provider that holds accounts, bind one discovered account and route a test group through the connection, as Run a venue describes.
- For a provider that serves prices, read its symbol list and add one market, as Add a provider’s markets describes.
Next steps
Add a provider's markets
List the markets your connection’s provider states, priced from your own connection.
Run a venue
Route a group’s orders through the connection.
Add your own provider
Implement the provider contract and add the provider to your venue.
Hedge venue exposure
Hedge in an account your venue owns at a connected provider.