curl --request GET \
--url https://api.dexploit.dev/swaps/trader/{wallet} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dexploit.dev/swaps/trader/{wallet}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dexploit.dev/swaps/trader/{wallet}', 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.dexploit.dev/swaps/trader/{wallet}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.dexploit.dev/swaps/trader/{wallet}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.dexploit.dev/swaps/trader/{wallet}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexploit.dev/swaps/trader/{wallet}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trader": "<string>",
"swaps": [
{
"signature": "<string>",
"slot": 123,
"timestamp": 123,
"token_address": "<string>",
"pair_address": "<string>",
"user": "<string>",
"is_buy": true,
"dex": 1,
"sol_amount": 123,
"token_amount": 123,
"fee": 123,
"fee_bps": 123,
"creator_fee": 123,
"creator_fee_bps": 123,
"price_per_token": 123,
"pool_price": 123,
"price_impact_bps": 123,
"base_decimals": 123,
"quote_decimals": 123,
"virtual_sol_reserves": 123,
"virtual_token_reserves": 123,
"real_sol_reserves": 123,
"real_token_reserves": 123,
"transfer_fee_in": 123,
"transfer_fee_out": 123,
"cashback": 123,
"cashback_bps": 123,
"block_tx_index": 123,
"ix_index": 123
}
],
"stats": {
"total_swaps": 123,
"total_buys": 123,
"total_sells": 123,
"total_sol_volume": 123,
"unique_tokens": 123
},
"price_semantics": "<string>",
"next_cursor": "<string>"
}{
"error": "not_found",
"message": "Swap not found: 43nGAPtVqZxiar6cbdqBg4DRTkG6gM2EsPzPz1igqWkLraYDZcygonrGXkAynXkFr8QocyG4BnefMBzVXMkbDYX2"
}Swap history for a trader (with lifetime stats)
All swaps a wallet has made, across pools and DEXs, plus the same TraderStats block returned by /stats/trader/ — saves a second round-trip when rendering a wallet page.
curl --request GET \
--url https://api.dexploit.dev/swaps/trader/{wallet} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.dexploit.dev/swaps/trader/{wallet}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.dexploit.dev/swaps/trader/{wallet}', 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.dexploit.dev/swaps/trader/{wallet}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.dexploit.dev/swaps/trader/{wallet}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.dexploit.dev/swaps/trader/{wallet}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dexploit.dev/swaps/trader/{wallet}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"trader": "<string>",
"swaps": [
{
"signature": "<string>",
"slot": 123,
"timestamp": 123,
"token_address": "<string>",
"pair_address": "<string>",
"user": "<string>",
"is_buy": true,
"dex": 1,
"sol_amount": 123,
"token_amount": 123,
"fee": 123,
"fee_bps": 123,
"creator_fee": 123,
"creator_fee_bps": 123,
"price_per_token": 123,
"pool_price": 123,
"price_impact_bps": 123,
"base_decimals": 123,
"quote_decimals": 123,
"virtual_sol_reserves": 123,
"virtual_token_reserves": 123,
"real_sol_reserves": 123,
"real_token_reserves": 123,
"transfer_fee_in": 123,
"transfer_fee_out": 123,
"cashback": 123,
"cashback_bps": 123,
"block_tx_index": 123,
"ix_index": 123
}
],
"stats": {
"total_swaps": 123,
"total_buys": 123,
"total_sells": 123,
"total_sol_volume": 123,
"unique_tokens": 123
},
"price_semantics": "<string>",
"next_cursor": "<string>"
}{
"error": "not_found",
"message": "Swap not found: 43nGAPtVqZxiar6cbdqBg4DRTkG6gM2EsPzPz1igqWkLraYDZcygonrGXkAynXkFr8QocyG4BnefMBzVXMkbDYX2"
}Authorizations
Preferred for swaps-api endpoints (/swaps/*, /stats/*, /trending, /pool-events).
Path Parameters
Query Parameters
Maximum swaps per page. A full page can hold a few more than this: it always ends on a whole group of swaps that share one timestamp and slot, so paging with cursor never skips one.
1 <= x <= 1000Not supported on this route: any value above 0 returns 400. Page with cursor instead.
x >= 0Keyset cursor, <ts_ms>:<slot>. Pass the previous response's next_cursor to get the next, older page; omit it for the newest page. A malformed value returns 400.
^[0-9]+:[0-9]+$"1790201347000:449834465"
Response
Trader swaps + stats
Show child attributes
Show child attributes
Lifetime stats for a wallet across all pools and DEXs.
Show child attributes
Show child attributes
A short, machine-readable note on how the price fields in this response are derived. Emitted on every response so a client never has to infer it from the docs. Treat it as informational text, not a stable enum — the wording may change as derivations change.
Pass as cursor to get the next page. Present whenever this page is full, and absent once a page reaches the end of the history. The page after the last full page can be empty.

