> For the complete documentation index, see [llms.txt](https://docs.pangolin.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pangolin.exchange/pangoperps/trading-api/assets-withdraw-settle-pnl/get-settle-pnl-nonce.md).

# Get Settle PnL Nonce

### Endpoint

`GET /v1/settle_nonce`

Mainnet: `https://api.orderly.org/v1/settle_nonce`

Testnet: `https://testnet-api.orderly.org/v1/settle_nonce`

Rate limit: 10 requests per 1 second.

Returns the one-time nonce needed to sign a PnL settlement request. Each nonce is single-use.

### Authentication

Send the signed-request headers.

* `orderly-timestamp` — required; signed-request timestamp in milliseconds.
* `orderly-account-id` — required; authenticated account ID.
* `orderly-key` — required; public API key.
* `orderly-signature` — required; signature generated for the request.

### Response

HTTP 200 — application/json. `success` is a required boolean. The required `data` object contains `settle_nonce` (integer), used to sign a PnL settlement request. The root `timestamp` is the server response time in milliseconds (integer).

```
{
  "success": true,
  "data": { "settle_nonce": 1 },
  "timestamp": 1702989203989
}
```
