Skip to main content
Glama
bybit-exchange

Bybit MCP Server

Official

getFundingRateHistory

Read-only

Retrieve historical funding rates for perpetual contracts. Use this data to analyze funding trends, calculate position costs, and compare rates across symbols or 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
limitNo
symbolYes
endTimeNo
categoryYes
startTimeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.11

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already signal readOnlyHint=true and openWorldHint=true. The description adds useful behavioral context: records are sorted in reverse chronological order, support covers USDT and Inverse contracts, no authentication is required, and settlement intervals vary by symbol. This goes beyond what the annotations convey.

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 organized with purpose, use cases, supported products, behavior, and an explicit do-not-use note. The 'Agent hint' section repeats some earlier content, which is mildly redundant, but the structure is clear and the most important guidance is 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?

For a read-only historical query tool with 5 parameters and no output schema, this description is fairly complete: it covers intended use, exclusions, supported products, sort order, time filtering, and authentication. It does not describe limit semantics or output record fields, but those are secondary given the schema already constrains limit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 for the key parameters: category and symbol are called out as required, and startTime/endTime are explained as millisecond filters for narrowing the time range. Limit is not mentioned, but the schema already provides default, min, and max constraints for it.

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 opens with a specific verb and resource: 'Query historical funding rate records for perpetual contracts.' It also explicitly contrasts itself with getTickers for current funding rates, so an agent can distinguish it from the most relevant sibling without inspecting schemas.

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 gives explicit use cases ('Analyze historical funding rate trends', 'Calculate total funding cost or income', 'Compare funding rates') and an explicit exclusion: 'Do not use this endpoint for the current funding rate — use getTickers.' This is strong routing guidance with an alternative named directly.

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