get_spot_pairs
List all Hyperliquid spot pairs with metadata including base/quote asset, decimals, and current prices. Use this to find valid pair symbols for other spot tools.
Instructions
List all Hyperliquid Spot pairs with metadata (base/quote asset, wire symbol, asset index, decimals, latest mark/mid price, active status). 294 pairs available. Symbols are dashed canonical (e.g. 'HYPE-USDC', 'PURR-USDC'). Use this to discover valid spot pair symbols before querying other spot tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | Array of result records | |
| count | Yes | Total number of records in the full result set | |
| nextCursor | No | Cursor for next page, if more results available |
Implementation Reference
- src/index.ts:1316-1320 (registration)Registration of the 'get_spot_pairs' tool. It uses the registerInstrumentsTool helper (no params, list output) and delegates to api().spot.pairs.list() for the SDK call.
registerInstrumentsTool( "get_spot_pairs", "List all Hyperliquid Spot pairs with metadata (base/quote asset, wire symbol, asset index, decimals, latest mark/mid price, active status). 294 pairs available. Symbols are dashed canonical (e.g. 'HYPE-USDC', 'PURR-USDC'). Use this to discover valid spot pair symbols before querying other spot tools.", () => api().spot.pairs.list() );