Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getOpenOrders

Read-only

Retrieve real-time unfilled or partially filled orders across spot, perpetual, inverse, and option markets. Filter by symbol, order ID, or base coin to track active positions.

Instructions

Query unfilled or partially filled orders in real-time. To query older order records, please use the order history endpoint.

  • Unified account covers: Spot / USDT perpetual / USDC contract / Inverse contract / Options

  • Classic account covers: Spot / USDT perpetual / Inverse contract

Behaviour:

  • Returns open (unfilled / partially filled) orders by default (openOnly=0)

  • Set openOnly=1 to also return last 500 closed orders

  • When querying by orderId or orderLinkId, openOnly is ignored

  • Results are sorted by createdTime from newest to oldest

  • After server restarts, Unified-account closed orders should be queried via the order history endpoint

Priority of filter parameters: orderId > orderLinkId > symbol > baseCoin

Agent hint: TradFi: use category=spot to query open xStock orders, category=linear for equity/commodity perpetual orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
cursorNo
symbolNo
orderIdNo
baseCoinNo
categoryYes
openOnlyNo0
settleCoinNo
orderFilterNo
orderLinkIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

A4.6/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint/openWorldHint annotations by explaining the default openOnly behavior, the effect of openOnly=1, that openOnly is ignored when orderId or orderLinkId is used, the sorting by createdTime, and the filter parameter priority. These behavioral details are exactly what an agent needs to predict results correctly.

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?

The description is well-organized with a front-loaded purpose, clear behavior bullets, and a distinct account coverage section. There is minimal redundancy, and each section carries useful information without unnecessary filler.

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

Completeness4/5

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

The description covers core behavior, filter priority, account coverage, and the alternative endpoint. However, there is no output schema and no mention of pagination behavior or the meaning of orderFilter, which are relevant for a 10-parameter query tool. It is highly useful but not fully complete.

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 description coverage is 0%, so the description must compensate. It does explain openOnly, the priority of orderId/orderLinkId/symbol/baseCoin, and category usage for TradFi. However, it leaves cursor, settleCoin, orderFilter, and limit semantics mostly to the schema, so compensation is partial rather than complete.

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?

The description states exactly what the tool does: 'Query unfilled or partially filled orders in real-time.' It also distinguishes itself from the order history endpoint, making it clear this is for current open orders. The scope is precise and the resource is identifiable even among many sibling tools.

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?

The description explicitly tells the agent when not to use this tool: 'To query older order records, please use the order history endpoint.' It also adds a post-restart caveat for Unified-account closed orders and provides category guidance via the agent hint. This is strong when-to-use versus when-to-use-alternative direction.

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