Skip to main content
POST
/
v1
/
sub_account_settle_pnl
Settle sub-account PnL
curl --request POST \
  --url https://api.perpo.trade/v1/sub_account_settle_pnl \
  --header 'Content-Type: application/json' \
  --header 'orderly_account_id: <orderly_account_id>' \
  --header 'perpo-key: <perpo-key>' \
  --header 'perpo-signature: <perpo-signature>' \
  --header 'perpo-timestamp: <perpo-timestamp>' \
  --data '
{
  "settle_nonce": 123
}
'
{
  "success": true,
  "data": {
    "settle_pnl_id": 1
  },
  "timestamp": 1702989203989
}

Headers

perpo-timestamp
string
required
orderly_account_id
string
required

account_id in header can only be sub_account

perpo-key
string
required
perpo-signature
string
required

Body

application/json
settle_nonce
number
required

Response

200 - application/json

OK

success
boolean
required
Example:

true

data
object
required
timestamp
integer
Example:

1702989203989