curl --request GET \
--url https://api.ripio.com/trade/public/tradesimport requests
url = "https://api.ripio.com/trade/public/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ripio.com/trade/public/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.ripio.com/trade/public/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.ripio.com/trade/public/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.ripio.com/trade/public/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/public/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{
"data": {
"trades": [
{
"amount": 0.2404764,
"date": "2019-01-03T02:27:33.947Z",
"id": "2B222F22-5235-45FA-97FC-E9DBFA2575EE",
"maker_order_id": "F49F5BD8-3F5B-4364-BCEE-F36F62DB966A",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15160,
"taker_order_id": "FEAB5CEC-7F9E-4F95-B67D-9E8D5C739BE3",
"taker_side": "sell",
"taker_type": "market",
"timestamp": 1675708481219,
"total_value": 3638.4
},
{
"amount": 0.00563617,
"date": "2019-01-03T02:27:33.943Z",
"id": "CDC492A5-B1BF-4353-BE7A-43F51C371388",
"maker_order_id": "53BF30D2-901C-43D5-B0D1-62CD05DFD02A",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15163,
"taker_order_id": "E4B1B38D-C871-4476-9314-3DC23292F45E",
"taker_side": "sell",
"taker_type": "limit",
"timestamp": 1675708481220,
"total_value": 84.91
},
{
"amount": 0.00680154,
"date": "2019-01-03T02:27:33.940Z",
"id": "910AA20F-211F-4755-90A7-94227DB407D8",
"maker_order_id": "1FD30735-E055-4200-AD3D-007B02A5BA92",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15163.03,
"taker_order_id": "DBC6D4AF-D454-46DF-80EC-E19528A0FB25",
"taker_side": "sell",
"taker_type": "limit",
"timestamp": 1675708481221,
"total_value": 104.1
}
],
"pagination": {
"current_page": 1,
"registers_count": 21,
"total_pages": 1,
"page_size": 100
},
"nc": "<string>",
"pc": "<string>"
},
"error_code": null,
"message": null
}Trades
Lists the trades history based on the filtering criteria.
Attention: Due to performance concerns, this endpoint now uses cursor-based pagination. The pagination object currently included in the response is now a placeholder and will be entirely removed as of 2026-06-01. The parameter current_page is also a placeholder and will be removed at the same time. Please update your integration accordingly and refer to the documentation for the correct pagination handling.
Authorization
- No API key required — this endpoint is public.
curl --request GET \
--url https://api.ripio.com/trade/public/tradesimport requests
url = "https://api.ripio.com/trade/public/trades"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ripio.com/trade/public/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.ripio.com/trade/public/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.ripio.com/trade/public/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.ripio.com/trade/public/trades")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ripio.com/trade/public/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{
"data": {
"trades": [
{
"amount": 0.2404764,
"date": "2019-01-03T02:27:33.947Z",
"id": "2B222F22-5235-45FA-97FC-E9DBFA2575EE",
"maker_order_id": "F49F5BD8-3F5B-4364-BCEE-F36F62DB966A",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15160,
"taker_order_id": "FEAB5CEC-7F9E-4F95-B67D-9E8D5C739BE3",
"taker_side": "sell",
"taker_type": "market",
"timestamp": 1675708481219,
"total_value": 3638.4
},
{
"amount": 0.00563617,
"date": "2019-01-03T02:27:33.943Z",
"id": "CDC492A5-B1BF-4353-BE7A-43F51C371388",
"maker_order_id": "53BF30D2-901C-43D5-B0D1-62CD05DFD02A",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15163,
"taker_order_id": "E4B1B38D-C871-4476-9314-3DC23292F45E",
"taker_side": "sell",
"taker_type": "limit",
"timestamp": 1675708481220,
"total_value": 84.91
},
{
"amount": 0.00680154,
"date": "2019-01-03T02:27:33.940Z",
"id": "910AA20F-211F-4755-90A7-94227DB407D8",
"maker_order_id": "1FD30735-E055-4200-AD3D-007B02A5BA92",
"maker_side": "buy",
"maker_type": "limit",
"pair": "BTC_BRL",
"price": 15163.03,
"taker_order_id": "DBC6D4AF-D454-46DF-80EC-E19528A0FB25",
"taker_side": "sell",
"taker_type": "limit",
"timestamp": 1675708481221,
"total_value": 104.1
}
],
"pagination": {
"current_page": 1,
"registers_count": 21,
"total_pages": 1,
"page_size": 100
},
"nc": "<string>",
"pc": "<string>"
},
"error_code": null,
"message": null
}Query Parameters
Currency pair code
"BTC_BRL"
Initial datetime filter in ISO-8601 format
"2020-01-01T03:00:00.000Z"
Final datetime filter in ISO-8601 format
"2020-01-03T02:59:59.000Z"
Number of records per page
100
Page number for pagination
3
The c parameter is the cursor you should use to fetch the next page of results