FastForex · Schema

FxQuoteResponse

Response schema for the /fx/quote endpoint - live bid and ask quotes for FX trading pairs

Currency ExchangeForexFinancial DataExchange RatesCryptocurrencyFX TradingHistorical DataReal-Time Data

Properties

Name Type Description
prices object Map of trading pair symbols to bid/ask quotes
ms number Server response time in milliseconds
View JSON Schema on GitHub

JSON Schema

fx-quote-response.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/fastforex/main/json-schema/fx-quote-response.json",
  "title": "FxQuoteResponse",
  "description": "Response schema for the /fx/quote endpoint - live bid and ask quotes for FX trading pairs",
  "type": "object",
  "properties": {
    "prices": {
      "type": "object",
      "minProperties": 1,
      "additionalProperties": {
        "type": "object",
        "properties": {
          "bid": {
            "type": "number",
            "format": "float",
            "description": "Bid price"
          },
          "ask": {
            "type": "number",
            "format": "float",
            "description": "Ask price"
          },
          "tsp": {
            "type": "number",
            "format": "int64",
            "description": "Milliseconds since Jan 1 1970 (unix timestamp with millisecond precision)"
          },
          "size": {
            "type": "number",
            "format": "int32",
            "description": "Size of the quote in units of the base currency. Usually 1."
          }
        }
      },
      "description": "Map of trading pair symbols to bid/ask quotes"
    },
    "ms": {
      "type": "number",
      "format": "int32",
      "description": "Server response time in milliseconds"
    }
  },
  "required": ["prices", "ms"],
  "example": {
    "prices": {
      "EURUSD": {
        "bid": 1.2145,
        "ask": 1.2146,
        "tsp": 1739305030072,
        "size": 1
      },
      "GBPUSD": {
        "bid": 1.4145,
        "ask": 1.4146,
        "tsp": 1739305029908,
        "size": 1
      }
    },
    "ms": 8
  }
}