v1

latestOpenAPI 3.0.02026-07-2471143147.5 KB
Orders

Cancel TP/SL order

Cancel an accepted TP/SL order that hasn't been triggered yet.

Signature (required): Sign EIP-712 typed data (same domain as regular orders) with primaryType CancelTpslOrder: fields: account(address), orderId(string), deadline(uint32).

post/v1/orders/tpsl/cancel

Request body

order_idstring

Order ID to cancel (UUID format)

accountstring

Account address that owns the order

signerstring

Signer address (session key) that signed this request

signaturestring byte

65-byte ECDSA signature (r+s+v) from signer over EIP-712 CancelTpslOrder typed data

deadlineinteger

Unix timestamp after which the signature expires

Example request

{
  "order_id": "550e8400-e29b-41d4-a716-446655440000",
  "account": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "signer": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e"
}

Response

A successful response.

order_idstring

Order ID that was cancelled

successboolean

Whether the cancellation succeeded

Example response

{
  "order_id": "550e8400-e29b-41d4-a716-446655440000"
}