For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overtime V2 markets (protected)

Get a list of all markets or a single market details.

REST API

GET https://api.overtime.io/overtime-v2/networks/{network}/markets

GET https://api.overtime.io/overtime-v2/networks/{network}/markets/{{gameId}}

Path variables

network (required): 10 Optimism, 42161 Arbitrum, 8453 Base, 11155420 Optimism Sepolia.

See the markets API endpoint with request/response examples under Postman documentation.

All requests to this route must include a valid API key for authentication. The API key should be provided in the request header as x-api-key.

Access to the Overtime API is restricted and requires an approved API key. API keys are issued only to teams or organizations that can clearly demonstrate how their intended use of the API delivers meaningful value to Overtime, its users, or its ecosystem. Requests must include a concrete description of the proposed use case, scope, and anticipated impact. The Overtime API is not intended for experimental, hobbyist, or small personal projects. Requests that do not meet these criteria will not be approved.

Example Request

https://api.overtime.io/overtime-v2/networks/10/markets?includeHashInResponse=true&responseHash=MRuJjZAhXzX3LWzZo%2B1q4ohxJpM%3D&onlyBasicProperties=true

Single game request

https://api.overtime.io/overtime-v2/networks/10/markets/0x3430343338353400000000000000000000000000000000000000000000000000

Request Parameters (as query string)

Name
Type
Description

responseHash

string

Client-provided hash of the previous response. Server computes a SHA-1 hash of the would-be response and:

  • returns "no change" if hashes match

  • otherwise returns the full payload

Notes: Used for lightweight polling / change detection.

includeHashInResponse

boolean

If "true", response becomes:

and markets will be "no change" if it matches responseHash.

includeProofs

boolean

Default false. When true, keeps the proof fields needed to place a bet on-chain. Not needed for view-only use.

onlyMainMarkets

boolean

For each parent market, returns only the “main” SPREAD and/or TOTAL child markets.

ungroup

boolean

Controls response shape:

  • "false" (default): markets response is grouped per sport

  • "true": response is an ungrouped flat array of markets

minMaturity

number (timestamp-like numeric value)

Filters to markets with market.maturity >= minMaturity. Rounded down to whole minutes.

maxMaturity

number (timestamp-like numeric value)

Filters to markets with market.maturity <= maxmaturity.

status

string

Default open. One of open, paused, ongoing. Resolved and cancelled markets come from the closed markets endpoint.

sport

string

Filters markets by sport name.

leagueId

number

Filters markets to a single league ID.

typeId

number

Filters results to a single market type. When set, matching child markets are returned flattened, each as a market of its own.

leagueIds

string (comma-separated league IDs)

Filters markets to any of the specified leagues.

gameIds

string (comma-separated game IDs)

Filters markets to any of the specified game IDs. At most 20 game IDs per request; more returns 400.

typeIds

string (comma-separated type IDs)

Filters markets to any of the specified market type IDs. When set, matching child markets are returned flattened, each as a market of its own.

playerIds

string (comma-separated player IDs)

Filters player prop markets to any of the specified player IDs. When set, matching child markets are returned flattened, each as a market of its own.

lines

string (comma-separated market lines)

Filters markets by market.line. When set, matching child markets are returned flattened, each as a market of its own.

positions

string (comma-separated)

One position per gameIds entry. Used with includeProofs by callers without an API key.

includeFuturesInSport

any (treated as “enabled if present”)

When sport is provided, also includes futures markets whose “initial sport” matches the requested sport.

newFormat

boolean

Default false. When true, returns the compact format: typeLineStatusOdds (typeId|line|status|odds1:odds2[:odds3]), teams (home|away|tournament), playerIdAndName (playerId|playerName) and marketTypeIds joined with |.

Parameter names are case-insensitive.

Example Response

Response Parameters

Name
Type
Description

responseHash

string

The hash of the markets response. It can be used in subsequent requests to check if markets have changed.

  • Returns "no change" if the markets haven’t changed.

  • Returns full market data if there are changes.

gameId

string

Game ID

sport

string

Game sport. See Overtime V2 sports.

leagueId

number

Game league ID. See Overtime V2 sports.

leagueName

string

Game league name. See Overtime V2 sports.

subLeagueId

number

Game subleague ID. It is used for some sports (tennis and UFC) to separate different levels and rounds of tournaments. (needed on the contract side, not used on UI).

typeId

number

Type ID of the market. 0 for parent market (moneyline/winner). For other types see Overtime V2 market types.

type

string

Type of the market. See Overtime V2 market types.

line

number

Market line (if available).

maturity

number

Game start timestamp

maturityDate

date

Game start date and time

homeTeam

string

The name of the home team

awayTeam

string

The name of the away team

status

The status of the market

playerProps

Player info (if player props market)

combinedPositions

An array of combined positions if the market is that type (half-time/full-time, winner+total...)

odds

Market odds

proof

string[]

The Merkle proof used for the validation of market data on the contract side

childMarkets

Child markets with the same structure as parent market

statusCode

Market status code used for grouping markets per status.

StatusEnum

Name
Value

OPEN

0

PAUSED

1

RESOLVED

10

CANCELLED

255

StatusCodeEnum

Name
Value

OPEN

open

PAUSED

paused

RESOLVED

resolved

CANCELLED

cancelled

ONGOING

ongoing

PlayerProps

Name
Type
Description

playerId

number

Player ID

playerName

string

The name of the player

CombinedPosition

Name
Type
Description

typeId

number

The type ID of single market

position

number

The position on the single market

line

number

Single market line

Odds

Name
Type
Description

american

number

American format of the odds

decimal

number

Decimal format of the odds

normalizedImplied

number

Normalized Implied format of the odds

Last updated