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,
"type": "buy",
"sender": "<string>",
"transaction_sender_address": "<string>",
"token_amount_raw": "<string>",
"token_amount_raw_vs": "<string>",
"operation": "regular",
"platform": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"totalFeesUSD": 123,
"gasFeesUSD": 123,
"platformFeesUSD": 123,
"mevFeesUSD": 123
}
]
}Trades Data
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,
"type": "buy",
"sender": "<string>",
"transaction_sender_address": "<string>",
"token_amount_raw": "<string>",
"token_amount_raw_vs": "<string>",
"operation": "regular",
"platform": {
"id": "<string>",
"name": "<string>",
"logo": "<string>"
},
"totalFeesUSD": 123,
"gasFeesUSD": 123,
"platformFeesUSD": 123,
"mevFeesUSD": 123
}
]
}Query Details
- For a specific pool: provide its pair/pool contract address in the
addressfield. - For an asset: use the Market Asset Query format with the asset name or token address. The endpoint will resolve it to the most active pair.
| Parameter | Type | Description |
|---|---|---|
blockchain | string | Blockchain name or ID, formatted as "evm:1" for Ethereum mainnet or "evm:56" for Binance Smart Chain. |
asset | string | Asset name or token contract address to resolve the most active pair automatically. |
address | string | Specific pair or pool contract address to query trades for. |
symbol | string | Token ticker symbol (optional alternative to asset). |
limit | number | Maximum number of trade records to return. |
amount | number | Minimum trade amount filter (optional). |
sortBy | string | Field to sort the results by (e.g., amount_usd, date). |
sortOrder | Sort order: "asc" for ascending or "desc" for descending. | |
offset | number | Pagination offset to skip a number of trade records. |
mode | Mode of querying (e.g., "asset", "pair"). | |
transactionSenderAddress | string | Filter trades initiated by a specific transaction sender address. |
Step-by-Step Tutorial and Video Walkthrough
- Check out the guide: Here
Usage Examples
- Query by Pool Address and Specific Sender Address
curl -X GET https://api.mobula.io/api/1/market/trades/pair?sortOrder=desc&mode=pair&address=0xc4ce8e63921b8b6cbdb8fcb6bd64cc701fb926f2&blockchain=ethereum&transactionSenderAddress=0x33e833f33ced917af1c2879faa95f375a2a66407
Query Response
Each trade record includes:- Blockchain & transaction hash
- Pair address and timestamp
- Token prices (quoted token and USD)
- Amounts in raw units, token units, and USD equivalent
- Trade type & operation (e.g., buy, sell, swap)
- Sender & transaction initiator addresses
- Platform: Trading platform/aggregator identifier (e.g., “axiom”, “gmgn”, “padre”, “trojan”, “universalX”) or null if not available
- Fees breakdown:
totalFeesUSD(total),gasFeesUSD,platformFeesUSD,mevFeesUSD
Query Parameters
Available options:
asc, desc Available options:
pair, pool, asset Response
200 - application/json
Market trades response
Show child attributes
Show child attributes