Skip to main content
Glama

get_trades

Retrieve recent trade ticks for a specific cryptocurrency symbol using the Upbit MCP Server, enabling precise market analysis and decision-making.

Instructions

Get recent trade ticks for a symbol

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
symbolYes

Implementation Reference

  • The main handler function for the 'get_trades' tool. It takes a symbol parameter and fetches recent trade ticks from the Upbit API using httpx.
    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)
    Registration of the get_trades tool in the MCP server using FastMCP's mcp.tool() decorator.
    mcp.tool()(get_trades)
  • main.py:8-8 (registration)
    Import statement for the get_trades function in main.py.
    from tools.get_trades import get_trades
  • Type hints defining the input schema (symbol: str) and output schema (list[dict]) for the tool.
    async def get_trades(symbol: str) -> list[dict]:

Other Tools

Related Tools

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