curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}import requests
url = "https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}', 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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}",
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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}"
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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}")
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": [
{
"data": {
"executedAt": "2023-11-13T10:30:00Z",
"makerSide": "BUY",
"price": "35000.00",
"quantity": "0.5",
"quantityRaw": "50000000",
"tradeId": "123e4567-e89b-12d3-a456-426614174000"
},
"eventType": "trade",
"tradingPairId": "456e7890-e12b-12d3-a456-426614174000",
"tradingMode": "SPOT"
}
],
"pageSize": 25,
"nextPageToken": "<string>"
}Recent Trades
Recent Trades
Get recent trades for a trading pair sorted by execution time.
curl --request GET \
--url https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}import requests
url = "https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}', 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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}",
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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}"
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://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.apimonaco.xyz/api/v1/trades/{tradingPairId}")
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": [
{
"data": {
"executedAt": "2023-11-13T10:30:00Z",
"makerSide": "BUY",
"price": "35000.00",
"quantity": "0.5",
"quantityRaw": "50000000",
"tradeId": "123e4567-e89b-12d3-a456-426614174000"
},
"eventType": "trade",
"tradingPairId": "456e7890-e12b-12d3-a456-426614174000",
"tradingMode": "SPOT"
}
],
"pageSize": 25,
"nextPageToken": "<string>"
}Path Parameters
Query Parameters
Max trades to return (max 1000)
1 <= x <= 1000Pagination cursor with two states:
- Omitted or empty string (""): start a cursor walk with no prior position, from the most recent trade (this listing always sorts newest-first).
- Non-empty: an opaque cursor from a previous response's
next_page_token; results resume immediately after that position.
The walk is a keyset seek on (executed_at, id), both immutable once a
trade is written, so a page can neither repeat nor skip a trade when new
fills land mid-walk — the failure the removed page number had by
construction on a table this endpoint appends to continuously.
trading_pair_id is pinned inside the token, so a token minted for one
pair is rejected rather than seeking into another pair's history.
Response
OK
Recent trades for a trading pair.
Show child attributes
Show child attributes
Maximum number of trades returned
25
Cursor for the next page, under proven semantics: the read over-fetches
one row past page_size, so an empty token means the walk is finished and
a non-empty token means a further trade was actually seen. Unlike
ListUserTradesResponse.next_page_token (AIP-158 "maybe more"), a client
can stop here on the empty token without a confirming extra request — this
listing reads one table, so there is no hot/archive interleave that could
hide rows behind a short page.
That one table is the hot trades table, so a walk reaches the end of the
archiver's retention window rather than the end of the pair's history. This
is the endpoint's long-standing scope, unchanged by the cursor.
There is no public walk over a pair's ARCHIVED history, and this endpoint is
not a partial one — do not point market-data consumers at the user trade
listings to continue it. GetUserTrades / ListUserTrades do merge the
archive, but they are authenticated and user-scoped (auth.user_id is the
read's first mandatory filter), so they return only trades where the caller
was maker or taker. Following them to extend a public pair tape would
silently drop every fill between two other parties. An individual archived
trade does stay publicly reachable by id: GetTradeById falls back to the
archive table on a hot miss.
Was this page helpful?

