POST
/
v1
/
settle_pnl
curl --request POST \
  --url https://api-evm.orderly.network/v1/settle_pnl \
  --header 'Content-Type: application/json' \
  --header 'orderly-account-id: <orderly-account-id>' \
  --header 'orderly-key: <orderly-key>' \
  --header 'orderly-signature: <orderly-signature>' \
  --header 'orderly-timestamp: <orderly-timestamp>' \
  --data '{
  "signature": "<string>",
  "userAddress": "<string>",
  "verifyingContract": "<string>",
  "message": {
    "brokerId": "<string>",
    "chainId": 123,
    "settleNonce": 123,
    "timestamp": 123
  }
}'
{
  "success": true,
  "data": {
    "settle_pnl_id": 889
  },
  "timestamp": 1692246987774
}

Headers

orderly-timestamp
string
required
orderly-account-id
string
required
orderly-key
string
required
orderly-signature
string
required

Body

application/json
signature
string
required

The signature generated by signing the message object via EIP-712

userAddress
string
required

The address of the wallet signing the message object via EIP-712

verifyingContract
string
required

Address of the Orderly Network ledger contract

message
object
required

Message object containing the message that is signed by the wallet owner

Response

200 - application/json
success
boolean
required
timestamp
integer
data
object
required