LIST_DEPOSITS
Retrieve your deposit history from the Upbit exchange to track incoming cryptocurrency transfers and verify transaction status.
Instructions
List deposits (requires private API)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | ||
| state | No | ||
| page | No | ||
| limit | No |
Implementation Reference
- src/tools/list-deposits.ts:21-37 (handler)The execute handler function for the LIST_DEPOSITS tool, which authenticates with Upbit API and fetches deposit list.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, "/deposits", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- src/tools/list-deposits.ts:6-13 (schema)Input parameters schema using Zod for validation.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:49-49 (registration)Registration of the listDepositsTool in the MCP server.server.addTool(listDepositsTool);