tanX Docupaper
AboutTrade
  • ABOUT
    • 📒tanX Docupaper
  • TECH
    • 👩‍💻Tech Docupaper
      • 🏨High level architecture
      • 🤔Starkware logic
      • 🌊Transactional flow
        • Off-chain accounts
        • The deposit flow
        • The withdrawal flow
        • The trade flow
        • The transfer flow
        • Full withdrawal
    • 🔌API Documentation
      • 😋Getting started
        • Test connectivity
      • 📈Market
        • 24hr Tickers Price
        • K-line/Candlestick data
        • Orderbook
        • Recent trades
      • ↔️Trading
        • Create order
        • Get order
        • List orders
        • Cancel order
        • Bulk Cancel
        • List trades
      • 🔐Account
        • Generating L2 Key Pairs
        • Login
        • Deposit
        • Withdrawal
        • Profile Information
        • Balance details
        • Profit and loss details
      • 🌏Web-socket stream
        • 🗝️Private web-socket connection
        • 👥Public websocket connection
      • ✨Internal Transfer
        • Create Internal Transfer
        • Get Internal Transfer
        • Check User Existence
        • List Internal Transfers
      • 🧪SDK Reference
        • NodeJS SDK
        • Python SDK
  • LEGAL
    • ‼️tanX Disclaimer
Powered by GitBook
On this page
  • Endpoint
  • Request Headers
  • Request Body

Was this helpful?

  1. TECH
  2. API Documentation
  3. Trading

Bulk Cancel

Cancel all orders by limit. (Private 🔒)

PreviousCancel orderNextList trades

Last updated 11 months ago

Was this helpful?

This endpoint is used to bulk cancel a limit order which hasn’t already been executed at a given time. Please note that this is a Private 🔒 route which means it needs to be authorised by the account initiating this request.

Note: You will need to include the JWT Auth token to request headers to access this endpoint. To get the JWT Auth Token, refer the section of the documentation.

Endpoint

POST /sapi/v1/user/bulkcancel/

Request Headers

{
  "Authorization": "JWT ***"
}

Request Body

Field
Type
Mandatory
Description

market

STRING

YES

The market in which the orders need to be cancelled.

limit

INTEGER

NO

The limit for order cancellations. The default value is 100.

side

STRING

NO

The side (buy/sell) on which the orders need to be cancelled. allowed values [buy, sell]

Example

{
  "market": "btcusdt",
  "limit" : 100
}

Response

{ 
  "status": "success",
  "message": "Orders are successfully queued for cancellation",
  "payload": {}
}
🔌
↔️
login