{
  "info": {
    "name": "Currencies (SBX-FX)",
    "description": "TCMB indicative TRY rates since 2005 (forex and banknote, buying and selling) and ECB euro reference rates since 1999, with conversion and history.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{SBX_API_KEY}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.servicebox.io",
      "type": "string"
    },
    {
      "key": "SBX_API_KEY",
      "value": "",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Convert an amount",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/fx/conversions?from=string&to=string",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "fx",
            "conversions"
          ],
          "query": [
            {
              "key": "from",
              "value": "string",
              "description": "ISO 4217 code.",
              "disabled": false
            },
            {
              "key": "to",
              "value": "string",
              "description": "ISO 4217 code.",
              "disabled": false
            },
            {
              "key": "amount",
              "value": "1",
              "description": "Default 1.",
              "disabled": true
            },
            {
              "key": "date",
              "value": "string",
              "description": "YYYY-MM-DD. Default: the latest bulletin.",
              "disabled": true
            },
            {
              "key": "source",
              "value": "tcmb",
              "description": "Force `tcmb` or `ecb`.",
              "disabled": true
            },
            {
              "key": "rateType",
              "value": "mid",
              "description": "TCMB only: `mid`, `buying` or `selling`.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "`amount` of `from` in `to` at the official rate on `date` (default: latest). TCMB is used when it publishes both currencies (TRY included), else ECB (EUR included). With TCMB, `rateType` picks the rate each currency is valued at in TRY: `mid` (default, the forex buying/selling midpoint), `buying` or `selling`.\n\nCredits: 1"
      }
    },
    {
      "name": "List currencies",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/fx/currencies",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "fx",
            "currencies"
          ],
          "query": [],
          "variable": []
        },
        "description": "Every currency TCMB or ECB publishes, with the first and latest date each has. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "Rates on a date",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/fx/rates",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "fx",
            "rates"
          ],
          "query": [
            {
              "key": "source",
              "value": "tcmb",
              "description": "`tcmb` (default: Turkish central bank, TRY rates since 2005) or `ecb` (European Central Bank, EUR rates since 1999).",
              "disabled": true
            },
            {
              "key": "date",
              "value": "string",
              "description": "YYYY-MM-DD. Default: the latest bulletin.",
              "disabled": true
            },
            {
              "key": "currencies",
              "value": "string",
              "description": "Comma-separated ISO 4217 codes to include, e.g. USD,EUR.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Every currency's official rate on `date` (default: the latest bulletin). TCMB: the indicative forex and banknote buying/selling rates in TRY, published at 15:30 Istanbul time on business days. ECB: the euro reference rates, published around 16:00 CET. A date without a bulletin (weekend, holiday) answers the latest one before it; `meta.date` says which.\n\nCredits: 1"
      }
    },
    {
      "name": "One currency over time",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/fx/rates/:code",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "fx",
            "rates",
            ":code"
          ],
          "query": [
            {
              "key": "source",
              "value": "tcmb",
              "description": "`tcmb` (default: Turkish central bank, TRY rates since 2005) or `ecb` (European Central Bank, EUR rates since 1999).",
              "disabled": true
            },
            {
              "key": "start",
              "value": "string",
              "description": "YYYY-MM-DD.",
              "disabled": true
            },
            {
              "key": "end",
              "value": "string",
              "description": "YYYY-MM-DD. Default: today.",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "code",
              "value": "string",
              "description": "ISO 4217 code, e.g. USD."
            }
          ]
        },
        "description": "One currency's rate on every bulletin between `start` and `end` (default: the last 30 days; at most 366 days).\n\nCredits: 1"
      }
    }
  ]
}