curl --request GET \
--url https://builder.prod.bedrock.ostium.io/v1/pricesimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/prices', 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/prices",
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/prices"
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/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/prices")
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{
"prices": [
{
"feed_id": "1",
"pair": "BTC-USD",
"from": "BTC",
"to": "USD",
"bid": 97421.5,
"mid": 97422,
"ask": 97422.5,
"isMarketOpen": true,
"isDayTradingClosed": false,
"secondsToToggleIsDayTradingClosed": 3600,
"timestampSeconds": 1710000000,
"schedule": {
"id": 1,
"alwaysOpen": true
}
}
],
"stale": false,
"generatedAt": 1710000000123
}{
"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": "Live price feed not connected",
"stale": true
}Latest price for every pair
A point-in-time snapshot of the most recent bid/mid/ask for every pair. Each entry is the last price received for that pair, so a quiet market returns an older timestamp rather than no price at all.
Use it to paint an initial view, to reconcile after a gap, or where a persistent connection is impractical. For continuous updates prefer the WebSocket stream (/v1/prices/stream) — polling this endpoint adds latency and burns rate-limit budget for data that is pushed for free.
Each tick carries its own timestampSeconds; check it per pair rather than relying on the top-level stale flag, which reflects the feed as a whole. A 503 means the feed has not delivered any ticks yet — retry rather than fail.
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/pricesimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/prices"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/prices', 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/prices",
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/prices"
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/prices")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/prices")
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{
"prices": [
{
"feed_id": "1",
"pair": "BTC-USD",
"from": "BTC",
"to": "USD",
"bid": 97421.5,
"mid": 97422,
"ask": 97422.5,
"isMarketOpen": true,
"isDayTradingClosed": false,
"secondsToToggleIsDayTradingClosed": 3600,
"timestampSeconds": 1710000000,
"schedule": {
"id": 1,
"alwaysOpen": true
}
}
],
"stale": false,
"generatedAt": 1710000000123
}{
"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": "Live price feed not connected",
"stale": true
}