{
  "info": {
    "name": "Gold & commodities (SBX-GOLD)",
    "description": "Daily intrinsic value of gram, çeyrek, Cumhuriyet and ounce gold (TRY, USD, EUR; since 2013); daily spot prices of Brent, WTI, natural gas and fuels; monthly prices of 67 commodities.",
    "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": "List commodities",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/commodities",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "commodities"
          ],
          "query": [
            {
              "key": "category",
              "value": "energy",
              "description": "Only this category.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Every commodity series: daily energy spot prices (EIA) and monthly prices of metals, energy, agriculture, fertilizers and raw materials (World Bank), with the span held. Free.\n\nCredits: 0"
      }
    },
    {
      "name": "Latest commodity prices",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/commodity-prices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "commodity-prices"
          ],
          "query": [
            {
              "key": "codes",
              "value": "string",
              "description": "Comma-separated codes from /gold/commodities, e.g. brent,wti,gold. Default: every series.",
              "disabled": true
            },
            {
              "key": "category",
              "value": "energy",
              "description": "Only this category.",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "Each series' latest price and the one before it, with the change. EIA's daily prices are released weekly (Wednesdays), the World Bank's monthly averages in the first days of each month.\n\nCredits: 1"
      }
    },
    {
      "name": "One commodity over time",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/commodity-prices/:code",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "commodity-prices",
            ":code"
          ],
          "query": [
            {
              "key": "start",
              "value": "string",
              "description": "YYYY-MM-DD (monthly series: also YYYY-MM).",
              "disabled": true
            },
            {
              "key": "end",
              "value": "string",
              "description": "YYYY-MM-DD (monthly series: also YYYY-MM). Default: today.",
              "disabled": true
            }
          ],
          "variable": [
            {
              "key": "code",
              "value": "string",
              "description": "A code from /gold/commodities, e.g. brent."
            }
          ]
        },
        "description": "One series between `start` and `end`. Daily series: at most 366 days (default: the last 30). Monthly series: YYYY-MM or YYYY-MM-DD, at most 600 months (default: the last 24).\n\nCredits: 1"
      }
    },
    {
      "name": "Gold prices on a date",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/prices",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "prices"
          ],
          "query": [
            {
              "key": "currency",
              "value": "TRY",
              "description": "`TRY` (default), `USD` or `EUR`.",
              "disabled": true
            },
            {
              "key": "date",
              "value": "string",
              "description": "YYYY-MM-DD, since 2013-01-02. A day without a price answers the latest one before it (`meta.date`).",
              "disabled": true
            }
          ],
          "variable": []
        },
        "description": "The intrinsic value of gram gold (24, 22, 18 and 14 karat), the troy ounce and the Turkish coins (çeyrek, yarım, tam, ikibuçuk, beşli, Cumhuriyet, Ata beşli) on `date` (default: the latest price), from the price of 1 g of fine gold calculated by Narodowy Bank Polski each Polish business day. USD and EUR use NBP's mid rates of that day; TRY goes through USD at TCMB's forex midpoint of the latest bulletin on or before that day (`meta.rates`). These are melt values, without workmanship or a dealer's spread.\n\nCredits: 1"
      }
    },
    {
      "name": "One product over time",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/prices/:product",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "prices",
            ":product"
          ],
          "query": [
            {
              "key": "currency",
              "value": "TRY",
              "description": "`TRY` (default), `USD` or `EUR`.",
              "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": "product",
              "value": "string",
              "description": "A product id from /gold/products, e.g. gram-24k or ceyrek."
            }
          ]
        },
        "description": "One product's intrinsic value on every NBP business day between `start` and `end` (default: the last 30 days; at most 366 days), since 2013-01-02.\n\nCredits: 1"
      }
    },
    {
      "name": "List gold products",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/v1/gold/products",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "v1",
            "gold",
            "products"
          ],
          "query": [],
          "variable": []
        },
        "description": "Gram gold by karat, the troy ounce and the Turkish coins, with their weight and fine-gold content. Free.\n\nCredits: 0"
      }
    }
  ]
}