Skip to main content
POST
https://api.hotstuff.trade
/
exchange
Cancel Orders by Instrument
curl --request POST \
  --url https://api.hotstuff.trade/exchange \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": {
    "data": {
      "instrumentId": 1,
      "expiresAfter": 1769692563352,
      "nonce": 1769688963352
    },
    "type": "cancelByInstrument"
  },
  "signature": "0xb429a7136360bdc0dc128730c194ca6e718de8ccd2ae2acc8e11c9cdf86acb29...",
  "nonce": 1769688963352
}
'
{
  "tx_hash": "0x7c573d0d802c800a58793bb378b89773f28c2505bcca19f7c20b0ab0e4d66e9e",
  "tx_type": 1313,
  "error": "",
  "data": {
    "success": "true",
    "orders_cancelled": 5
  },
  "address": "0x9908658A316D743159F001026F1ef08aa8F0b55B"
}
Cancel all open orders by instrument.

Body

application/json
action
object
required
signature
string
required
nonce
integer
required

Response

200 - application/json

Successful response

tx_hash
string
tx_type
integer
error
string
data
object
address
string