Compare perps quotes
curl --request GET \
--url https://www.oceanx.trade/api/v1/perps/quote \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.oceanx.trade/api/v1/perps/quote"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.oceanx.trade/api/v1/perps/quote', 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://www.oceanx.trade/api/v1/perps/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://www.oceanx.trade/api/v1/perps/quote"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.oceanx.trade/api/v1/perps/quote")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.oceanx.trade/api/v1/perps/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"perVenue": [
{
"venue": "hl",
"symbol": "<string>",
"takerBps": 123,
"makerBps": 123,
"ourBps": 123,
"impactBps": 123,
"fundingAprPct": 123,
"reliability": 123,
"allInBps": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"healthy": true
}
],
"bestPick": {
"venue": "hl",
"symbol": "<string>",
"takerBps": 123,
"makerBps": 123,
"ourBps": 123,
"impactBps": 123,
"fundingAprPct": 123,
"reliability": 123,
"allInBps": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"healthy": true
},
"reasonBps": 123
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}Perps
Compare perps quotes
Hypothetical coin-unit order; does not sign or submit. Scores taker flow plus impact and estimated funding; maker fees are informational. An unavailable best pick is null.
GET
/
api
/
v1
/
perps
/
quote
Compare perps quotes
curl --request GET \
--url https://www.oceanx.trade/api/v1/perps/quote \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.oceanx.trade/api/v1/perps/quote"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.oceanx.trade/api/v1/perps/quote', 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://www.oceanx.trade/api/v1/perps/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://www.oceanx.trade/api/v1/perps/quote"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.oceanx.trade/api/v1/perps/quote")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.oceanx.trade/api/v1/perps/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"perVenue": [
{
"venue": "hl",
"symbol": "<string>",
"takerBps": 123,
"makerBps": 123,
"ourBps": 123,
"impactBps": 123,
"fundingAprPct": 123,
"reliability": 123,
"allInBps": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"healthy": true
}
],
"bestPick": {
"venue": "hl",
"symbol": "<string>",
"takerBps": 123,
"makerBps": 123,
"ourBps": 123,
"impactBps": 123,
"fundingAprPct": 123,
"reliability": 123,
"allInBps": 123,
"bid": 123,
"ask": 123,
"mid": 123,
"healthy": true
},
"reasonBps": 123
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}{
"error": {
"code": "no_route",
"message": "<string>"
},
"requestId": "<string>"
}Authorizations
An OceanX API key, created in the app under Settings → Developer API. Send it as Authorization: Bearer ox_live_…. Required scopes are operation-specific: market reads use md.read, tracker uses tracker.read, copy reads use copy.read, alert operations use alerts.read or alerts.write, and owned wallet/funding reads require explicit account.read. New scopes require explicit selection and grant no trading authority. Existing perps operations retain their documented scopes.
Query Parameters
Cross-venue symbol.
Required string length:
1 - 64Order side.
Available options:
buy, sell Size in coin units.
Required range:
x <= 1000000000000Expected hold duration.
Required range:
0 <= x <= 8760Comma-separated venue keys.
Required string length:
1 - 256