LIST_WITHDRAWALS
Retrieve withdrawal history from Upbit cryptocurrency exchange to track transaction status, view currency details, and monitor account activity using paginated results.
Instructions
List withdrawals (requires private API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | ||
| state | No | ||
| page | No | ||
| limit | No |
Implementation Reference
- src/tools/list-withdrawals.ts:21-37 (handler)The execute function that implements the LIST_WITHDRAWALS tool logic, authenticating and fetching withdrawal data from Upbit API.execute: async ({ currency, state, page, limit }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query = { page, limit, currency, state, }; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/withdraws", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- src/tools/list-withdrawals.ts:6-13 (schema)Zod schema defining input parameters for the LIST_WITHDRAWALS tool: currency, state, page, and limit.const paramsSchema = z .object({ currency: z.string().optional(), state: z.string().optional(), page: z.number().int().min(1).default(1), limit: z.number().int().min(1).max(100).default(50), }) .strict();
- src/index.ts:42-42 (registration)Registers the listWithdrawalsTool with the FastMCP server.server.addTool(listWithdrawalsTool);