Any realized and unrealized PnL accrued from open or closed positions needs to be “settled” into the USDC balance of the account. PnL settlement can be triggered at any time — either by other users or by the account owner. To trigger PnL settlement for your own account:Documentation Index
Fetch the complete documentation index at: https://staging-docs.orderly.network/llms.txt
Use this file to discover all available pages before exploring further.
Get a Settle PnL nonce
Get a nonce from Get Settle PnL Nonce.
Obtain signature from EIP-712
Sign an EIP-712 message in the following format:where:
| Name | Type | Required | Description |
|---|---|---|---|
| brokerId | string | Y | Builder ID |
| chainId | int | Y | Chain ID of the connected chain where the message was signed |
| settleNonce | int | Y | Valid settlement nonce from Get Settle PnL Nonce |
| timestamp | timestamp | Y | Current timestamp in UNIX milliseconds |
Request PnL settlement
Submit the request through Request PnL Settlement API.