Skip to main content
Glama

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
NameRequiredDescriptionDefault
symbolYes

Implementation Reference

  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/solangii/upbit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server