Integration · B2B
Prediction market integration
for brokers, step by step.
A B2B prediction market integration is narrower than it sounds. Your application talks to one REST API and one WebSocket endpoint. Matching, collateral, settlement and oracle resolution happen on TIE's side, under a licence TIE already holds. This page walks through the integration in the order your engineers will meet it: sandbox, accounts, orders and streams, settlement, go-live.
01What the integration covers
The split is simple. You own the interface, client onboarding and pricing. TIE owns the book and everything downstream of it.
| Yours | TIE's |
|---|---|
| Client-facing UI inside your product | Central limit order book, price-time priority |
| Client onboarding and account mapping | Full collateralisation and segregated client collateral |
| Your commission on top of execution | Settlement, oracle resolution and payouts |
| Which events you expose to clients | The catalogue: Polymarket, crypto series, custom events |
| Your legal advice on your own obligations | The licensed operating wrapper in Mauritius or Costa Rica |
Both specifications are public before any commercial conversation: see the API docs, with the REST reference and the WebSocket reference.
02Step 1: get a sandbox key
Sandbox keys are issued within one business day of a request, with no contract. The environment carries the full event catalogue, seeded balances and a benchmark harness, so your engineers can place orders, watch fills and measure round trips against your own key before anyone talks to sales.
Each request to the API is signed rather than sent with a bearer token. Three headers identify the key, carry an RFC 3339 timestamp and carry a keyed BLAKE2b-256 signature over the request. The secret key never leaves your systems.
03Step 2: map clients to accounts
Every one of your clients maps to an account under your broker ID. Your application makes all calls with your keys and passes the account in the path, so there is nothing for a client to install and no client-side credentials to manage. Positions, payouts and open orders are all read per account.
Onboarding stays inside your product, and so do payments. TIE does not accept payments from your clients: deposits and withdrawals run through your own payment flows. TIE does not take over the client relationship, and the client never sees a TIE-branded surface.
04Step 3: orders, positions and streams
Orders go in over REST: POST /v1/trading/accounts/{account_id}/orders with a market, a side, YES or NO, a type and a price. Every state-changing request carries an Idempotency-Key, so a retry after a timeout cannot create a duplicate order. Amend, cancel, cancel-all per market and YES/NO merge are separate endpoints.
Updates come back over one WebSocket endpoint with sequenced frames: order updates, accounting, market data and market lifecycle. A client that disconnects reconnects with the last sequence it applied and the server replays what it missed, so your position view never drifts from TIE's.
Each binary market trades on a single YES book. A NO order is mapped onto it at 1 − price, so liquidity on both sides sits in one place and the client's price limit is preserved.
05Step 4: collateral, settlement and payouts
Contracts are peer-to-peer and fully collateralised, with no leverage. The broker is never on the other side of a client's trade, so adding event contracts adds no market risk to your balance sheet. Client collateral is segregated.
When an event resolves, TIE handles oracle resolution and payout. Your application reads payouts per account over REST and receives the accounting updates on the stream, then reflects them in the client's balance inside your product.
06Step 5: go live
Production keys are issued once your trading flow has been validated and the security deposit is in place. Until then, your engineers keep working against sandbox.
The operating structure is scoped per broker under TIE's licensed entities in Mauritius and Costa Rica; see licensing and jurisdictions. Adding a region later doesn't need a re-integration. The trading engine is universal, and because TIE does not take client payments, a new region doesn't change anything on the integration side.
Setup, integration and the monthly platform fee are $0, and market data and the socket are included. TIE earns an execution fee only when a trade executes. You set your own client commission and keep all of it.
07Integration checklist
- Request signing: key, timestamp and BLAKE2b-256 signature headers on every call; clock within five minutes of UTC.
- Idempotency keys on every POST, PATCH and DELETE, stable across retries.
- Account mapping: one TIE account per client under your broker ID.
- Catalogue sync: list events and markets, decide which to expose, watch lifecycle changes on the stream.
- Order flow: place, amend, cancel; handle LIMIT and MARKET, GTC, DAY, IOC and FOK.
- Stream resume: persist the last applied sequence and reconnect with it.
- Settlement: read payouts per account and reconcile against accounting updates.
- Go-live: trading flow validated, security deposit in place, production keys issued.
08How long it takes
The sandbox key arrives within one business day. Integration time depends on your stack, but the surface area is one REST API and one socket against a published spec, with a TIE engineer on call. Brokers go live in weeks rather than the months an in-house exchange would take. For what in-house actually involves, see build vs buy.
09FAQ
What does a B2B prediction market integration consist of?
One REST API under /v1 for events, markets, orders, positions and payouts, and one WebSocket endpoint for order updates, accounting, market data and market lifecycle. Your application owns the interface and onboarding; TIE owns matching, collateral, settlement and the licence.
How long does it take to integrate a prediction market?
Sandbox keys go out within one business day. Engineers integrate against the published REST and WebSocket spec with an engineer on call, and brokers go live in weeks rather than months.
Do our clients need to sign up with TIE?
No. Each client maps to an account under your broker ID. All calls are made with your keys, and the client never sees a TIE-branded surface.
Does the broker take market risk after integrating?
No. Contracts are peer-to-peer, fully collateralised and unleveraged, with segregated client collateral. You are never the counterparty to a client's trade.
What does the integration cost?
Setup, integration and the monthly platform fee are $0, with market data and the socket included. TIE earns an execution fee only when a trade executes, agreed on a scoping call. A security deposit is required before production keys are issued.
When are production keys issued?
Once your trading flow has been validated and the security deposit is in place. Until then you integrate against sandbox.
Do we need to re-integrate to serve a new region?
No. The trading engine is universal and TIE does not accept payments from your clients, so adding a region does not change the integration.
Do we need our own licence to go live?
Not necessarily. TIE offers white-label and sub-license structures under its licensed entities in Mauritius and Costa Rica, selected per broker during scoping. TIE advises on fit; you take your own legal advice.
Ready to start the integration? Request a sandbox key and we'll reply within one business day with access and integration notes.