FastForex · Schema

OhlcTimeSeriesResponse

Response schema for the /fx/ohlc/time-series endpoint - OHLC candlestick data for FX trading pairs

Currency ExchangeForexFinancial DataExchange RatesCryptocurrencyFX TradingHistorical DataReal-Time Data

Properties

Name Type Description
pair string FX trading pair
interval string ISO8601 Duration (e.g. P1D, PT1H, PT1M)
limit number Maximum number of data points returned
dtmfmt string Datetime format of response values
start string Start of the time series
end string End of the time series
tzOffset string Timezone offset, e.g. +00:00 or -05:00
size number Quote size in units of the base currency
results array Array of OHLC data points
ms number Server response time in milliseconds
View JSON Schema on GitHub

JSON Schema

ohlc-time-series-response.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fastforex/main/json-schema/ohlc-time-series-response.json",
  "title": "OhlcTimeSeriesResponse",
  "description": "Response schema for the /fx/ohlc/time-series endpoint - OHLC candlestick data for FX trading pairs",
  "type": "object",
  "properties": {
    "pair": {
      "type": "string",
      "pattern": "[A-Z0-9]{3,6}/?[A-Z0-9]{3,6}",
      "description": "FX trading pair"
    },
    "interval": {
      "type": "string",
      "description": "ISO8601 Duration (e.g. P1D, PT1H, PT1M)"
    },
    "limit": {
      "type": "number",
      "format": "int32",
      "description": "Maximum number of data points returned"
    },
    "dtmfmt": {
      "type": "string",
      "enum": ["ISO", "TSP", "UTCYMD"],
      "description": "Datetime format of response values"
    },
    "start": {
      "type": "string",
      "description": "Start of the time series"
    },
    "end": {
      "type": "string",
      "description": "End of the time series"
    },
    "tzOffset": {
      "type": "string",
      "description": "Timezone offset, e.g. +00:00 or -05:00"
    },
    "size": {
      "type": "number",
      "format": "int32",
      "description": "Quote size in units of the base currency"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "dtm": {
            "type": "string",
            "description": "Datetime of the OHLC candle"
          },
          "o": {
            "type": "number",
            "format": "float",
            "description": "Open price"
          },
          "h": {
            "type": "number",
            "format": "float",
            "description": "High price"
          },
          "l": {
            "type": "number",
            "format": "float",
            "description": "Low price"
          },
          "c": {
            "type": "number",
            "format": "float",
            "description": "Close price"
          }
        },
        "required": ["dtm", "o", "h", "l", "c"]
      },
      "description": "Array of OHLC data points"
    },
    "ms": {
      "type": "number",
      "format": "int32",
      "description": "Server response time in milliseconds"
    }
  },
  "required": ["pair", "interval", "results", "ms"],
  "example": {
    "pair": "EURUSD",
    "interval": "P1D",
    "limit": 3,
    "dtmfmt": "ISO",
    "end": "2021-01-26T00:00:00Z",
    "tzOffset": "+00:00",
    "size": 1,
    "results": [
      { "dtm": "2021-01-24T00:00:00Z", "o": 1.2145, "h": 1.2156, "l": 1.2134, "c": 1.2142 },
      { "dtm": "2021-01-25T00:00:00Z", "o": 1.2142, "h": 1.2157, "l": 1.2139, "c": 1.2149 },
      { "dtm": "2021-01-26T00:00:00Z", "o": 1.2149, "h": 1.2158, "l": 1.2137, "c": 1.2145 }
    ],
    "ms": 8
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/ohlc-time-series-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.