Skip to main content
Glama

Binance MCP Server

checkDualInvestmentAccounts.ts1.94 kB
// src/tools/binance-dual-investment/trade-api/checkDualInvestmentAccounts.ts import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { dualInvestmentClient } from "../../../config/binanceClient.js"; import { z } from "zod"; export function registerBinanceCheckDualInvestmentAccounts(server: McpServer) { server.tool( "BinanceCheckDualInvestmentAccounts", "Retrieve Dual Investment account balances, including total value in BTC and USDT equivalents.", { recvWindow: z .number() .int() .max(60000) .optional() .describe("Optional time window for request validity (max 60000)") }, async (params) => { try { const response = await dualInvestmentClient.restAPI.checkDualInvestmentAccounts({ ...(params.recvWindow && { recvWindow: params.recvWindow }) }); const data = await response.data(); return { content: [ { type: "text", text: `Successfully retrieve Dual Investment account balances, including total value in BTC and USDT equivalents. Response: ${JSON.stringify( data )}` } ] }; } catch (error) { const errorMessage = error instanceof Error ? error.message : String(error); return { content: [ { type: "text", text: `Failed to retrieve Dual Investment account balances: ${errorMessage}` } ], isError: true }; } } ); }

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/TermiX-official/binance-mcp'

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