Skip to main content
POST
/
nbx
/
v2
/
emm
/
events
/
getMarketsByEvents
Get markets by events (batch)
curl --request POST \
  --url https://api.novig.us/nbx/v2/emm/events/getMarketsByEvents \
  --header 'Content-Type: application/json' \
  --data '
{
  "eventIds": [
    "550e8400-e29b-41d4-a716-446655440000",
    "550e8400-e29b-41d4-a716-446655440001"
  ],
  "currency": "CASH"
}
'
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "description": "KC v BUF Total",
    "status": "OPEN",
    "type": "TOTAL",
    "league": "NFL",
    "volume": 1000000,
    "eventId": "123e4567-e89b-12d3-a456-426614174000",
    "outcomeIds": [
      "123e4567-e89b-12d3-a456-426614174002",
      "123e4567-e89b-12d3-a456-426614174003"
    ],
    "outcomes": [
      {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "description": "Over 26.5",
        "type": "<string>",
        "status": "TBD",
        "index": 0,
        "last": 0.55,
        "competitor": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Kansas City Chiefs",
          "shortName": "Chiefs",
          "symbol": "KC",
          "mascot": "Chiefs"
        }
      }
    ],
    "book": {
      "marketId": "<string>",
      "marketDescription": "<string>",
      "outcomeLadders": [
        {
          "outcomeId": "<string>",
          "bids": [
            {
              "id": "123e4567-e89b-12d3-a456-426614174000",
              "price": 0.667,
              "qty": 110,
              "originalQty": 110,
              "currency": "CASH",
              "outcomeId": "<string>",
              "marketId": "<string>",
              "status": "RESTING",
              "created_at": "2024-01-01T00:00:00.000Z"
            }
          ]
        }
      ]
    },
    "strike": 26.5,
    "event": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "type": "REGULAR_SEASON",
      "status": "OPEN_PREGAME",
      "description": "KC Chiefs vs BUF Bills - Week 14",
      "game": {
        "id": "123e4567-e89b-12d3-a456-426614174000",
        "league": "NFL",
        "status": "SCHEDULED",
        "scheduledStart": "2023-12-10T20:00:00Z",
        "homeTeam": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Kansas City Chiefs",
          "shortName": "Chiefs",
          "symbol": "KC",
          "mascot": "Chiefs"
        },
        "awayTeam": {
          "id": "123e4567-e89b-12d3-a456-426614174000",
          "name": "Kansas City Chiefs",
          "shortName": "Chiefs",
          "symbol": "KC",
          "mascot": "Chiefs"
        }
      }
    },
    "playerId": "123e4567-e89b-12d3-a456-426614174001",
    "player": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Josh Allen",
      "fullName": "Joshua Patrick Allen",
      "position": "QB"
    },
    "competitor": {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "name": "Kansas City Chiefs",
      "shortName": "Chiefs",
      "symbol": "KC",
      "mascot": "Chiefs"
    },
    "settledAt": "2023-10-05T12:00:00Z"
  }
]

Body

application/json
eventIds
string[]
required

Array of event IDs to fetch markets for (1–50)

Required array length: 1 - 50 elements
Example:
[
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440001"
]
currency
enum<string>
required

Currency denomination for orderbook data

Available options:
CASH,
COIN

Response

Successfully retrieved markets with orderbooks.

id
string
required

The ID of the market

Example:

"123e4567-e89b-12d3-a456-426614174000"

description
string
required

Description of the market

Example:

"KC v BUF Total"

status
string
required

The current status of the market (OPEN, CLOSED, or SETTLED)

Example:

"OPEN"

type
string
required

The type of market (MONEY, SPREAD, TOTAL, RUSHING_ATTEMPTS, etc.)

Example:

"TOTAL"

league
string
required

The league of the market

Example:

"NFL"

volume
number
required

The total volume of the market in CASH denomination

Example:

1000000

eventId
string
required

The event associated with the market

Example:

"123e4567-e89b-12d3-a456-426614174000"

outcomeIds
string[]
required

Array of outcome IDs linked to this market

Example:
[
"123e4567-e89b-12d3-a456-426614174002",
"123e4567-e89b-12d3-a456-426614174003"
]
outcomes
object[]
required

Array of outcomes linked to this market

book
object
required

The current orderbook for this market

strike
number | null

The threshold of the market in the unit of the stat type

Example:

26.5

event
object

The event details associated with the market

playerId
string | null

The player associated with the market (if applicable)

Example:

"123e4567-e89b-12d3-a456-426614174001"

player
object

The player associated with the market (if applicable)

competitor
object

The competitor associated with the market (if applicable)

settledAt
string | null

When the market was settled (if applicable)

Example:

"2023-10-05T12:00:00Z"