get_tickers
Retrieve ticker symbols for financial instruments by type, with filters for currency and expiry date to access market data.
Instructions
Get tickers for all instruments of a given type
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument_type | Yes | Instrument type | |
| currency | No | Currency filter (required for options) | |
| expiry_date | No | Expiry date filter for options (YYYYMMDD format) |
Implementation Reference
- src/client.ts:121-123 (handler)The `getTickers` method in `DeriveClient` sends a POST request to the 'public/get_tickers' endpoint.
getTickers(params: GetTickersParams): Promise<unknown> { return this.post('public/get_tickers', params); } - src/tools.ts:75-86 (registration)The 'get_tickers' tool is defined in the tools list with its input schema.
name: 'get_tickers', description: 'Get tickers for all instruments of a given type', inputSchema: { type: 'object', properties: { instrument_type: { type: 'string', enum: INSTRUMENT_TYPE_ENUM, description: 'Instrument type' }, currency: { type: 'string', description: 'Currency filter (required for options)' }, expiry_date: { type: 'string', description: 'Expiry date filter for options (YYYYMMDD format)' }, }, required: ['instrument_type'], }, }, - src/index.ts:62-63 (handler)The request handler in `src/index.ts` calls `client.getTickers` when the 'get_tickers' tool is invoked.
case 'get_tickers': result = await client.getTickers(a as unknown as GetTickersParams);