{
  "homepage": "https://www.worldbank.org/",
  "licenses": [
    {
      "id": "odc-pddl",
      "name": "public_domain_dedication_and_license",
      "url": "http://opendatacommons.org/licenses/pddl/1.0/",
      "version": "1.0"
    }
  ],
  "name": "gold-prices",
  "profile": "data-package",
  "related": [
    {
      "formats": [
        "CSV",
        "JSON"
      ],
      "path": "/core/oil-prices",
      "publisher": "core",
      "title": "Oil prices"
    },
    {
      "formats": [
        "CSV",
        "JSON"
      ],
      "path": "/core/natural-gas",
      "publisher": "core",
      "title": "Natural gas"
    }
  ],
  "resources": [
    {
      "name": "monthly-processed",
      "path": "data/monthly-processed.csv",
      "format": "csv",
      "mediatype": "text/csv",
      "schema": {
        "fields": [
          { "name": "Date", "type": "date", "format": "any" },
          { "name": "Price", "type": "number", "description": "Gold price in USD per troy ounce" }
        ]
      }
    },
    {
      "dpp:streaming": true,
      "encoding": "utf-8-sig",
      "format": "csv",
      "mediatype": "text/csv",
      "name": "annual",
      "path": "data/annual.csv",
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "format": "default",
            "name": "Date",
            "type": "yearmonth"
          },
          {
            "format": "default",
            "name": "Price",
            "type": "number"
          }
        ],
        "missingValues": [
          ""
        ]
      }
    },
    {
      "encoding": "utf-8",
      "format": "csv",
      "mediatype": "text/csv",
      "name": "monthly",
      "path": "data/monthly.csv",
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "format": "default",
            "name": "Date",
            "type": "yearmonth"
          },
          {
            "format": "default",
            "name": "Price",
            "type": "number"
          }
        ],
        "missingValues": [
          ""
        ]
      }
    }
  ],
  "sources": [
    {
      "name": "worldbank-gold-prices",
      "path": "https://www.worldbank.org/en/research/commodity-markets",
      "title": "Worldbank gold prices"
    }
  ],
  "title": "Gold Prices",
  "version": "0.2.0",
  "views": [
    {
      "name": "gold-price-history",
      "title": "Gold Price Since 1833",
      "description": "Monthly gold price in USD per troy ounce from 1833 to present. For over 130 years prices held near $20 under the gold standard. Nixon's 1971 decision to end dollar-gold convertibility broke the peg — prices have risen roughly 280× since, recently surpassing $5,000.",
      "resources": ["monthly-processed"],
      "specType": "plot",
      "spec": {
        "dateFields": ["Date"],
        "height": 420,
        "marginLeft": 70,
        "x": { "label": null },
        "y": {
          "label": "Price (USD per troy oz)",
          "tickFormat": "$,.0f",
          "grid": true
        },
        "marks": [
          {
            "type": "ruleX",
            "staticData": [{ "x": "1971-08-01" }],
            "x": "x",
            "stroke": "#9ca3af",
            "strokeDasharray": "4,4",
            "tip": false
          },
          {
            "type": "text",
            "staticData": [{ "x": "1971-08-01", "y": 4200, "label": "End of gold standard (1971)" }],
            "x": "x", "y": "y", "text": "label",
            "fill": "#6b7280",
            "fontSize": 11,
            "textAnchor": "start",
            "dx": 6
          },
          {
            "type": "line",
            "x": "Date",
            "y": "Price",
            "stroke": "#b45309",
            "strokeWidth": 1.5,
            "tip": true
          }
        ]
      }
    }
  ],
  "collection": "stock-market-data"
}
