Skip to main content
Glama

Bybit Server

cancel_order

Cancel active orders on Bybit Server by specifying category, symbol, and optional order ID. Streamline order management directly through the API to enhance trading efficiency.

Instructions

Cancel order Args: category (str): Category (spot, linear, inverse, etc.) symbol (str): Symbol (e.g., BTCUSDT) orderId (Optional[str]): Order ID orderLinkId (Optional[str]): Order link ID orderFilter (Optional[str]): Order filter Returns: Dict: Cancel result Example: cancel_order("spot", "BTCUSDT", "123456789") Reference: https://bybit-exchange.github.io/docs/v5/order/cancel-order

Input Schema

NameRequiredDescriptionDefault
categoryYesCategory (spot, linear, inverse, etc.)
orderFilterNoOrder filter
orderIdNoOrder ID
orderLinkIdNoOrder link ID
symbolYesSymbol (e.g., BTCUSDT)

Input Schema (JSON Schema)

{ "properties": { "category": { "description": "Category (spot, linear, inverse, etc.)", "title": "Category", "type": "string" }, "orderFilter": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Order filter", "title": "Orderfilter" }, "orderId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Order ID", "title": "Orderid" }, "orderLinkId": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "description": "Order link ID", "title": "Orderlinkid" }, "symbol": { "description": "Symbol (e.g., BTCUSDT)", "title": "Symbol", "type": "string" } }, "required": [ "category", "symbol" ], "title": "cancel_orderArguments", "type": "object" }

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/dlwjdtn535/mcp-bybit-server'

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