curl --request GET \
--url 'https://gateway.amana.io/trading/activity?to=<to>' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/activity?to=<to>"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/activity?to=<to>', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"deals": [
{
"reason": "money",
"id": "<string>",
"time": 123.45,
"type": "<string>",
"profit": 123.45,
"digits": 2,
"comment": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"delayed": true,
"sharia": true
}
],
"nextTo": 123.45,
"hasMore": true
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Account & reporting
Get trading history
Get closed trades, deposits, and withdrawals, newest first, one page at a time.
GET
/
trading
/
activity
curl --request GET \
--url 'https://gateway.amana.io/trading/activity?to=<to>' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/activity?to=<to>"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/activity?to=<to>', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"deals": [
{
"reason": "money",
"id": "<string>",
"time": 123.45,
"type": "<string>",
"profit": 123.45,
"digits": 2,
"comment": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"delayed": true,
"sharia": true
}
],
"nextTo": 123.45,
"hasMore": true
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Query parameters
Unix timestamp in milliseconds marking the end of the time window. Use Date.now() for the most recent activity.
Number of days to look back from the
to timestamp. Clamped between 1 and 31. Default is 3.Optional deal ID cursor. Only returns deals with ID less than this value, for client-side deduplication.
Response
200 Success.
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 400 | Invalid or missing field | Check the request against the schema. |
| 401 | Token missing or expired | Log in again or use the refresh token. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 429 / 5xx | Rate limit, or temporary issue on our side | Retry with backoff; contact support if it persists. |
curl --request GET \
--url 'https://gateway.amana.io/trading/activity?to=<to>' \
--header 'Authorization: Bearer <token>'
import requests
url = "https://gateway.amana.io/trading/activity?to=<to>"
headers = {"Authorization": "Bearer <token>"}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/trading/activity?to=<to>', {
method: 'GET',
headers: {"Authorization": "Bearer <token>"},
});
console.log(await response.json());
{
"deals": [
{
"reason": "money",
"id": "<string>",
"time": 123.45,
"type": "<string>",
"profit": 123.45,
"digits": 2,
"comment": "<string>",
"symbol": "<string>",
"logo": "<string>",
"friendlyName": "<string>",
"delayed": true,
"sharia": true
}
],
"nextTo": 123.45,
"hasMore": true
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
Last modified on October 8, 2026
