Currencylayer · JSON Structure

Currencylayer Convert Structure

JSON Structure for a /convert envelope.

Type: object Properties: 6 Required: 4
Currency ExchangeForeign ExchangeFXForexConversionHistorical RatesTime FrameChange ReportPrecious MetalsAPILayerPublic APIs

CurrencylayerConvertResponse is a JSON Structure definition published by Currencylayer, describing 6 properties, of which 4 are required. It conforms to the https://json-structure.org/draft-00/schema meta-schema.

Properties

success query info historical date result

Meta-schema: https://json-structure.org/draft-00/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/draft-00/schema",
  "name": "CurrencylayerConvertResponse",
  "description": "JSON Structure for a /convert envelope.",
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "query": {
      "type": "object",
      "properties": {
        "from": { "type": "string", "x-format": "iso4217" },
        "to": { "type": "string", "x-format": "iso4217" },
        "amount": { "type": "double" }
      },
      "required": ["from", "to", "amount"]
    },
    "info": {
      "type": "object",
      "properties": {
        "timestamp": { "type": "int64" },
        "quote": { "type": "double" }
      },
      "required": ["timestamp", "quote"]
    },
    "historical": { "type": "boolean" },
    "date": { "type": "string", "x-format": "date" },
    "result": { "type": "double" }
  },
  "required": ["success", "query", "info", "result"]
}