Skip to main content
Glama

GET_ORDER

Retrieve details of a specific order on the Upbit cryptocurrency exchange using the private API. Requires order UUID or identifier to fetch accurate order information.

Instructions

Get a single Upbit order (requires private API)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierNo
uuidNo

Implementation Reference

  • The execute function that performs the core logic: ensures private API access, constructs the Upbit API request for a specific order using uuid or identifier, signs JWT token, fetches the order data, and returns formatted JSON.
    execute: async ({ uuid, identifier }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query: Record<string, string> = {}; if (uuid) query.uuid = uuid; if (identifier) query.identifier = identifier; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/order", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
  • Zod schema validating input parameters: requires either 'uuid' or 'identifier' to identify the order.
    const paramsSchema = z .object({ uuid: z.string().optional(), identifier: z.string().optional(), }) .refine((v) => v.uuid || v.identifier, { message: "Either uuid or identifier is required", });
  • src/index.ts:37-37 (registration)
    Registers the getOrderTool with the FastMCP server.
    server.addTool(getOrderTool);

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/IQAIcom/mcp-upbit'

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