Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getFundingRateHistory

Retrieve historical funding rate records for perpetual contracts. Analyze trends, calculate funding costs, or compare rates across different symbols and time periods.

Instructions

Query historical funding rate records for perpetual contracts. Each symbol has a different funding settlement interval (typically every 4 or 8 hours).

Use this endpoint when you need to:

  • Analyze historical funding rate trends for a specific perpetual contract

  • Calculate total funding cost or income for a position over a time period

  • Compare funding rates across different symbols or time periods

Supported Products: USDT contract, Inverse contract

Records are sorted in reverse chronological order. Use startTime and endTime (milliseconds) to filter a specific time range.

Do not use this endpoint for the current funding rate — use getTickers which includes fundingRate and nextFundingTime in its response.

Notes:

  • No authentication required

Agent hint: Use this endpoint to retrieve historical funding rates for a perpetual contract. Both category and symbol are required parameters. Provide startTime and endTime (milliseconds) to narrow the time range. For the current funding rate and next funding time, use getTickers instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
symbolYes
startTimeNo
endTimeNo
limitNo
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states that no authentication is required, explains the reverse chronological sorting, and mentions the funding settlement intervals. For a read-only query tool, this is transparent and sufficient. A higher score would require additional details like rate limits or pagination behavior, but these are not critical.

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?

The description is well-structured with clear sections, bullet points, and a hint at the end. It is appropriately sized for the tool's complexity. Some redundancy exists (e.g., 'Use this endpoint' and 'Agent hint' overlap), but overall it is concise and easy to parse.

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 the tool has 5 parameters and no output schema, the description covers the essential aspects: purpose, required parameters, time filtering, and alternative tools. It lacks details on return format or error handling, but these are not mandatory for a simple query tool. The description is complete enough for an AI agent to select and invoke 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?

The description mentions 'category' and 'symbol' as required, and 'startTime' and 'endTime' for time filtering. However, it does not explain the 'limit' parameter or the enum values for 'category'. With schema coverage at 0%, the description should compensate more fully. The provided hints are helpful but incomplete.

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's purpose: 'Query historical funding rate records for perpetual contracts.' It specifies the supported products (USDT contract, Inverse contract) and how records are sorted (reverse chronological order). This distinguishes it from sibling tools like getTickers, which provides current funding rate.

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 lists use cases: analyze historical trends, calculate funding cost, compare rates. It also gives a clear 'Do not use' directive for current funding rate, directing users to getTickers instead. This provides excellent guidance on when to use this tool versus alternatives.

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