curl --request GET \
--url https://builder.prod.bedrock.ostium.io/v1/market-hoursimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/market-hours"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/market-hours', 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://builder.prod.bedrock.ostium.io/v1/market-hours",
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://builder.prod.bedrock.ostium.io/v1/market-hours"
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://builder.prod.bedrock.ostium.io/v1/market-hours")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/market-hours")
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{
"schedules": {
"1": {
"id": 1,
"alwaysOpen": true
},
"2": {
"id": 2,
"timezone": "America/New_York",
"openingHours": [
"Mo-Th 00:00-24:00",
"Fr 00:00-16:59",
"Su 17:00-24:00"
],
"dayTradingHours": {
"from": "09:30",
"to": "16:00"
}
}
},
"markets": {
"BTCUSD": 1,
"EURUSD": 2,
"US500USD": 2
},
"lastUpdated": "2026-03-20T12:00:00.000Z"
}{
"error": "Bad Request",
"message": "Validation failed",
"issues": []
}{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Try again in 7s."
}{
"error": "Internal Server Error",
"message": "Internal Server Error"
}{
"error": "Service Unavailable",
"message": "Market hours not available yet"
}When each market is open
When each market is tradeable. Returns schedules (unique schedule definitions keyed by numeric id), markets (pair symbol → schedule id), and lastUpdated.
markets keys are unhyphenated and always the current pair name: look up US500USD, not US500-USD and not the legacy SPXUSD.
Use it to show opening hours, day-trading windows and holidays without hard-coding session rules per asset class — equities, FX and crypto differ, and a schedule may be alwaysOpen. Several pairs usually share one schedule, hence the two-part shape: look the pair up in markets, then read that id from schedules.
For whether a market is open right now, prefer the isMarketOpen and isDayTradingClosed fields on a price tick — this endpoint describes the calendar, not live state. Schedules change rarely, so cache the response and refresh periodically rather than per request.
Rate limit: 100 requests per 10 seconds per IP. Read x-ratelimit-* for the live budget rather than assuming this figure.
curl --request GET \
--url https://builder.prod.bedrock.ostium.io/v1/market-hoursimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/market-hours"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/market-hours', 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://builder.prod.bedrock.ostium.io/v1/market-hours",
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://builder.prod.bedrock.ostium.io/v1/market-hours"
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://builder.prod.bedrock.ostium.io/v1/market-hours")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/market-hours")
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{
"schedules": {
"1": {
"id": 1,
"alwaysOpen": true
},
"2": {
"id": 2,
"timezone": "America/New_York",
"openingHours": [
"Mo-Th 00:00-24:00",
"Fr 00:00-16:59",
"Su 17:00-24:00"
],
"dayTradingHours": {
"from": "09:30",
"to": "16:00"
}
}
},
"markets": {
"BTCUSD": 1,
"EURUSD": 2,
"US500USD": 2
},
"lastUpdated": "2026-03-20T12:00:00.000Z"
}{
"error": "Bad Request",
"message": "Validation failed",
"issues": []
}{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Try again in 7s."
}{
"error": "Internal Server Error",
"message": "Internal Server Error"
}{
"error": "Service Unavailable",
"message": "Market hours not available yet"
}Response
Normalized schedule cache
Show child attributes
Show child attributes
Pair to schedule id. Keys are unhyphenated (BTCUSD, not BTC-USD) — the only place in the API where that spelling appears, so strip the hyphen from the symbol you use everywhere else.
Show child attributes
Show child attributes