Skip to main content
Glama
darved2305

groww-mcp

by darved2305

get_market_status

Check if the NSE and BSE stock exchanges are currently open for trading to determine when to execute orders or analyze market data.

Instructions

Check if NSE/BSE is currently open for trading

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for get_market_status, which fetches market status from the growwClient and formats the response.
    server.tool(
      "get_market_status",
      "Check if NSE/BSE is currently open for trading",
      {},
      async () => {
        try {
          const statuses = await growwClient.getMarketStatus();
    
          const lines = statuses.map((s) => {
            const icon = s.status === "OPEN" ? "🟢" : s.status === "PRE_OPEN" ? "🟡" : "🔴";
            return `${icon} ${s.exchange}: ${s.status} — ${s.message}`;
          });
    
          const text = [`🏛️ MARKET STATUS`, `${"─".repeat(40)}`, ...lines, ``, `As of ${nowIST()}`].join("\n");
          return mcpText(text);
        } catch (err) {
          return mcpError(normalizeError(err));
        }
      }
    );

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/darved2305/groww-mcp'

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