Market Data Integration
Retrieve tournaments, sport events, markets, prices, and available quantities for a market-data or price-display application.
Retrieve tournaments, sport events, and live markets from ProphetX for your market-data or price-display application.
The Market Data API is read-only and uses JSON over HTTPS. Use it to retrieve the tournaments, events, markets, prices, and available quantities you need for your application.
Table of contents
- What you'll be working with
- Environments
- Authentication
- Endpoints
- Response data reference
- Errors
- A full walkthrough
- Quick reference card
1. What you'll be working with
Four endpoints, all returning JSON wrapped in a {"data": …} envelope:
| What you want | Endpoint | Method |
|---|---|---|
| Browse tournaments | /affiliate/get_tournaments | GET |
| Browse sport events | /affiliate/get_sport_events | GET |
| Get markets for one event | /{version}/affiliate/get_markets | GET |
| Get markets for many events | /{version}/affiliate/get_multiple_markets | GET |
The typical flow is tournaments → events → markets: pick a tournament, list its events, then pull live markets and prices for the events you care about.
2. Environments
We run two environments. Start in sandbox while you're integrating, then flip to production when you're ready to go live.
| Environment | Base URL | Use it for |
|---|---|---|
| Sandbox | https://api.sandbox.prophetx.dev/partner | Development and testing. Same API surface, isolated data. |
| Production | https://cash.api.prophetx.co/partner | Live odds and real data. |
Every endpoint path below is relative to the base URL.
3. Authentication
Contact ProphetX's support team at [email protected] to be issued an affiliate API key.
You'll get a single API key. Send it as the Authorization header on every request. No Bearer prefix — just the raw key.
GET /affiliate/get_tournaments HTTP/1.1
Host: api.sandbox.prophetx.dev
Authorization: your-affiliate-api-key
Accept: application/json
Accept-Encoding: gzipSend Accept-Encoding: gzip too. Any JSON response of 1 KB or more is then returned with Content-Encoding: gzip at roughly 15–20% of its plain size, which is most of the benefit on get_markets and get_multiple_markets. Most HTTP libraries send this header and decode the response by default (Python requests, Go net/http, Node fetch/axios); Python urllib, Java's built-in HttpClient, .NET HttpClient, and curl (--compressed) need it switched on. See Response compression for the per-library list.
4. Endpoints
4.1 List tournaments
GET /affiliate/get_tournaments
Returns all tournaments available on the platform.
Query parameters
| Param | Type | Required | What it does |
|---|---|---|---|
has_active_events | bool | no | When true, only return tournaments that currently have active sport events. Skip it (or false) to see everything. |
Example
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/affiliate/get_tournaments?has_active_events=true"Response
{
"data": {
"tournaments": [
{
"id": 123,
"name": "NFL — Regular Season",
"sport": { "id": 1, "name": "Football" },
"category": { "id": 10, "name": "USA", "countryCode": "US" },
"updated_at": 1735689600000000000
}
]
}
}4.2 List sport events
GET /affiliate/get_sport_events
Returns sport events. Filter by tournament or by a specific list of event IDs — or pass no filter to get everything.
Query parameters
| Param | Type | Required | What it does |
|---|---|---|---|
tournament_id | int | no | Only events belonging to this tournament. |
event_ids | int[] | no, yes if include_unlisted is set | Only the specific events you ask for. Comma-separated, e.g. event_ids=101,102. |
include_unlisted | bool | no | Also return events that would otherwise disappear once unlisted (closed, abandoned, cancelled, postponed, interrupted, ended, suspended, or still live with trading turned off). Requires event_ids. |
Example
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/affiliate/get_sport_events?tournament_id=123"Response
{
"data": {
"sport_events": [
{
"event_id": 101,
"tournament_id": 123,
"tournament_name": "NFL — Regular Season",
"name": "Patriots vs. Jets",
"sport_name": "Football",
"scheduled": "2026-06-01T17:00:00Z",
"status": "scheduled",
"live_disabled": false,
"price_availability": "bookable",
"competitors": [
{ "id": 11, "name": "Patriots", "side": "home" },
{ "id": 20, "name": "Jets", "side": "away" }
]
}
]
}
}scheduled is ISO 8601 in UTC.
Why an event vanished from the normal listing: a plain get_sport_events call drops an event once it's unlisted — the same moment you'd see the WebSocket op: "d" delete on the sport events life cycle feed, which carries only id and tournament_id, not a reason. To find out why, re-request that same event with include_unlisted=true and its event_id in event_ids; the response comes back in this same shape with status set to whichever lifecycle state it moved to (closed, abandoned, cancelled, postponed, interrupted, ended, suspended), or still live with live_disabled: true if it was a re-listable pause rather than a permanent unlist.
4.3 Get markets for an event
GET /{version}/affiliate/get_markets
Returns all markets for a single event, including moneylines, spreads, totals, and available selections with current prices and quantities.
API versions
The path is version-prefixed. Use v4 unless you have a reason not to — it returns CFTC-compliant field names (price, strike, strike_id, quantity).
| Version | Path | Status |
|---|---|---|
v1 | /affiliate/get_markets | Deprecated — please migrate. |
v2 | /v2/affiliate/get_markets | Stable. |
v3 | /v3/affiliate/get_markets | Stable. |
v4 | /v4/affiliate/get_markets | Latest — recommended. |
Query parameters
| Param | Type | Required | What it does |
|---|---|---|---|
event_id | int | yes | The event to fetch markets for. |
get_all_market | boolean | no | Default false returns main markets only — moneyline, spread, and total. Set true to return every market on the event, including player props, team props, halves/quarters, and other derivatives. |
market_types | string | no | Comma-separated allowlist, e.g. moneyline,spread,total. Only markets of these types are returned. |
min_liquidity | float | no | Only return markets at or above this liquidity threshold. Useful for filtering out thinly-priced lines. |
Not seeing player props? Add
get_all_market=true. Without it the response is limited to the main game lines. Props are identified bysub_type(player_total_points,player_total_receiving_yards, …) andcategory_name;market_typesonly knows the main types, so filter props client-side onsub_type. Markets with no live selections are omitted from the response, so in sandbox — where there is no house pricing — most props will still be absent even with the flag set.
Example
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/v4/affiliate/get_markets?event_id=101&market_types=moneyline,spread&min_liquidity=100"
# Every market on the event, props included
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/v4/affiliate/get_markets?event_id=101&get_all_market=true"Response (v4)
{
"data": [
{
"id": 555,
"name": "Moneyline",
"display_name": "Moneyline",
"type": "moneyline",
"category_name": "Game Lines",
"sub_type": "moneyline",
"selections": [
[
{ "outcome_id": 1, "name": "Patriots", "price": -150, "strike": null, "strike_id": "line_1", "quantity": 2100.0, "adjusted_maker_price": -153.81, "adjusted_taker_price": -156.74 }
],
[
{ "outcome_id": 2, "name": "Jets", "price": 105, "strike": null, "strike_id": "line_2", "quantity": 2150.0, "adjusted_maker_price": 102.97, "adjusted_taker_price": 101.47 }
]
]
}
]
}Note on
selections: In v3 and v4, each entry insideselectionsis itself a list (selections grouped by side/team). In v1 and v2,selectionsis a flat array of objects. This shape difference is independent of the field-naming difference below.
price uses American odds (e.g. +120, -150), the same format across v1 through v4. strike is the point spread or total (null on moneyline markets). Preserve the literal strike_id field when you use it in API requests or responses.
v4-only:
adjusted_maker_priceandadjusted_taker_price— see §4.3a below.
4.3a Fee-adjusted prices (v4 only)
On v4 get_markets and get_multiple_markets, each selection can carry two extra fields next to price:
| Field | Type | Description |
|---|---|---|
adjusted_maker_price | float | null | price net of the maker-side fee for this selection. |
adjusted_taker_price | float | null | price net of the taker-side fee for this selection. |
On a maker/taker market, each is computed as the implied probability of price, scaled by (1 + rate) for that role, then converted back to American odds and rounded to 2 decimals. The rate itself comes from ProphetX's Fee Resolution Engine (FRE), resolved by tournament, event, and market sub-type — never per user, so every affiliate sees the same adjusted price for a given selection. Rates are capped at 25% internally, however extreme a fee configuration gets.
On a commission market (maker/taker not enabled), both fields just carry the existing commission-adjusted price — the same value you'd get from adjusted_odds on v2/v3 or the now-deprecated adjusted_price below.
Rates are cached for up to 60 seconds, so a fee change made in ProphetX's admin tooling can take up to a minute to show up here. If FRE itself is unreachable, the last known rate is served if one's cached; if nothing's cached yet for that selection, adjusted_maker_price/adjusted_taker_price are simply omitted from that selection — the endpoint itself never fails or 500s because of this.
adjusted_priceis deprecated. It still appears on v4 responses and carries the exact same value asadjusted_taker_price, but new integrations should readadjusted_taker_priceinstead —adjusted_pricemay be removed in a future v4 revision.
v1/v2/v3are unaffected by any of this — they keep their existingadjusted_oddsbehavior unchanged.
How to think about sides. ProphetX doesn't have a shared buy/sell order book per market. Every outcome is its own independent, buy-only instrument, orders are always a buy against one specific outcome, never a sell against the other. Buying "Patriots" and buying "Jets" are two separate orders against two separate instruments, not two sides of the same book.
strike_idis that instrument identifier, it's what you pass into order placement (the RESTstrike_idparam, orSymbolon FIX).outcome_idis useful for display and grouping, butstrike_idis what you actually trade against.
4.4 Get markets for multiple events
GET /{version}/affiliate/get_multiple_markets
Same data as get_markets, but batched across many events in a single call. Great for refreshing prices on a list of upcoming games.
API versions — same scheme as get_markets:
| Version | Path |
|---|---|
v1 | /affiliate/get_multiple_markets |
v2 | /v2/affiliate/get_multiple_markets |
v3 | /v3/affiliate/get_multiple_markets |
v4 | /v4/affiliate/get_multiple_markets |
Query parameters
| Param | Type | Required | What it does |
|---|---|---|---|
event_ids | int[] | yes | Events to fetch markets for. Comma-separated, e.g. event_ids=101,102,103 (up to 65). |
get_all_market | boolean | no | Same as on get_markets: default false returns main markets only; true includes player props and every other market. |
market_types | string | no | Same as on get_markets. |
min_liquidity | float | no | Same as on get_markets. |
Example
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/v4/affiliate/get_multiple_markets?event_ids=101,102,103&get_all_market=true"Response — typical shape
{
"data": {
"101": [ { /* market */ }, { /* market */ } ],
"102": [ { /* market */ } ],
"103": []
}
}Each market object has the same fields as in §4.3.
Heads up: A small number of responses may come back as a flat list of markets rather than a keyed object. If you're parsing defensively, check the type and, in the flat-list case, group by each market's
event_idfield.
5. Response data reference
A complete field-by-field reference for everything you'll receive.
Tournament
| Field | Type | Description |
|---|---|---|
id | int | Tournament ID. Use this to filter events. |
name | string | Display name, e.g. "NFL — Regular Season". |
sport | object | null | The sport, as { id, name }. |
category | object | null | The category/region, as { id, name, countryCode }. |
updated_at | int (nanoseconds) | Last-updated timestamp. |
Sport event
| Field | Type | Description |
|---|---|---|
event_id | int | Event ID. Use this with the markets endpoints. |
tournament_id | int | null | Parent tournament. |
tournament_name | string | null | Parent tournament's display name. |
name | string | null | Display name. |
sport_name | string | null | The sport's display name. |
scheduled | string | null | ISO 8601 UTC scheduled start time. |
status | string | null | Lifecycle status, e.g. "scheduled", "live", "finished". |
live_disabled | bool | true if a live event currently has trading turned off (re-listable, as opposed to a permanent unlist). |
price_availability | string | "booked" (tradable), "bookable", "not_available", or empty. |
competitors | array | Each entry has id, name, side ("home"/"away"), and optionally display_name, abbreviation, country. |
Market
| Field | Type | Description |
|---|---|---|
id | int | Market ID. |
name | string | Market name. |
display_name | string | null | Display name, if different from name. |
type | string | null | e.g. "moneyline", "spread", "total", "sup_moneyline". |
category_name | string | null | The market's category, e.g. "Game Lines". |
sub_type | string | null | The market's specific sub-type — moneyline, first_half_total, player_total_points, … Player props are prefixed player_; they appear only when get_all_market=true was requested. |
strike | float | null | Market-level point spread or total, if applicable. |
selections | array | Available outcomes. See note in §4.3 about v1/v2 vs v3/v4 shape. |
Selection
| Field | Type | Description |
|---|---|---|
outcome_id | int | null | Selection outcome ID. Always present; useful for display and grouping. |
name | string | null | Display label, e.g. "Patriots", "Over". |
competitor_id | int | null | The competitor this selection belongs to, if any. Null on markets with no single team (Yes/No, Over/Under, props). |
strike | float | null | Point spread or total. null for moneyline. |
strike_id | string | null | The tradeable instrument identifier. This is what you pass to place an order, not outcome_id. See "How to think about sides" in §4.3. |
price | float | null | American odds, e.g. 120, -150. Same format across all API versions. |
quantity | float | null | Available quantity for this specific selection. |
adjusted_maker_price | float | null | v4 only. price net of the maker fee. See §4.3a. |
adjusted_taker_price | float | null | v4 only. price net of the taker fee. See §4.3a. |
adjusted_price | float | null | v4 only, deprecated. Same value as adjusted_taker_price — use that field instead. |
6. Errors
The API uses standard HTTP status codes. Error bodies are JSON when available.
| Status | What it means | What to do |
|---|---|---|
200 | Success. | — |
400 | Bad request — usually a malformed or missing parameter. | Check your query string. |
401 | Unauthorized — bad key or missing header. | Verify your Authorization header. |
404 | The resource (e.g. an event_id) doesn't exist. | Double-check the ID. |
429 | Rate-limited. | Back off and retry with exponential delay. |
5xx | Server-side issue. | Retry with backoff. If it persists, reach out to your ProphetX contact. |
7. A full walkthrough
The typical "fetch live prices for a slate of games" flow, in three calls:
┌───────────────────────┐ 1. List active tournaments
│ get_tournaments │ → pick the ones you care about
└──────────┬────────────┘
│
▼
┌───────────────────────┐ 2. List events in those tournaments
│ get_sport_events │ → collect event_ids
└──────────┬────────────┘
│
▼
┌───────────────────────┐ 3. Batch-fetch live markets & prices
│ get_multiple_markets │ → render prices in your product
└───────────────────────┘
Step 1 — active tournaments:
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/affiliate/get_tournaments?has_active_events=true"Step 2 — events for the tournament(s) you picked:
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/affiliate/get_sport_events?tournament_id=123"Step 3 — markets for a batch of events:
curl -H "Authorization: $API_KEY" \
"https://api.sandbox.prophetx.dev/partner/v4/affiliate/get_multiple_markets?event_ids=101,102,103"For high-frequency price refreshes, re-run step 3 on whatever cadence your product needs — and keep an eye on rate limits.
8. Quick reference card
Base URL (sandbox) : https://api.sandbox.prophetx.dev/partner
Base URL (production) : https://cash.api.prophetx.co/partner
Auth header : Authorization: <api-key> (no "Bearer " prefix)
Compression : Accept-Encoding: gzip (responses >= 1 KB come back gzip-compressed)
GET /affiliate/get_tournaments [?has_active_events]
GET /affiliate/get_sport_events [?tournament_id] [?event_ids] [?include_unlisted]
GET /{v1|v2|v3|v4}/affiliate/get_markets ?event_id [&get_all_market=true] [&market_types] [&min_liquidity]
GET /{v1|v2|v3|v4}/affiliate/get_multiple_markets ?event_ids [&get_all_market=true] [&market_types] [&min_liquidity]
get_all_market=true is required to receive player props; the default is main markets only.
Want to show a parlay price alongside these single-leg prices? See Affiliate Parlay Quotes — a separate endpoint that takes a set of strike_ids from here and returns a live parlay price.
Need access, a higher rate limit, or a feature that isn't covered here? Get in touch with your ProphetX contact — we're happy to help you ship.
Updated 5 days ago
