curl --request POST \
--url https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents \
--header 'Content-Type: application/json' \
--data '
{
"eventIds": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440001"
]
}
'import requests
url = "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents"
payload = { "eventIds": ["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
eventIds: ['550e8400-e29b-41d4-a716-446655440000', '550e8400-e29b-41d4-a716-446655440001']
})
};
fetch('https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eventIds' => [
'550e8400-e29b-41d4-a716-446655440000',
'550e8400-e29b-41d4-a716-446655440001'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents"
payload := strings.NewReader("{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents")
.header("Content-Type", "application/json")
.body("{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"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"
}
]Get markets by events (batch)
Fetch markets for multiple events at once (maximum 50), including current orderbook data. Returns the same data as the single-event endpoint but in a single batched request.
Rate limit: 128 requests per second.
curl --request POST \
--url https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents \
--header 'Content-Type: application/json' \
--data '
{
"eventIds": [
"550e8400-e29b-41d4-a716-446655440000",
"550e8400-e29b-41d4-a716-446655440001"
]
}
'import requests
url = "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents"
payload = { "eventIds": ["550e8400-e29b-41d4-a716-446655440000", "550e8400-e29b-41d4-a716-446655440001"] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
eventIds: ['550e8400-e29b-41d4-a716-446655440000', '550e8400-e29b-41d4-a716-446655440001']
})
};
fetch('https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eventIds' => [
'550e8400-e29b-41d4-a716-446655440000',
'550e8400-e29b-41d4-a716-446655440001'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents"
payload := strings.NewReader("{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents")
.header("Content-Type", "application/json")
.body("{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.novig.com/nbx/v2/emm/events/getMarketsByEvents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventIds\": [\n \"550e8400-e29b-41d4-a716-446655440000\",\n \"550e8400-e29b-41d4-a716-446655440001\"\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"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
Response
Successfully retrieved markets with orderbooks.
The ID of the market
"123e4567-e89b-12d3-a456-426614174000"
Description of the market
"KC v BUF Total"
The current status of the market (OPEN, CLOSED, or SETTLED)
"OPEN"
The type of market (MONEY, SPREAD, TOTAL, RUSHING_ATTEMPTS, etc.)
"TOTAL"
The league of the market
"NFL"
The total volume of the market in CASH denomination
1000000
The event associated with the market
"123e4567-e89b-12d3-a456-426614174000"
Array of outcome IDs linked to this market
[
"123e4567-e89b-12d3-a456-426614174002",
"123e4567-e89b-12d3-a456-426614174003"
]
Array of outcomes linked to this market
Show child attributes
Show child attributes
The current orderbook for this market
Show child attributes
Show child attributes
The threshold of the market in the unit of the stat type
26.5
The event details associated with the market
Show child attributes
Show child attributes
The player associated with the market (if applicable)
"123e4567-e89b-12d3-a456-426614174001"
The player associated with the market (if applicable)
Show child attributes
Show child attributes
The competitor associated with the market (if applicable)
Show child attributes
Show child attributes
When the market was settled (if applicable)
"2023-10-05T12:00:00Z"

