GET
/v1/last_quote/currencies/{from}/{to}
Forex Last Quote
Most recent quote (bid/ask) for a forex pair.
Endpoint Details
| HTTP Method |
GET |
| Path |
/v1/last_quote/currencies/{from}/{to} |
| Version |
v1 |
| Minimum Plan |
free |
Path Parameters
| Parameter |
Required |
Description |
Example |
from |
Required |
Source currency code (e.g., USD) |
USD |
to |
Required |
Target currency code (e.g., EUR) |
EUR |
Query Parameters
| Parameter |
Type |
Required |
Description |
api_key |
string |
Required |
Your API key for authentication |
limit |
integer |
Optional
|
Maximum number of results to return |
sort |
string |
Optional
|
Sort order (asc or desc) |
Example Request
curl "https://mail.tradeiqai.com/api/v1/last_quote/currencies/USD/EUR?api_key=YOUR_API_KEY"
Note: Replace YOUR_API_KEY with your actual API key.
Response Attributes
| Attribute |
Type |
Description |
ok | boolean | Indicates if the request was successful (e.g., 1) |
data | object | Response data object |
data.status | string | Response status (typically "OK") (e.g., success) |
Example Response
{
"ok": true,
"data": {
"status": "success",
"from": "USD",
"to": "EUR",
"last": {
"ask": 0.84131999999999995676347452899790368974208831787109375,
"bid": 0.8403199999999999558752961092977784574031829833984375,
"exchange": 48,
"timestamp": 1770764053000
},
"bid": null,
"ask": null,
"exchange": null,
"timestamp": null
}
}