Get market trades
curl --request GET \
--url https://demo-api.mobula.io/api/1/market/trades/pairimport requests
url = "https://demo-api.mobula.io/api/1/market/trades/pair"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/market/trades/pair', 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://demo-api.mobula.io/api/1/market/trades/pair",
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://demo-api.mobula.io/api/1/market/trades/pair"
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://demo-api.mobula.io/api/1/market/trades/pair")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/market/trades/pair")
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": [
{
"blockchain": "<string>",
"hash": "<string>",
"pair": "<string>",
"date": 123,
"token_price_vs": 123,
"token_price": 123,
"token_amount": 123,
"token_amount_vs": 123,
"token_amount_usd": 123,
"sender": "<string>",
"transaction_sender_address": "<string>",
"token_amount_raw": "<string>",
"token_amount_raw_vs": "<string>",
"platform": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"totalFeesUSD": 123,
"gasFeesUSD": 123,
"platformFeesUSD": 123,
"mevFeesUSD": 123
}
]
}Trades
Get Pair Trades
Retrieve recent trade history for a specific trading pair or the most active pair linked to a token, with normalized pricing and volume metrics.
GET
/
1
/
market
/
trades
/
pair
Get market trades
curl --request GET \
--url https://demo-api.mobula.io/api/1/market/trades/pairimport requests
url = "https://demo-api.mobula.io/api/1/market/trades/pair"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://demo-api.mobula.io/api/1/market/trades/pair', 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://demo-api.mobula.io/api/1/market/trades/pair",
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://demo-api.mobula.io/api/1/market/trades/pair"
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://demo-api.mobula.io/api/1/market/trades/pair")
.asString();require 'uri'
require 'net/http'
url = URI("https://demo-api.mobula.io/api/1/market/trades/pair")
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": [
{
"blockchain": "<string>",
"hash": "<string>",
"pair": "<string>",
"date": 123,
"token_price_vs": 123,
"token_price": 123,
"token_amount": 123,
"token_amount_vs": 123,
"token_amount_usd": 123,
"sender": "<string>",
"transaction_sender_address": "<string>",
"token_amount_raw": "<string>",
"token_amount_raw_vs": "<string>",
"platform": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"totalFeesUSD": 123,
"gasFeesUSD": 123,
"platformFeesUSD": 123,
"mevFeesUSD": 123
}
]
}Query Parameters
Available options:
asc, desc Available options:
pair, pool, asset Response
200 - application/json
Market trades response
Show child attributes
Show child attributes
⌘I