> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pumpevm.fun/llms.txt
> Use this file to discover all available pages before exploring further.

# Order management

> Place, cancel, and query orders over the CLOB WebSocket.

## Place order

**Request**

```json theme={null}
{
  "type": "place_order",
  "data": {
    "marketId": "0x...",
    "outcome": "YES",
    "side": "buy",
    "orderType": "limit",
    "price": "0.65",
    "size": "1000"
  }
}
```

**Response**

```json theme={null}
{
  "type": "order_confirmed",
  "data": {
    "orderId": "0x...",
    "marketId": "0x...",
    "side": "buy",
    "price": "0.65",
    "size": "1000",
    "status": "open",
    "timestamp": "2025-06-20T12:00:00Z"
  }
}
```

## Cancel order

**Request**

```json theme={null}
{
  "type": "cancel_order",
  "data": {
    "orderId": "0x..."
  }
}
```

**Response**

```json theme={null}
{
  "type": "order_cancelled",
  "data": {
    "orderId": "0x...",
    "status": "cancelled",
    "timestamp": "2025-06-20T12:00:00Z"
  }
}
```

## Order status

**Request**

```json theme={null}
{
  "type": "order_status",
  "data": {
    "orderId": "0x..."
  }
}
```

**Response**

```json theme={null}
{
  "type": "order_status_response",
  "data": {
    "orderId": "0x...",
    "marketId": "0x...",
    "side": "buy",
    "price": "0.65",
    "size": "1000",
    "filled": "500",
    "remaining": "500",
    "status": "partially_filled",
    "timestamp": "2025-06-20T12:00:00Z"
  }
}
```
