curl "https://api.arcus.xyz/v1/trades?market=BTC-USD&limit=20"
import requests
r = requests.get(
"https://api.arcus.xyz/v1/trades",
params={"market": "BTC-USD", "limit": 20},
)
print(r.json())
const url = new URL("https://api.arcus.xyz/v1/trades");
url.searchParams.set("market", "BTC-USD");
url.searchParams.set("limit", "20");
const res = await fetch(url);
console.log(await res.json());
const options = {method: 'GET'};
fetch('https://api.arcus.xyz/v1/trades', 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/trades",
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/trades"
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/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcus.xyz/v1/trades")
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{
"trades": [
{
"marketId": 0,
"marketDisplayName": "BTC-USD",
"side": "BUY",
"price": "94500.00",
"size": "0.25",
"tradeId": "12345",
"timestamp": 1712345678000000,
"takerOrderId": "abc-123...",
"takerAddress": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"makerOrderId": "def-456...",
"makerAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"sequenceNumber": 9991234
}
],
"total": 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"
}Get recent public trades
Returns recent public trades for a market, newest-first. One row per maker/taker pairing — a market sweep that hit 3 makers produces 3 rows. Same shape as the trades WebSocket channel. No authentication header is required.
curl "https://api.arcus.xyz/v1/trades?market=BTC-USD&limit=20"
import requests
r = requests.get(
"https://api.arcus.xyz/v1/trades",
params={"market": "BTC-USD", "limit": 20},
)
print(r.json())
const url = new URL("https://api.arcus.xyz/v1/trades");
url.searchParams.set("market", "BTC-USD");
url.searchParams.set("limit", "20");
const res = await fetch(url);
console.log(await res.json());
const options = {method: 'GET'};
fetch('https://api.arcus.xyz/v1/trades', 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/trades",
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/trades"
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/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.arcus.xyz/v1/trades")
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{
"trades": [
{
"marketId": 0,
"marketDisplayName": "BTC-USD",
"side": "BUY",
"price": "94500.00",
"size": "0.25",
"tradeId": "12345",
"timestamp": 1712345678000000,
"takerOrderId": "abc-123...",
"takerAddress": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"makerOrderId": "def-456...",
"makerAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
"sequenceNumber": 9991234
}
],
"total": 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"
}trades WebSocket channel. No authentication header is required.Query Parameters
Market identifier, e.g. "BTC-USD".
"BTC-USD"
Maximum number of trades to return. Default and maximum are both 1000; requests with a value above the maximum are silently clamped. Pass an explicit smaller value when you want fewer rows.
1 <= x <= 1000Start of the time window, filtering on timestamp (epoch microseconds, inclusive) — the same unit and field the response reports, so a timestamp read from one page is a valid bound for the next with no conversion.
Second- and millisecond-scale values are rejected with a 400 (the server requires at least 1e14). A millisecond bound read as microseconds would land in 1970 and quietly return nothing.
x >= 1000000000000001785801600123456
End of the time window, filtering on timestamp (epoch microseconds, inclusive) — the same unit and field the response reports, so a timestamp read from one page is a valid bound for the next with no conversion.
The bound closes over the whole microsecond it names, so page boundaries overlap by design — deduplicate by id when paging.
Second- and millisecond-scale values are rejected with a 400 (the server requires at least 1e14). A millisecond bound read as microseconds would land in 1970 and quietly return nothing.
x >= 1000000000000001785801699001200
Was this page helpful?