waiaas_hl_get_trade_history
Retrieve Hyperliquid trade history and fill data for a specified wallet to analyze transaction patterns and track trading activity.
Instructions
Get Hyperliquid trade history (fills) for a wallet.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | No | Wallet ID. | |
| limit | No | Maximum number of fills to return. |
Implementation Reference
- The tool 'waiaas_hl_get_trade_history' is registered here. The handler function performs an API request to the backend '/v1/wallets/${walletId}/hyperliquid/fills' to fetch trade history and returns the formatted result.
// hl_get_trade_history server.tool( 'waiaas_hl_get_trade_history', withWalletPrefix('Get Hyperliquid trade history (fills) for a wallet.', walletContext?.walletName), { wallet_id: z.string().optional().describe('Wallet ID.'), limit: z.string().optional().describe('Maximum number of fills to return.'), }, async (args) => { const params = new URLSearchParams(); if (args.limit) params.set('limit', args.limit); const walletId = args.wallet_id || 'default'; const qs = params.toString(); const result = await apiClient.get(`/v1/wallets/${walletId}/hyperliquid/fills${qs ? '?' + qs : ''}`); return toToolResult(result); }, );