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

# Last Order ID

> Pacifica uses last order ID as an exchange-wide identifier to order all exchange events

### Overview

`last_order_id` is an exchange-wide, nonce included in all trading-related API responses. Use it to determine the ordering of events across endpoints without relying on server timestamps.

### Why Use It

Server-side timestamps can be affected by clock drift. last\_order\_id provides guaranteed sequential ordering across all trading events.

### Affected Endpoints

#### REST API

* [/api/v1/positions](/api-documentation/api/rest-api/account/get-positions)
* [/api/v1/trades](/api-documentation/api/rest-api/markets/get-recent-trades)
* [/api/v1/orders](/api-documentation/api/rest-api/orders/get-open-orders)

#### WebSocket

* [bbo](/api-documentation/api/websocket/subscriptions/best-bid-offer-bbo)
* [trades](/api-documentation/api/websocket/subscriptions/trades)
* [account\_positions](/api-documentation/api/websocket/subscriptions/account-positions)
* [account\_orders](/api-documentation/api/websocket/subscriptions/account-order-updates)
* [account\_order\_updates](/api-documentation/api/websocket/subscriptions/account-order-updates)
* [account\_trades](/api-documentation/api/websocket/subscriptions/account-trades)

### Notes

* The last\_order\_id is shared across all above endpoints, allowing you to sequence events from different streams relative to each other.
* For specific response implementation, check each endpoint's docs above.
