{
  "homepage": "https://www.worldbank.org/",
  "description": "Monthly and annual gold prices in USD per troy ounce from 1833 to present. Historical data (1833–1959) is sourced from records compiled by Timothy Green; data from 1960 onward is sourced from the World Bank Commodity Markets portal.",
  "licenses": [
    {
      "name": "ODC-PDDL-1.0",
      "path": "https://opendatacommons.org/licenses/pddl/1-0/",
      "title": "Open Data Commons Public Domain Dedication and License"
    }
  ],
  "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",
      "description": "Monthly gold prices in USD per troy ounce from 1833 to present, with dates formatted as ISO 8601 full dates (YYYY-MM-DD). Rows from 1833 to 1959 carry the annual average price repeated for every month of the year, as no true monthly readings exist for that period.",
      "path": "data/monthly-processed.csv",
      "format": "csv",
      "mediatype": "text/csv",
      "schema": {
        "fields": [
          {
            "name": "Date",
            "type": "date",
            "description": "First day of the month in YYYY-MM-DD format (ISO 8601)."
          },
          {
            "name": "Price",
            "type": "number",
            "description": "Gold price in USD per troy ounce."
          }
        ]
      }
    },
    {
      "encoding": "utf-8",
      "format": "csv",
      "mediatype": "text/csv",
      "name": "annual",
      "description": "Annual average gold prices in USD per troy ounce from 1833 to present.",
      "path": "data/annual.csv",
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "name": "Date",
            "type": "year",
            "description": "Year of the observation (YYYY)."
          },
          {
            "name": "Price",
            "type": "number",
            "description": "Annual average gold price in USD per troy ounce."
          }
        ],
        "missingValues": [
          ""
        ]
      }
    },
    {
      "encoding": "utf-8",
      "format": "csv",
      "mediatype": "text/csv",
      "name": "monthly",
      "description": "Monthly gold prices in USD per troy ounce from 1833 to present, with dates in YYYY-MM format. Rows from 1833 to 1959 carry the annual average price repeated for every month of the year, as no true monthly readings exist for that period.",
      "path": "data/monthly.csv",
      "profile": "tabular-data-resource",
      "schema": {
        "fields": [
          {
            "name": "Date",
            "type": "yearmonth",
            "description": "Year and month of the observation in YYYY-MM format."
          },
          {
            "name": "Price",
            "type": "number",
            "description": "Gold price in USD per troy ounce."
          }
        ],
        "missingValues": [
          ""
        ]
      }
    }
  ],
  "sources": [
    {
      "name": "worldbank-commodity-markets",
      "path": "https://www.worldbank.org/en/research/commodity-markets",
      "title": "World Bank Commodity Markets (Pink Sheet)"
    },
    {
      "name": "timothy-green-historical-gold-prices",
      "path": "https://nma.org/wp-content/uploads/2016/09/historic_gold_prices_1833_pres.pdf",
      "title": "Timothy Green Historical Gold Price Table (National Mining Association)"
    }
  ],
  "title": "Gold Prices",
  "version": "0.2.0",
  "views": [
    {
      "name": "gold-price-history",
      "title": "Gold Price History 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": {
          "type": "log",
          "label": "Price (USD per troy oz, log scale)",
          "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"
}
