List Pulse markets
curl --request GET \
--url https://api-mainnet.xo.market/api/pulse/marketsimport requests
url = "https://api-mainnet.xo.market/api/pulse/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/pulse/markets', 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-mainnet.xo.market/api/pulse/markets",
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://api-mainnet.xo.market/api/pulse/markets"
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://api-mainnet.xo.market/api/pulse/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/pulse/markets")
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{
"data": [
{
"id": 123,
"marketConfigId": 1,
"adapterConfigId": 1,
"marketConfigName": "BTC-5min",
"marketAddress": "<string>",
"status": "ACTIVE",
"cycleNumber": 9821,
"startsAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"observationStartsAt": "2023-11-07T05:31:56Z",
"observationEndsAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"openingTwap": "<string>",
"closingTwap": "<string>",
"winningOutcome": 123,
"sampleCount": 60,
"marketMetadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 42,
"totalPages": 5,
"hasNextPage": true,
"hasPreviousPage": false
}
}Pulse Markets
List Pulse markets
Pulse markets are short-horizon cycles (for example BTC 5-minute
windows). Use status=ACTIVE to fetch the currently-open cycles
and status=RESOLVED (or CLOSED) to page through history.
GET
/
pulse
/
markets
List Pulse markets
curl --request GET \
--url https://api-mainnet.xo.market/api/pulse/marketsimport requests
url = "https://api-mainnet.xo.market/api/pulse/markets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api-mainnet.xo.market/api/pulse/markets', 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-mainnet.xo.market/api/pulse/markets",
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://api-mainnet.xo.market/api/pulse/markets"
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://api-mainnet.xo.market/api/pulse/markets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-mainnet.xo.market/api/pulse/markets")
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{
"data": [
{
"id": 123,
"marketConfigId": 1,
"adapterConfigId": 1,
"marketConfigName": "BTC-5min",
"marketAddress": "<string>",
"status": "ACTIVE",
"cycleNumber": 9821,
"startsAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"observationStartsAt": "2023-11-07T05:31:56Z",
"observationEndsAt": "2023-11-07T05:31:56Z",
"resolvedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"openingTwap": "<string>",
"closingTwap": "<string>",
"winningOutcome": 123,
"sampleCount": 60,
"marketMetadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 42,
"totalPages": 5,
"hasNextPage": true,
"hasPreviousPage": false
}
}Query Parameters
Page number (1-indexed).
Required range:
x >= 1Page size for the Pulse endpoints.
Required range:
1 <= x <= 100ACTIVE, RESOLVED, CLOSED.
Example:
"ACTIVE"
Restrict to a specific market config (asset + horizon).
Available options:
createdAt, expiresAt, resolvedAt, closedAt Available options:
ASC, DESC