Get paginated trading activity history
curl --request GET \
--url https://gateway.amana.io/trading/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.amana.io/trading/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.amana.io/trading/activity', 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://gateway.amana.io/trading/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.amana.io/trading/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.amana.io/trading/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.amana.io/trading/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deals": [
{
"reason": "money",
"id": "<string>",
"time": 123,
"type": "<string>",
"profit": 123,
"digits": 2,
"comment": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"delayed": true,
"sharia": true
}
],
"hasMore": true,
"nextTo": 123
}{
"error": "<string>",
"message": "<string>",
"details": {}
}trading
Get paginated trading activity history
Returns closed trade deals and money transactions (deposits and withdrawals) for the authenticated user in reverse chronological order.
Pagination pattern: start with to=Date.now() to fetch the most recent activity. If hasMore is true in the response, pass the returned nextTo value as to in the next request to continue walking back through history. When hasMore is false, you have reached the beginning of the account history — no further pages exist.
This endpoint does NOT return open/pending positions or orders. It only reflects settled activity.
GET
/
trading
/
activity
Get paginated trading activity history
curl --request GET \
--url https://gateway.amana.io/trading/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://gateway.amana.io/trading/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway.amana.io/trading/activity', 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://gateway.amana.io/trading/activity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://gateway.amana.io/trading/activity"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://gateway.amana.io/trading/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://gateway.amana.io/trading/activity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deals": [
{
"reason": "money",
"id": "<string>",
"time": 123,
"type": "<string>",
"profit": 123,
"digits": 2,
"comment": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"delayed": true,
"sharia": true
}
],
"hasMore": true,
"nextTo": 123
}{
"error": "<string>",
"message": "<string>",
"details": {}
}Query Parameters
Response
Default Response
Last modified on October 7, 2026
