ToolAssay

Get the previous completed OHLCV bar for one Forex symbol

Get the previous completed OHLCV bar for one Forex symbol.

Answeringour last check, 2026-11-27
3 of 3checks answered this week
372 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.tickerlayer.com/v1/forex/agg/:symbol/prev

CategoryMarket data
Provider hostx402.tickerlayer.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-27 valid payment request 402$0.01 372 ms
2026-11-26 valid payment request 402$0.01 374 ms
2026-11-25 valid payment request 402$0.01 360 ms

Example input (from the provider)

{
  "method": "GET",
  "pathParams": {
    "symbol": "EURUSD"
  },
  "queryParams": {
    "interval": "1m"
  },
  "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": {
          "additionalProperties": false,
          "properties": {
            "symbol": {
              "maxLength": 80,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9.:%-]*$",
              "type": "string"
            }
          },
          "required": [
            "symbol"
          ],
          "type": "object"
        },
        "queryParams": {
          "additionalProperties": false,
          "properties": {
            "interval": {
              "description": "Optional. Returns the most recently settled bar at this interval instead of the previous daily bar. The response then also carries interval, bar_start, bar_end and as_of.",
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h",
                "4h",
                "1d"
              ],
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "additionalProperties": true,
          "properties": {
            "as_of": {
              "type": "integer"
            },
            "bar_end": {
              "type": "integer"
            },
            "bar_start": {
              "type": "integer"
            },
            "interval": {
              "enum": [
                "1m",
                "5m",
                "15m",
                "1h",
                "4h",
                "1d"
              ],
              "type": "string"
            },
            "result": {
              "additionalProperties": false,
              "properties": {
                "c": {
                  "description": "Close price.",
                  "type": "number"
                },
                "h": {
                  "description": "High price.",
                  "type": "number"
                },
                "l": {
                  "description": "Low price.",
                  "type": "number"
                },
                "o": {
                  "description": "Open price.",
                  "type": "number"
                },
                "t": {
                  "description": "Unix epoch timestamp in milliseconds.",
                  "minimum": 946684800000,
                  "type": "integer"
                },
                "v": {
                  "description": "Volume when available.",
                  "minimum": 0,
                  "type": [
                    "number",
                    "null"
                  ]
                }
              },
              "required": [
                "o",
                "h",
                "l",
                "c",
                "v",
                "t"
              ],
              "type": "object"
            },
            "symbol": {
              "maxLength": 80,
              "minLength": 1,
              "pattern": "^[A-Za-z0-9][A-Za-z0-9.:%-]*$",
              "type": "string"
            }
          },
          "required": [
            "symbol",
            "result",
            "interval",
            "bar_start",
            "bar_end",
            "as_of"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON