curl --request GET \
--url https://builder.prod.bedrock.ostium.io/v1/pairsimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/pairs', 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/pairs",
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/pairs"
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/pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/pairs")
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{
"chainId": 42161,
"first": 100,
"skip": 0,
"count": 1,
"pairs": [
{
"id": "0",
"from": "BTC",
"to": "USD",
"symbol": "BTC-USD",
"feed": "0x7404e3d104ea7841c3d9e6fd20adfe99b4ad586bc08d8f3bd3afef894cf184de",
"group": {
"id": "0",
"name": "crypto"
},
"maxLeverage": 100,
"minLeverage": 1,
"lastTradePrice": 78502.04,
"longOIInUnits": 0.783,
"shortOIInUnits": 1,
"maxOIInUsd": 6000000,
"volumeInUsd": 8470145463,
"totalOpenTrades": "182",
"totalOpenLimitOrders": "7",
"usageFeeP": "0",
"utilizationThresholdP": "0",
"curRollover": "0",
"lastFundingRate": "379925661",
"lastFundingTime": "1788165893",
"lastRolloverTime": "1788170405"
}
]
}{
"error": "Bad Request",
"message": "Validation failed",
"issues": []
}{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Try again in 7s."
}{
"error": "Bad Gateway",
"message": "Failed to reach the Ostium subgraph."
}Every listed pair and its live state
What is tradeable, and the limits that apply to it. Use it to build a market list, or to check leverage bounds and remaining capacity before sending an order.
id is the pairIndex an order intent signs — this endpoint is where you get it. Do not derive it by counting rows in a table.
Two names per pair, deliberately. from/to are the subgraph’s spelling, which for nine renamed instruments is the legacy one (SPX, CL, HG); symbol is what the price and depth endpoints expect (US500-USD, WTI-USD, XCU-USD). Join on symbol.
This is the on-chain view. For the bid/mid/ask a trade would price against use GET /v1/prices; for what a given size actually costs use GET /v1/depth/{pair}/quote.
Reading a pair
{
"from": "BTC",
"to": "USD",
"maxLeverage": 100,
"minLeverage": 1,
"lastTradePrice": 78502.04,
"longOIInUnits": 0.783,
"maxOIInUsd": 6000000,
"totalOpenTrades": "182"
}
Open interest and its cap are on different scales. longOIInUnits and shortOIInUnits are quantities of the base asset; maxOIInUsd is a USD ceiling. To compare them, multiply the unit figures by lastTradePrice first — here 0.783 BTC is about 61kagainsta6M cap.
maxLeverage is the limit that actually applies to this pair: most pairs inherit their group’s, and the few that are capped lower override it. minLeverage comes from the group.
from/to are the subgraph’s spelling, which for renamed assets is the legacy one — SPX, where every other endpoint says US500.
Rate limit: 60 requests per 10 seconds per IP. This budget is shared across /v1/pairs, /v1/trades, /v1/limits and GET /v1/orders, not counted per path. Read x-ratelimit-* for the live budget rather than assuming this figure.
curl --request GET \
--url https://builder.prod.bedrock.ostium.io/v1/pairsimport requests
url = "https://builder.prod.bedrock.ostium.io/v1/pairs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://builder.prod.bedrock.ostium.io/v1/pairs', 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/pairs",
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/pairs"
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/pairs")
.asString();require 'uri'
require 'net/http'
url = URI("https://builder.prod.bedrock.ostium.io/v1/pairs")
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{
"chainId": 42161,
"first": 100,
"skip": 0,
"count": 1,
"pairs": [
{
"id": "0",
"from": "BTC",
"to": "USD",
"symbol": "BTC-USD",
"feed": "0x7404e3d104ea7841c3d9e6fd20adfe99b4ad586bc08d8f3bd3afef894cf184de",
"group": {
"id": "0",
"name": "crypto"
},
"maxLeverage": 100,
"minLeverage": 1,
"lastTradePrice": 78502.04,
"longOIInUnits": 0.783,
"shortOIInUnits": 1,
"maxOIInUsd": 6000000,
"volumeInUsd": 8470145463,
"totalOpenTrades": "182",
"totalOpenLimitOrders": "7",
"usageFeeP": "0",
"utilizationThresholdP": "0",
"curRollover": "0",
"lastFundingRate": "379925661",
"lastFundingTime": "1788165893",
"lastRolloverTime": "1788170405"
}
]
}{
"error": "Bad Request",
"message": "Validation failed",
"issues": []
}{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Try again in 7s."
}{
"error": "Bad Gateway",
"message": "Failed to reach the Ostium subgraph."
}Query Parameters
Chain to read from: 42161 (Arbitrum One) or 421614 (Arbitrum Sepolia)
42161, 421614 Maximum rows to return (1-1000)
1 <= x <= 1000Rows to skip, for paging (0-5000; use since to page deeper)
0 <= x <= 5000