Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getRecentPublicTrades

Retrieve recent public trade execution history for a symbol, including price, size, and taker direction. Use for trade flow analysis or correlation with orderbook data.

Instructions

Query recent public trading history for a symbol, returning execution records with price, size, taker direction, timestamp, and sequence number.

Use this endpoint when you need to:

  • Inspect recent trade flow and execution prices for a symbol

  • Retrieve trade records for display or analysis purposes

  • Correlate trades with orderbook data using the seq (cross sequence) field

Supported Products: Spot, USDT contract, USDC contract, Inverse contract, Option

Returns up to 1000 records (spot: up to 60) in reverse chronological order. symbol is required for spot, linear, and inverse. For option, baseCoin defaults to BTC.

Do not use this endpoint for current price or 24h stats — use getTickers instead. Do not use this endpoint for orderbook depth — use getOrderbook instead.

Notes:

  • symbol is required for spot, linear, and inverse categories

  • For option, baseCoin defaults to BTC if not provided

  • No authentication required

Agent hint: Use this endpoint to retrieve recent public trade execution history for a symbol. For current price or 24h stats, use getTickers instead. For current bid/ask depth, use getOrderbook instead. Symbol is required for spot/linear/inverse; for option queries, use the baseCoin parameter.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolNo
baseCoinNo
optionTypeNo
limitNo
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses no authentication required, return limits (1000 records, spot: 60), reverse chronological ordering, and symbol requirements per category. Does not mention rate limits or pagination, but otherwise transparent for a read-only public endpoint.

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

Conciseness4/5

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

Well-structured with clear sections (supported products, notes, agent hint). Sentences are efficient, though slightly redundant (agent hint repeats earlier guidance). Still concise and front-loaded.

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?

Given no output schema, the description lists return fields and provides limits, auth status, and product support. Adequately covers what the tool returns and important constraints. Could include example or pagination note, but sufficient for an agent to use correctly.

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. It explains symbol is required for spot/linear/inverse and that baseCoin defaults to BTC for option. It also mentions limit (up to 1000, spot 60). However, it doesn't explain baseCoin usage beyond default, optionType, or category enums fully. Adds some value but leaves gaps.

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 clearly states the tool queries recent public trading history for a symbol, listing returned fields (price, size, taker direction, timestamp, sequence number). It distinguishes from siblings like getTickers and getOrderbook by explicitly saying what not to use it for.

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?

Provides explicit when-to-use scenarios (inspect trade flow, retrieve trade records, correlate with orderbook) and when-not-to (not for current price, 24h stats, orderbook depth), naming alternatives like getTickers and getOrderbook. Also includes an agent hint reinforcing this.

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