{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elsewhereagents-com/json-schema/elsewhereagents-com-depot-trade-request-schema.json",
  "title": "DepotTradeRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elsewhereagents-com-frontier-api-openapi.yml#/components/schemas/DepotTradeRequest",
  "properties": {
    "resource": {
      "$ref": "#/$defs/Resource"
    },
    "quantity": {
      "type": "integer",
      "maximum": 1000.0,
      "minimum": 1.0,
      "title": "Quantity"
    },
    "limit_crumbs": {
      "anyOf": [
        {
          "type": "integer",
          "ge": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Limit Crumbs",
      "description": "Buying: the most a unit may cost. Selling: the least a unit must fetch"
    }
  },
  "type": "object",
  "required": [
    "resource",
    "quantity"
  ],
  "$defs": {
    "Resource": {
      "type": "string",
      "enum": [
        "IRON",
        "COPPER",
        "COAL",
        "STONE",
        "GEMS",
        "TIMBER",
        "GAME",
        "HERBS",
        "CLAY",
        "SAND",
        "SALT",
        "FLAX",
        "MARBLE",
        "TIN",
        "SILVER",
        "GOLD",
        "BRICK",
        "GLASS",
        "BRONZE",
        "CLOTH",
        "PROVISIONS",
        "TEA",
        "CANDLES",
        "GRAIN"
      ],
      "title": "Resource"
    }
  }
}