Skip to main content
GET
/
openapi
/
v1
/
fx
/
table
FX table
curl --request GET \
  --url https://api.hayinsights.com/openapi/v1/fx/table \
  --header 'X-API-Key: <api-key>'
{
  "success": true,
  "statusCode": 200,
  "data": {
    "asOf": "2026-06-19",
    "rows": [
      {
        "pair": "EUR/USD",
        "lastPrice": 1.14,
        "changePct": -0.23,
        "sparkline10d": [
          1.15,
          1.16,
          1.16,
          1.16,
          1.16,
          1.16,
          1.16,
          1.15,
          1.15,
          1.14
        ],
        "high52w": 1.2,
        "low52w": 1.14,
        "asOf": "2026-06-19"
      },
      {
        "pair": "USD/JPY",
        "lastPrice": 161.35,
        "changePct": 0.03,
        "sparkline10d": [
          160.55,
          159.94,
          160.23,
          160.24,
          159.96,
          160.33,
          160.45,
          160.64,
          161.3,
          161.35
        ],
        "high52w": 161.35,
        "low52w": 143.58,
        "asOf": "2026-06-19"
      }
    ]
  },
  "meta": {
    "timestamp": "2026-06-19T08:50:42.336Z"
  }
}

Authorizations

X-API-Key
string
header
required

Your HayInsights API key (prefixed apk_). Create and manage keys in the HayInsights dashboard (Account → API keys).

Send it in the X-API-Key header on every request to /openapi/v1/*. Which data domains you may access and your request quota are both governed by the subscription plan attached to the key — see the Plans & features and Rate limits guides.

Query Parameters

pairs
string

Comma-separated list of currency pairs to filter by (e.g. EUR/USD,USD/JPY). Returns all tracked pairs when omitted.

Example:

"EUR/USD,USD/JPY"

Response

Live FX table.

Standard success envelope shared by every endpoint. Each operation's response wrapper extends this (via allOf) and adds a typed data property.

success
boolean
required

Always true for a successful response.

Example:

true

statusCode
integer
required

Mirrors the HTTP status code.

Example:

200

data
object
required

Live FX table — one row per tracked currency pair.

meta
object

Response metadata. Always present; timestamp is the server time the response was generated.