Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_funding_rate_history

Retrieve historical funding rates for perpetual instruments to analyze market trends and funding costs over time.

Instructions

Get historical funding rates for a perpetual instrument

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
instrument_nameYesPerp instrument name, e.g. ETH-PERP
start_timestampNoStart timestamp in seconds (default 0, max 30 days ago)
end_timestampNoEnd timestamp in seconds (default now)
periodNoPeriod in seconds

Implementation Reference

  • The implementation of the get_funding_rate_history tool, which makes a POST request to the Derive API.
    getFundingRateHistory(params: GetFundingRateHistoryParams): Promise<unknown> {
      return this.post('public/get_funding_rate_history', params);
    }
  • src/index.ts:71-73 (registration)
    Registration and routing of the get_funding_rate_history tool call in the main MCP server request handler.
    case 'get_funding_rate_history':
      result = await client.getFundingRateHistory(a as unknown as GetFundingRateHistoryParams);
      break;
  • Type definition for the parameters of the get_funding_rate_history tool.
    export interface GetFundingRateHistoryParams {
      instrument_name: string;
      start_timestamp?: number;

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/aadarshvelu/derive-mcp'

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