curl https://api.arcus.xyz/v1/midsimport requests
r = requests.get("https://api.arcus.xyz/v1/mids")
print(r.json()) # {"BTC-USD": "65000.5", "ETH-USD": "3000.0", ...}
const res = await fetch("https://api.arcus.xyz/v1/mids");
console.log(await res.json());
const options = {method: 'GET'};
fetch('https://api.arcus.xyz/v1/mids', 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.arcus.xyz/v1/mids",
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.arcus.xyz/v1/mids"
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.arcus.xyz/v1/mids")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcus.xyz/v1/mids")
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{
"mids": {
"BTC-USD": "95234.5",
"ETH-USD": "3456.78"
},
"globalSequenceId": 123
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}{
"error": "rate limited",
"reason": "account_empty",
"retryAfterMs": 850,
"clientId": "my-order-42"
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}Get all mid prices
Returns precomputed mids for every market. Markets with no bid, no ask, or no top-of-book return an empty string for that key.
curl https://api.arcus.xyz/v1/midsimport requests
r = requests.get("https://api.arcus.xyz/v1/mids")
print(r.json()) # {"BTC-USD": "65000.5", "ETH-USD": "3000.0", ...}
const res = await fetch("https://api.arcus.xyz/v1/mids");
console.log(await res.json());
const options = {method: 'GET'};
fetch('https://api.arcus.xyz/v1/mids', 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.arcus.xyz/v1/mids",
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.arcus.xyz/v1/mids"
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.arcus.xyz/v1/mids")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcus.xyz/v1/mids")
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{
"mids": {
"BTC-USD": "95234.5",
"ETH-USD": "3456.78"
},
"globalSequenceId": 123
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}{
"error": "rate limited",
"reason": "account_empty",
"retryAfterMs": 850,
"clientId": "my-order-42"
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}{
"error": "Invalid request body",
"code": "GEO_RESTRICTED",
"errorSource": "Order",
"errorType": "Tick",
"rejectionReason": "POST_ONLY_WOULD_CROSS"
}Query Parameters
Restrict the response to a single market. Accepts either the display name (e.g. BTC-USD, case-insensitive) or the numeric market id (e.g. 1). Omit to return every online market. An unresolvable value → 400. A filter naming an OFFLINE market returns an empty mids object, matching how the unfiltered response omits offline markets.
"BTC-USD"
Response
Map of market name to mid price decimal string.
Market display name (e.g. BTC-USD) to mid price decimal string; empty string if unavailable. Keys are ordered by ascending marketId. Only ONLINE markets are included; OFFLINE markets are omitted.
Show child attributes
Show child attributes
{
"BTC-USD": "95234.5",
"ETH-USD": "3456.78"
}
Global engine sequence id for this mids snapshot (max per-market globalSequenceId when derived from orderbook snapshots).
Was this page helpful?