get_statistics
Retrieve aggregate platform statistics including volume and open interest for specified instruments from Derive.xyz market data.
Instructions
Get aggregate platform statistics (volume, open interest, etc.)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument_name | Yes | Instrument name or 'ALL', 'OPTION', 'PERP', 'SPOT' | |
| currency | No | Currency filter | |
| end_time | No | End time in milliseconds |
Implementation Reference
- src/client.ts:157-159 (handler)The handler method in the DeriveClient class that performs the API request for 'get_statistics'.
getStatistics(params: GetStatisticsParams): Promise<unknown> { return this.post('public/statistics', params); } - src/tools.ts:214-225 (registration)Registration and schema definition for the 'get_statistics' MCP tool.
name: 'get_statistics', description: 'Get aggregate platform statistics (volume, open interest, etc.)', inputSchema: { type: 'object', properties: { instrument_name: { type: 'string', description: "Instrument name or 'ALL', 'OPTION', 'PERP', 'SPOT'" }, currency: { type: 'string', description: 'Currency filter' }, end_time: { type: 'integer', description: 'End time in milliseconds' }, }, required: ['instrument_name'], }, },