{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-responses-algo-order-resp-schema.json",
  "title": "responses.AlgoOrderResp",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-algos-api-openapi.yml#/components/schemas/responses.AlgoOrderResp",
  "type": "object",
  "properties": {
    "account": {
      "description": "Account identifier (user's account address)",
      "type": "string"
    },
    "algo_params": {
      "description": "Type-specific algo parameters",
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "algo_type": {
      "description": "Algo type",
      "allOf": [
        {
          "$ref": "#/$defs/responses.AlgoType"
        }
      ]
    },
    "avg_fill_price": {
      "description": "Average fill price of the order",
      "type": "string"
    },
    "cancel_reason": {
      "description": "Reason for algo cancellation if it was closed by cancel",
      "type": "string"
    },
    "created_at": {
      "description": "Algo creation time",
      "type": "integer"
    },
    "end_at": {
      "description": "Algo end time",
      "type": "integer"
    },
    "id": {
      "description": "Unique algo identifier",
      "type": "string"
    },
    "last_updated_at": {
      "description": "Algo last update time.  No changes once status=CLOSED",
      "type": "integer"
    },
    "market": {
      "description": "Market to which algo belongs",
      "type": "string"
    },
    "remaining_size": {
      "description": "Remaining size of the algo",
      "type": "string"
    },
    "side": {
      "description": "Algo side",
      "allOf": [
        {
          "$ref": "#/$defs/responses.OrderSide"
        }
      ]
    },
    "size": {
      "description": "Algo size",
      "type": "string"
    },
    "status": {
      "description": "Algo status",
      "allOf": [
        {
          "$ref": "#/$defs/responses.OrderStatus"
        }
      ]
    }
  },
  "$defs": {
    "responses.AlgoType": {
      "type": "string",
      "enum": [
        "",
        "TWAP"
      ],
      "x-enum-varnames": [
        "AlgoTypeUnspecified",
        "AlgoTypeTWAP"
      ]
    },
    "responses.OrderSide": {
      "type": "string",
      "enum": [
        "BUY",
        "SELL"
      ],
      "x-enum-varnames": [
        "OrderSideBuy",
        "OrderSideSell"
      ]
    },
    "responses.OrderStatus": {
      "type": "string",
      "enum": [
        "NEW",
        "UNTRIGGERED",
        "OPEN",
        "CLOSED"
      ],
      "x-enum-varnames": [
        "OrderStatusNew",
        "OrderStatusUntriggered",
        "OrderStatusOpen",
        "OrderStatusClosed"
      ]
    }
  }
}