get_ticker
Retrieve current market price and trading data for a cryptocurrency from Upbit to inform trading decisions and monitor market movements.
Instructions
Get the latest ticker data from Upbit
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes |
Implementation Reference
- tools/get_ticker.py:4-9 (handler)The main handler function for the 'get_ticker' tool. It makes an async HTTP GET request to the Upbit API ticker endpoint with the given symbol and returns the JSON response.async def get_ticker(symbol: str) -> dict: """Get the latest ticker data from Upbit""" url = f"{API_BASE}/ticker" async with httpx.AsyncClient() as client: res = await client.get(url, params={"markets": symbol}) return res.json()[0]
- main.py:42-42 (registration)Registration of the get_ticker tool function with the FastMCP server using the mcp.tool() decorator.mcp.tool()(get_ticker)