get_trades
Retrieve recent trade ticks for a specific cryptocurrency symbol from Upbit exchange to analyze market activity and trading patterns.
Instructions
Get recent trade ticks for a symbol
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Implementation Reference
- tools/get_trades.py:4-9 (handler)The main handler function that implements the get_trades tool logic: fetches recent trade ticks for a symbol from the Upbit API endpoint.async def get_trades(symbol: str) -> list[dict]: """Get recent trade ticks for a symbol""" url = f"{API_BASE}/trades/ticks" async with httpx.AsyncClient() as client: res = await client.get(url, params={"market": symbol}) return res.json()
- main.py:44-44 (registration)Registers the get_trades function as an MCP tool using FastMCP's tool decorator.mcp.tool()(get_trades)
- main.py:8-8 (registration)Imports the get_trades handler function for use in registration.from tools.get_trades import get_trades