Skip to main content
Glama

get_funding_rate_history

Retrieve historical funding rate data for Binance perpetual contracts. Specify the symbol and optional limit to access funding rate records for informed trading strategies.

Instructions

Get funding rate history.

Args: symbol: Perpetual contract symbol. limit: Number of records to return (default 100).

Returns: Funding rate data list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
symbolYes

Implementation Reference

  • The handler function for the 'get_funding_rate_history' tool. It is decorated with @mcp.tool(), which handles registration in FastMCP. Fetches the funding rate history from the Binance futures API using requests.
    @mcp.tool() def get_funding_rate_history(symbol: str, limit: int = 100) -> Any: """ Get funding rate history. Args: symbol: Perpetual contract symbol. limit: Number of records to return (default 100). Returns: Funding rate data list. """ url = "https://fapi.binance.com/fapi/v1/fundingRate" params = {"symbol": symbol, "limit": limit} response = requests.get(url, params=params) if response.status_code == 200: return response.json() return {"error": response.text}
  • binance.py:205-205 (registration)
    The @mcp.tool() decorator registers the get_funding_rate_history function as an MCP tool.
    @mcp.tool()

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/mixuechu/binance-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server