Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

batchCancelOrders

Batch cancel specific unfilled or partially filled orders across spot, linear, inverse, or option markets using order IDs or custom link IDs.

Instructions

Cancel multiple orders in a single API call.

  • Max 20 orders per request for futures/options, 10 for spot

  • Each order requires either orderId or orderLinkId

  • Only unfilled or partially filled orders can be cancelled

  • Check retExtInfo.list[].code for per-order status

  • Response is acknowledgment only; confirm via WebSocket order stream

Agent hint: Use this endpoint to cancel multiple specific orders at once. For cancelling all orders, use cancelAllOrders instead. TradFi: use category=spot for xStock batch cancels, category=linear for equity/commodity perpetuals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
requestYes
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, description fully discloses behavior: max orders, required fields, order status conditions, per-order status field, acknowledgment-only response, and confirmation via WebSocket.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, followed by bullet points and agent hints. Every sentence adds value; no fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers limits, preconditions, per-order status, response type, and confirmation method. No output schema, but description adequately explains how to interpret results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description must compensate. Explains category usage and required fields per order, but does not detail request array structure or parameter constraints beyond that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states the tool cancels multiple orders in one call, with specific verb 'Cancel' and resource 'orders'. Differentiates from sibling cancelAllOrders via hint.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use (cancel multiple specific orders) and alternatives (cancelAllOrders for all orders). Includes limits per category and a TradFi hint.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bybit-exchange/trading-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server