get_top_sales
Retrieve highest-value sales data for Axie Infinity tokens within specified timeframes to analyze market trends and pricing.
Instructions
Get the top sales for a given token type (Axie, Land, Item, etc.) over a specified time period.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenType | Yes | The type of token to get top sales for. | |
| periodType | Yes | The time period to look back. | |
| size | No | Number of top sales to return. Default 10. |
Implementation Reference
- src/index.ts:747-763 (handler)The handler for the 'get_top_sales' tool, which parses arguments, executes the GraphQL query using the client, and returns the top sales data.
case "get_top_sales": { const schema = z.object({ tokenType: TokenTypeEnum, periodType: PeriodTypeEnum, size: z.coerce.number().int().min(1).max(100).default(10), }); const parsed = schema.parse(args); const data = await client.query<{ topSales: unknown }>( queries.GET_TOP_SALES, { tokenType: parsed.tokenType, periodType: parsed.periodType, size: parsed.size, } ); return jsonContent(data.topSales); }