Skip to main content
POST
/
v1
/
delegate_settle_pnl
Delegate signer settle PnL
curl --request POST \
  --url https://api.orderly.org/v1/delegate_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": {
    "delegateContract": "<string>",
    "brokerId": "<string>",
    "chainId": 123,
    "settleNonce": 123,
    "timestamp": 123
  }
}
'
{
  "success": true,
  "data": {
    "settle_pnl_id": 1
  },
  "timestamp": 1702989203989
}

Headers

orderly-timestamp
string
required

Timestamp of the signed request in milliseconds.

orderly-account-id
string
required

Account ID of the authenticated account.

orderly-key
string
required

Public orderly key used to sign the request.

orderly-signature
string
required

Signature of the request payload generated with the orderly key.

Body

application/json
signature
string
required

Signature generated by signing the message object.

userAddress
string
required

Address of the wallet that signed the message object.

verifyingContract
string
required

Contract address used to verify the wallet signature.

message
object
required

Message object signed by the wallet owner.

Response

200 - application/json

OK

success
boolean
required

Indicates whether the request was successful.

Example:

true

data
object
required
timestamp
integer

Server timestamp in milliseconds.

Example:

1702989203989