Skip to main content
POST
/
v1
/
client
/
maintenance_config
Configure Auto-Cancel During Maintenance
curl --request POST \
  --url https://api.perpo.trade/v1/client/maintenance_config \
  --header 'Content-Type: application/json' \
  --header 'perpo-account-id: <perpo-account-id>' \
  --header 'perpo-key: <perpo-key>' \
  --header 'perpo-signature: <perpo-signature>' \
  --header 'perpo-timestamp: <perpo-timestamp>' \
  --data '
{
  "maintenance_cancel_order_flag": true
}
'
{
  "success": true,
  "data": {
    "success_alter": "Success! Your change has been saved!"
  },
  "timestamp": 1702989203989
}

Headers

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

Body

application/json
maintenance_cancel_order_flag
boolean
required

if true, system will cancel all of user's pending orders during maintenance.

Response

200 - application/json

OK

success
boolean
required
Example:

true

data
object
required
timestamp
integer
Example:

1702989203989