{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/powens/main/json-schema/powens-get-users-me-marketorders-response-schema.json",
  "title": "GetUsersMeMarketordersResponse",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/powens-openapi-generated.yml#/components/schemas/GetUsersMeMarketordersResponse",
  "type": "object",
  "properties": {
    "marketorders": {
      "type": "array",
      "description": "List of market orders for the user"
    },
    "marketorders[].code": {
      "type": "string",
      "description": "Security code (e.g., ISIN)"
    },
    "marketorders[].order_type.id": {
      "type": "integer",
      "description": "Identifier of the order type"
    },
    "marketorders[].order_type.name": {
      "type": "string",
      "description": "Name of the order type (e.g., MARKET, LIMIT)"
    },
    "marketorders[].created": {
      "type": "string",
      "description": "Creation timestamp of the order"
    },
    "marketorders[].payment_method": {
      "type": "string",
      "description": "Method of payment"
    },
    "marketorders[].id_account": {
      "type": "integer",
      "description": "Identifier of the account the order belongs to"
    },
    "marketorders[].order_direction.id": {
      "type": "integer",
      "description": "Identifier of the order direction"
    },
    "marketorders[].order_direction.name": {
      "type": "string",
      "description": "Name of the order direction (e.g., BUY, SALE)"
    },
    "marketorders[].execution_date": {
      "type": "string",
      "description": "Execution date of the order (nullable)"
    },
    "marketorders[].webid": {
      "type": "string",
      "description": "Web identifier of the order"
    },
    "marketorders[].amount": {
      "type": "number",
      "description": "Total amount of the order (nullable)"
    },
    "marketorders[].label": {
      "type": "string",
      "description": "Label or description of the order"
    },
    "marketorders[].stock_market": {
      "type": "string",
      "description": "Stock market where the order was placed"
    },
    "marketorders[].state": {
      "type": "string",
      "description": "Current state of the order (e.g., Pending, Executed)"
    },
    "marketorders[].deleted": {
      "type": "string",
      "description": "Deletion flag (null if not deleted)"
    },
    "marketorders[].ordervalue": {
      "type": "number",
      "description": "Value of the order (nullable)"
    },
    "marketorders[].date": {
      "type": "string",
      "description": "Date of the order"
    },
    "marketorders[].validity_date": {
      "type": "string",
      "description": "Validity date of the order"
    },
    "marketorders[].unitvalue": {
      "type": "number",
      "description": "Unit value of the order (nullable)"
    },
    "marketorders[].last_update": {
      "type": "string",
      "description": "Timestamp of the last update"
    },
    "marketorders[].unitprice": {
      "type": "number",
      "description": "Unit price of the order (nullable)"
    },
    "marketorders[].id": {
      "type": "integer",
      "description": "Identifier of the market order"
    },
    "marketorders[].quantity": {
      "type": "number",
      "description": "Quantity of the order"
    }
  }
}