GET_DEPOSIT_CHANCE
Check deposit availability for specific cryptocurrencies on Upbit exchange. Verify if deposits are enabled for a currency and network type before transferring funds.
Instructions
Get deposit availability information for a currency (private)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | ||
| net_type | No |
Implementation Reference
- src/tools/get-deposit-chance.ts:19-30 (handler)The execute function implementing the core logic of the GET_DEPOSIT_CHANCE tool. It authenticates with Upbit API using JWT, queries the deposit chance endpoint for the given currency and optional net_type, and returns the JSON response.execute: async ({ currency, net_type }: Params) => { ensurePrivateEnabled(); const baseURL = `${config.upbit.baseUrl}${config.upbit.apiBasePath}`; const client = createHttpClient(baseURL); const query = { currency, net_type }; const token = signJwtToken(query); const data = await fetchJson<unknown>(client, "/deposits/chance/coin", { params: query, headers: { Authorization: `Bearer ${token}` }, }); return JSON.stringify(data, null, 2); },
- src/tools/get-deposit-chance.ts:6-11 (schema)Zod schema defining the input parameters for the tool: 'currency' (string, required) and 'net_type' (string, optional).const paramsSchema = z .object({ currency: z.string(), net_type: z.string().optional(), }) .strict();
- src/index.ts:44-44 (registration)Registers the getDepositChanceTool with the FastMCP server instance.server.addTool(getDepositChanceTool);