Developers
Open app
Trading

Cancel an order

POSThttps://www.slay.money/api/trade/cancel
Requires an API key: Authorization: Bearer spk_…Limit: 60 / min per key

Cancel one of your resting orders. Hyperliquid needs the coin with the order id (both are in the order's answer and in /trade/orders).

Request

curl -X POST 'https://www.slay.money/api/trade/cancel' \
  -H 'Authorization: Bearer $SLAY_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"venue":"hyperliquid","coin":"#383330","orderId":"610114878428"}'

Body

venuestring
One of hyperliquid, polymarket
orderIdstring
coinstring

Responses

200{ canceled: true }
422The venue refused it (already filled or canceled).