{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-reconcile-order-request-schema.json",
  "title": "ReconcileOrderRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-agent-api-openapi.yml#/components/schemas/ReconcileOrderRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "agentAddress",
    "coin",
    "orderId"
  ],
  "properties": {
    "agentAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "Venue API-wallet signer; never replaced by the session agent"
    },
    "accountAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$",
      "description": "Delegated equity owner; defaults to agentAddress"
    },
    "coin": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9]{1,16}$",
      "description": "Default Hyperliquid perp market symbol, normalized uppercase"
    },
    "orderId": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "intentHash": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[a-f0-9]{64}$",
      "description": "Optional submission provenance selector; caller hash alone is not evidence"
    },
    "controlActionId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
      "description": "Optional exact durable bounded control action selector, not authority or proof of OID linkage"
    }
  }
}