FastForex · Schema

FetchOneResponse

Response schema for the /fetch-one endpoint - a single currency exchange rate

Currency ExchangeForexFinancial DataExchange RatesCryptocurrencyFX TradingHistorical DataReal-Time Data

Properties

Name Type Description
base string Base currency symbol (physical or digital)
result object Single key-value pair of target currency to exchange rate
updated string Datetime of last rate update
ms number Server response time in milliseconds
View JSON Schema on GitHub

JSON Schema

fetch-one-response.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fastforex/main/json-schema/fetch-one-response.json",
  "title": "FetchOneResponse",
  "description": "Response schema for the /fetch-one endpoint - a single currency exchange rate",
  "type": "object",
  "properties": {
    "base": {
      "type": "string",
      "pattern": "[A-Z0-9]{3,6}",
      "description": "Base currency symbol (physical or digital)"
    },
    "result": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 1,
      "additionalProperties": {
        "type": "number",
        "format": "float"
      },
      "description": "Single key-value pair of target currency to exchange rate"
    },
    "updated": {
      "type": "string",
      "description": "Datetime of last rate update"
    },
    "ms": {
      "type": "number",
      "format": "int32",
      "description": "Server response time in milliseconds"
    }
  },
  "required": ["base", "result", "updated", "ms"],
  "example": {
    "base": "USD",
    "result": { "EUR": 0.82791 },
    "updated": "2021-01-16T16:34:29Z",
    "ms": 4
  }
}