Skip to main content
Glama

binance.market.exchangeInfo

Retrieve exchange information and symbol filters to understand trading parameters and restrictions on Binance.

Instructions

Get exchange information including filters per symbol.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool execution handler: fetches exchange information using the binance client and returns the data, with error conversion.
    async run() { try { const res = await binance.exchangeInfo(); return res.data; } catch (err) { throw toToolError(err); } }
  • Zod input schema for the tool (empty object as no parameters are required).
    const exchangeInfoSchema = z.object({});
  • src/index.ts:24-39 (registration)
    Tool registration loop in FastMCP server that adds this tool (included in the 'tools' array) with a wrapper execute function calling the tool's run method.
    tools.forEach((tool) => { server.addTool({ name: tool.name, description: tool.description, parameters: tool.parameters, execute: async (args) => { try { const result = await tool.run(args); return JSON.stringify(result, null, 2); } catch (error) { const handled = error instanceof ToolError ? error : new ToolError((error as Error).message); throw handled; } }, }); });
  • src/index.ts:14-22 (registration)
    The tools array where tool_exchange_info is included for registration.
    const tools = [ tool_market_price, tool_market_klines, tool_exchange_info, tool_account_balances, tool_open_orders, tool_place_order, tool_cancel_order, ];
  • Initialization of the binance Spot client used by the tool handler.
    export const binance = new Spot(apiKey, apiSecret, { baseURL });

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

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