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
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| page_size | No | Results per page (default 100, max 1000) | |
| subaccount_id | No | Filter by subaccount ID |
Implementation Reference
- src/client.ts:141-143 (handler)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; - src/types.ts:60-64 (schema)Type definition for the parameters of the get_option_settlement_history tool.
export interface GetOptionSettlementHistoryParams { page?: number; page_size?: number; subaccount_id?: number; } - src/tools.ts:143-148 (schema)MCP tool definition for get_option_settlement_history.
name: 'get_option_settlement_history', description: 'Get historical option settlement data', inputSchema: { type: 'object', properties: { ...paginationParams,