Historical forex OHLC bars (gzip required)
Historical forex OHLC bars (gzip required). Requires `Accept-Encoding: gzip`. `v` is a per-bar tick count where the upstream reports one, else 0. When `start` predates upstream coverage the API returns `422` with code `data_unavailable` and an `earliest` field carrying the first date it can serve. Pay per call in USDC via x402; no account or API key.
Answeringour last check, 2026-11-27
1 of 1checks answered this week
818 msmedian answer time
$0.01listed price per call
$0.01price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://x402.sifting.io/v1/hist/forex/:pair/bars
| Category | Code and developer |
|---|---|
| Provider host | x402.sifting.io |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | valid payment request | 402 | $0.01 | 818 ms |
Example input (from the provider)
{
"method": "GET",
"pathParams": {
"pair": "USDTRY"
},
"queryParams": {
"interval": "1h",
"limit": 1000,
"order": "asc",
"start": "2026-11-01"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"pathParams": {
"properties": {
"pair": {
"description": "DEX pair (TOKEN0-TOKEN1) or FX pair (e.g. EURUSD).",
"type": "string"
}
},
"required": [
"pair"
],
"type": "object"
},
"queryParams": {
"properties": {
"cursor": {
"description": "Opaque pagination cursor from a previous response's `meta.next_cursor`.",
"type": "string"
},
"end": {
"description": "Inclusive upper bound. Default now.",
"type": "string"
},
"interval": {
"default": "1m",
"description": "Bar interval. Default 1m. All `/v1/hist/*` routes accept the same set: intraday (1m\u20131h), plus `1d` (UTC calendar day), `1w` (Monday-aligned), and `1mo` (calendar month). Coarser bars are aggregated from 1-minute history; a `1d`/`1w`/`1mo` bar opens at midnight UTC of the period start.",
"enum": [
"1m",
"5m",
"15m",
"30m",
"1h",
"1d",
"1w",
"1mo"
],
"type": "string"
},
"limit": {
"default": 1000,
"maximum": 2000,
"type": "integer"
},
"order": {
"default": "asc",
"description": "Sort direction by time. `asc` (default) returns oldest\u2192newest. `desc` returns newest\u2192oldest and anchors the first page at the most recent bar, so fetching the latest N costs one request instead of paging the whole window. Supported on commodities and forex only; other historical routes are ascending-only.",
"enum": [
"asc",
"desc"
],
"type": "string"
},
"start": {
"description": "Inclusive lower bound (YYYY-MM-DD or RFC3339). Required.",
"type": "string"
}
},
"required": [
"start"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"items": {
"properties": {
"c": {
"type": "number"
},
"h": {
"type": "number"
},
"l": {
"type": "number"
},
"o": {
"type": "number"
},
"t": {
"type": "integer"
},
"v": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"meta": {
"properties": {
"as_of": {
"format": "date-time",
"type": "string"
},
"interval": {
"type": "string"
},
"next_cursor": {
"type": "string"
},
"symbol": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}