Skip to main content
POST
/
heartbeat
Cancel Heartbeat
curl --request POST \
  --url https://api.sx.bet/heartbeat
To cancel a registered heartbeat, you may use the same request to register a heartbeat but use timeoutSeconds=0. This will deactivate the heartbeat and orders will NOT be cancelled automatically.
curl --location --request POST 'https://api.sx.bet/heartbeat' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <YOUR-API-KEY>' \
--data-raw '{
    "requestor": "<YOUR-ACCOUNT-ADDRESS>",
    "timeoutSeconds": 0
}'
The above command returns JSON structured like this
{
  "status": "success",
  "data": {
    "requestor": "<YOUR-ACCOUNT-ADDRESS>",
    "timeoutSeconds": 0,
    "expiresAt": "2024-11-12T14:35:06.614Z"
  }
}