Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getSpreadRecentTrades

Retrieve recent public execution records for a spread symbol, including price, quantity, and timestamp. Ideal for analyzing trade flow and execution prices.

Instructions

Query recent public spread trading history for a specific spread combination symbol. Returns execution records including price, quantity, taker direction, timestamp, and cross sequence number.

Use this endpoint when you need to:

  • Inspect recent trade flow and execution prices for a spread symbol

  • Retrieve trade records for display or analysis purposes

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

Returns up to 1000 records sorted in reverse chronological order (most recent first).

Do not use this endpoint for current best bid/ask or 24h stats — use getSpreadTickers instead. Do not use this endpoint for order book depth — use getSpreadOrderbook instead.

Notes:

  • Records are returned most recent first

  • No authentication required

Agent hint: Use this endpoint to retrieve recent public execution history for a spread symbol. The symbol parameter is required — obtain valid symbols from getSpreadInstrumentsInfo if unknown. For current price or 24h stats, use getSpreadTickers instead. For current bid/ask depth, use getSpreadOrderbook instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes
limitNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses key behavioral traits: returns up to 1000 records sorted reverse chronological, no authentication required. Missing details like rate limits or error handling, but for a public read endpoint this is sufficient.

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?

Description is well-organized with clear sections: main action, bulleted use cases, negative directives, notes, and agent hint. Every sentence adds value, no redundancy.

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?

Covers purpose, parameters, return fields, constraints, and alternatives. Lacks output schema but describes return fields. For a simple query tool, it is nearly complete; could mention pagination or error handling.

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 the symbol parameter (required, source from getSpreadInstrumentsInfo) and implies limit usage via 'Returns up to 1000 records'. However, it does not explicitly describe the limit parameter's role, default, or range beyond the schema itself.

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?

Description starts with a specific verb ('Query') and resource ('recent public spread trading history'), and includes concrete return fields (price, quantity, taker direction, timestamp, cross sequence number). It explicitly distinguishes from sibling tools by naming getSpreadTickers and getSpreadOrderbook.

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 use cases ('inspect recent trade flow', 'retrieve trade records for display', 'correlate trades with seq') and clear negative directives ('Do not use for best bid/ask or 24h stats — use getSpreadTickers instead'; 'Do not use for order book depth — use getSpreadOrderbook instead').

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