Skip to main content
GET
/
v1
/
pm
/
markets
/
{marketId}
/
ticker
Ticker
curl --request GET \
  --url https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker
import requests

url = "https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker', 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://relay.bayse.markets/v1/pm/markets/{marketId}/ticker",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://relay.bayse.markets/v1/pm/markets/{marketId}/ticker")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "outcome": "YES",
  "lastPrice": 0.72,
  "bestBid": 0.70,
  "bestAsk": 0.72,
  "midPrice": 0.71,
  "spread": 0.02,
  "volume24h": 15420,
  "high24h": 0.74,
  "low24h": 0.65,
  "priceChange24h": 0.04,
  "tradeCount24h": 247,
  "timestamp": "2026-02-17T12:00:00Z"
}

Authentication

No authentication required.

Path parameters

marketId
string
required
UUID of the market.

Query parameters

outcome
string
The outcome label: YES or NO. Required if outcomeId is not provided.
outcomeId
string
UUID of the outcome. Must belong to the specified market. Required if outcome is not provided.

Example request

curl "https://relay.bayse.markets/v1/pm/markets/b2c3d4e5-f6a7-8901-bcde-f12345678901/ticker?outcome=YES"
const marketId = 'b2c3d4e5-f6a7-8901-bcde-f12345678901';
const response = await fetch(
  `https://relay.bayse.markets/v1/pm/markets/${marketId}/ticker?outcome=YES`
);
const ticker = await response.json();
import requests

market_id = 'b2c3d4e5-f6a7-8901-bcde-f12345678901'
resp = requests.get(
    f'https://relay.bayse.markets/v1/pm/markets/{market_id}/ticker',
    params={'outcome': 'YES'},
)
ticker = resp.json()
req, _ := http.NewRequest(
    "GET",
    "https://relay.bayse.markets/v1/pm/markets/b2c3d4e5-f6a7-8901-bcde-f12345678901/ticker",
    nil,
)
q := req.URL.Query()
q.Add("outcome", "YES")
req.URL.RawQuery = q.Encode()
resp, _ := http.DefaultClient.Do(req)

Response

Returns current market statistics for the requested outcome.
{
  "marketId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "outcome": "YES",
  "lastPrice": 0.72,
  "bestBid": 0.70,
  "bestAsk": 0.72,
  "midPrice": 0.71,
  "spread": 0.02,
  "volume24h": 15420,
  "high24h": 0.74,
  "low24h": 0.65,
  "priceChange24h": 0.04,
  "tradeCount24h": 247,
  "timestamp": "2026-02-17T12:00:00Z"
}