curl --request GET \
--url 'https://gateway.amana.io/chart/sparkline/{ticker}'
import requests
url = "https://gateway.amana.io/chart/sparkline/{ticker}"
headers = {}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/chart/sparkline/{ticker}', {
method: 'GET',
headers: {},
});
console.log(await response.json());
"<string>"
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Market data
Get sparkline image
Get a small SVG chart of the last trading day’s price movement for an instrument.
GET
/
chart
/
sparkline
/
{ticker}
curl --request GET \
--url 'https://gateway.amana.io/chart/sparkline/{ticker}'
import requests
url = "https://gateway.amana.io/chart/sparkline/{ticker}"
headers = {}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/chart/sparkline/{ticker}', {
method: 'GET',
headers: {},
});
console.log(await response.json());
"<string>"
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Path parameters
string
required
Trading symbol (e.g. XAUUSD, EURUSD, BTCUSD).
Response
200 Success.
string
Possible Errors
| Error | Possible cause | What to do |
|---|---|---|
| 400 | Invalid or missing field | Check the request against the schema. |
| 403 | IP not whitelisted, or account restricted | Confirm your IP is whitelisted; otherwise contact Amana. |
| 404 | The requested item doesn’t exist | Check the ID or path parameter. |
| 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/chart/sparkline/{ticker}'
import requests
url = "https://gateway.amana.io/chart/sparkline/{ticker}"
headers = {}
response = requests.request("GET", url, headers=headers)
print(response.json())
const response = await fetch('https://gateway.amana.io/chart/sparkline/{ticker}', {
method: 'GET',
headers: {},
});
console.log(await response.json());
"<string>"
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
{
"error": "<string>",
"message": "<string>"
}
{
"error": "<string>",
"message": "<string>",
"details": {}
}
Last modified on October 8, 2026
