Get Wallet Trading History
curl --request GET \
--url https://backend-global.gains.trade/api/personal-trading-history/{address}import requests
url = "https://backend-global.gains.trade/api/personal-trading-history/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://backend-global.gains.trade/api/personal-trading-history/{address}', 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://backend-global.gains.trade/api/personal-trading-history/{address}",
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://backend-global.gains.trade/api/personal-trading-history/{address}"
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://backend-global.gains.trade/api/personal-trading-history/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend-global.gains.trade/api/personal-trading-history/{address}")
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": [
{}
],
"pagination": {
"hasMore": true,
"nextCursor": 123,
"limit": 123
}
}{
"error": "<string>",
"message": "<string>",
"success": true
}{
"error": "<string>",
"message": "<string>",
"success": true
}Trading Data
Get Wallet Trading History
Returns paginated trading history for one wallet.
GET
/
api
/
personal-trading-history
/
{address}
Get Wallet Trading History
curl --request GET \
--url https://backend-global.gains.trade/api/personal-trading-history/{address}import requests
url = "https://backend-global.gains.trade/api/personal-trading-history/{address}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://backend-global.gains.trade/api/personal-trading-history/{address}', 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://backend-global.gains.trade/api/personal-trading-history/{address}",
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://backend-global.gains.trade/api/personal-trading-history/{address}"
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://backend-global.gains.trade/api/personal-trading-history/{address}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend-global.gains.trade/api/personal-trading-history/{address}")
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": [
{}
],
"pagination": {
"hasMore": true,
"nextCursor": 123,
"limit": 123
}
}{
"error": "<string>",
"message": "<string>",
"success": true
}{
"error": "<string>",
"message": "<string>",
"success": true
}Endpoint
GET /api/personal-trading-history/{address}
Returns paginated trading history for one wallet.
Parameters
| Parameter | Location | Required | Type | Description |
|---|---|---|---|---|
address | path | Yes | string | Trader wallet address. |
chainId | query | Yes | integer | Blockchain chain ID. Common values: 42161 Arbitrum, 8453 Base, 137 Polygon. |
cursor | query | No | integer | Pagination cursor. |
limit | query | No | integer | Items to return. |
startDate | query | No | string | Optional ISO start date. |
endDate | query | No | string | Optional ISO end date. |
pair | query | No | string | Optional pair filter. |
action | query | No | string | Optional action filter. |
Usage Example
curl -X GET "https://backend-global.gains.trade/api/personal-trading-history/0x0000000000000000000000000000000000000000?chainId=42161&limit=50"
Response Structure
The generated API panel lists the response schema for status codes: 200, 400, 500. Error responses generally return anerror or message field.Path Parameters
Trader wallet address.
Query Parameters
Blockchain chain ID. Common values: 42161 Arbitrum, 8453 Base, 137 Polygon.
Example:
42161
Pagination cursor.
Items to return.
Example:
50
Optional ISO start date.
Optional ISO end date.
Optional pair filter.
Optional action filter.
