{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/api-ninjas-com/json-schema/api-ninjas-com-commodity-batch-price-item-schema.json",
  "title": "CommodityBatchPriceItem",
  "description": "Reduced projection returned for each element of a `names` (batch) request. Each element is identified by `name` and `value`. The previous_close, change_24h_percent, high_24h, low_24h, high_52w, and low_52w fields returned by the single-commodity `name` form are NOT included.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/api-ninjas-com-commodity-price-api-openapi.yml#/components/schemas/CommodityBatchPriceItem",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The display name of the commodity (e.g. Gold Futures)."
    },
    "value": {
      "type": "string",
      "description": "The commodity's `?name=` slug (e.g. gold, crude_oil)."
    },
    "exchange": {
      "type": "string",
      "description": "The symbol of the exchange where the commodity is traded."
    },
    "unit": {
      "type": "string",
      "description": "The quote unit (e.g., troy_ounce, barrel, bushel)."
    },
    "currency_unit": {
      "type": "string",
      "enum": [
        "USD",
        "USX"
      ],
      "description": "Price convention: USD = US dollars per unit; USX = US cents per unit."
    },
    "price": {
      "type": "number",
      "description": "The current price of the commodity in its native unit and currency convention."
    },
    "change_24h": {
      "type": "number",
      "description": "Change vs previous close in the quote unit."
    },
    "updated": {
      "type": "integer",
      "description": "Unix timestamp of the price update."
    },
    "futures_contract": {
      "type": "string",
      "description": "The futures contract `price` is quoted for (e.g., GCZ26 = December 2026 gold)."
    },
    "futures_contract_month": {
      "type": "string",
      "description": "Delivery month of futures_contract (YYYY-MM)."
    }
  }
}