get_ticker
Retrieve current market data including price, volume, and bid/ask quotes for financial instruments to monitor real-time trading conditions.
Instructions
Get current price, volume, bid/ask for an instrument
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument_name | Yes | Instrument name, e.g. ETH-PERP |
Implementation Reference
- src/client.ts:117-119 (handler)The `getTicker` method in the client class sends a POST request to the 'public/get_ticker' endpoint.
getTicker(params: GetTickerParams): Promise<unknown> { return this.post('public/get_ticker', params); } - src/types.ts:22-24 (schema)Definition of the parameters required for the get_ticker tool.
export interface GetTickerParams { instrument_name: string; } - src/index.ts:59-60 (registration)Registration/handling of the get_ticker tool call in the main entry point.
case 'get_ticker': result = await client.getTicker(a as unknown as GetTickerParams);