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

# PnL Settlement

> Subscribe to PnL settlement status updates via private WebSocket stream.

Push interval: real-time push on update

```json theme={null}
{
  "id": "clientID3",
  "topic": "settle",
  "event": "subscribe"
}
```

**Parameters**

| Name  | Type   | Required | Description               |
| ----- | ------ | -------- | ------------------------- |
| id    | string | Y        | id generate by client     |
| event | string | Y        | `subscribe`/`unsubscribe` |
| topic | string | Y        | `settle`                  |

<RequestExample>
  ```json Response theme={null}
  {
    "id": "clientID3",
    "event": "subscribe",
    "success": true,
    "ts": 1609924478533
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Subscribed Message theme={null}
  {
      "topic": "settle",
      "data": {
          "id": 10001,
          "old_balance": 4050,
          "new_balance": 3050,
          "settled_amount": -1000,
          "requested_time": 1575014255089, // Unix epoch time in ms
          "settled_time": 1575014255910, // Unix epoch time in ms
          "status": "COMPLETED"
      },
      "timestamp": 1679021265398
  }
  ```
</ResponseExample>
