Skip to main content
GET
/
v1
/
macro
/
forex
/
historical
Get Forex Historical Data
curl --request GET \
  --url https://data-tools.prd.arrays.org/api/v1/macro/forex/historical \
  --header 'X-API-Key: <api-key>'
{
  "data": [
    {
      "change": 0.0015,
      "change_percent": 0.14,
      "close": 1.0865,
      "date": "2024-01-01",
      "high": 1.0875,
      "low": 1.084,
      "open": 1.085,
      "symbol": "EURUSD",
      "volume": 1234567,
      "vwap": 1.0858
    }
  ],
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "details": [
      {
        "field": "<string>",
        "got": "<string>",
        "reason": "<string>"
      }
    ],
    "docs_url": "<string>",
    "examples": [
      "<string>"
    ],
    "hint": "<string>",
    "message": "The requested resource was not found.",
    "suggestions": [
      "<string>"
    ]
  },
  "pagination": "<unknown>",
  "request_id": "<string>",
  "success": true
}

Authorizations

X-API-Key
string
header
required

API Key authentication. Example: "your-api-key-here"

Query Parameters

symbol
string
required

Forex symbol (e.g., EURUSD, GBPJPY)

start_time
integer<int64>
required

Start time (Unix timestamp in seconds)

end_time
integer<int64>
required

End time (Unix timestamp in seconds)

Response

Successfully retrieved forex historical data

data
object[]
error
object
pagination
any
request_id
string
success
boolean