Skip to main content
Glama
aadarshvelu

Derive MCP Server

by aadarshvelu

get_option_settlement_history

Retrieve historical option settlement data from Derive to analyze past market outcomes and settlement prices for informed trading decisions.

Instructions

Get historical option settlement data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (default 1)
page_sizeNoResults per page (default 100, max 1000)
subaccount_idNoFilter by subaccount ID

Implementation Reference

  • The implementation of the getOptionSettlementHistory client method which performs the API call.
    getOptionSettlementHistory(params: GetOptionSettlementHistoryParams): Promise<unknown> {
      return this.post('public/get_option_settlement_history', params);
    }
  • src/index.ts:77-79 (registration)
    The registration of the get_option_settlement_history tool in the main request handler.
    case 'get_option_settlement_history':
      result = await client.getOptionSettlementHistory(a as unknown as GetOptionSettlementHistoryParams);
      break;
  • Type definition for the parameters of the get_option_settlement_history tool.
    export interface GetOptionSettlementHistoryParams {
      page?: number;
      page_size?: number;
      subaccount_id?: number;
    }
  • MCP tool definition for get_option_settlement_history.
    name: 'get_option_settlement_history',
    description: 'Get historical option settlement data',
    inputSchema: {
      type: 'object',
      properties: {
        ...paginationParams,

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