360 Secure SkillHub
360 安全技能中心

Groww

这是对接印度券商Groww的交易工具,核心功能涵盖印度股票(NSE/BSE)行情查询、持仓管理、买卖下单、订单状态查询及撤单。典型场景包括查股价、看持仓、执行交易、管理订单。需先配置Groww API密钥,可通过MCP命令行或直接API调用,输出对应数据或操作结果。

pushp1997
pushp1997
热度 69.87
最近更新 2026-05-18 11:59:29
分类:自动化依赖:MCP 服务 / 第三方 API应用场景:财务 / 个人理财 / 数据处理 / 市场分析

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add groww
Metadata
name
groww
description
Trade stocks and manage portfolio on Groww (Indian broker). Use when user asks about Indian stocks, NSE/BSE prices, portfolio holdings, placing buy/sell orders, checking order status, or any Groww-related trading queries. Supports live quotes, LTP, OHLC, historical candles, and order management.

Groww Trading

Trade Indian stocks via Groww. Supports portfolio management, market data, and order execution.

Setup

  1. Get API key from Groww app: Stocks → Settings → API Trading → Generate API key
  2. Add to OpenClaw config:
    openclaw configure
    # Add env: GROWW_API_KEY=your_key_here
    

MCP Server Usage

The groww-mcp server is configured. Call tools via mcporter:

# Portfolio
mcporter call groww-mcp.portfolio

# Market data
mcporter call groww-mcp.market-data action=live-quote symbol=TATAMOTORS
mcporter call groww-mcp.market-data action=ltp symbols=TATAMOTORS,RELIANCE
mcporter call groww-mcp.market-data action=ohlc symbol=TCS

# Orders
mcporter call groww-mcp.place_order symbol=TATAMOTORS quantity=10 side=BUY type=MARKET
mcporter call groww-mcp.order_status orderId=ABC123
mcporter call groww-mcp.cancel_order orderId=ABC123

Direct API (Alternative)

If MCP has issues, use the Groww API directly:

Base URL

https://api.groww.in/v1/

Headers

Authorization: Bearer $GROWW_API_KEY
Accept: application/json
Content-Type: application/json

Endpoints

Portfolio/Holdings:

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/holdings/user"

Live Quote:

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/live-data/quote?exchange=NSE&segment=CASH&trading_symbol=TATAMOTORS"

LTP (Last Traded Price):

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/live-data/ltp?segment=CASH&exchange_symbols=NSE:TATAMOTORS,NSE:RELIANCE"

OHLC:

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/live-data/ohlc?segment=CASH&exchange_symbols=NSE:TATAMOTORS"

Historical Candles:

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/historical/candle/range?exchange=NSE&segment=CASH&trading_symbol=TATAMOTORS&interval=5m&start_time=2024-06-01T09:15:00&end_time=2024-06-01T15:30:00"

Place Order:

curl -X POST -H "Authorization: Bearer $GROWW_API_KEY" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{"trading_symbol":"TATAMOTORS","quantity":10,"validity":"DAY","exchange":"NSE","segment":"CASH","product":"CNC","order_type":"MARKET","transaction_type":"BUY"}' \
  "https://api.groww.in/v1/order/create"

Order Status:

curl -H "Authorization: Bearer $GROWW_API_KEY" -H "Accept: application/json" \
  "https://api.groww.in/v1/order/detail/{groww_order_id}?segment=CASH"

Cancel Order:

curl -X POST -H "Authorization: Bearer $GROWW_API_KEY" \
  -H "Accept: application/json" -H "Content-Type: application/json" \
  -d '{"segment":"CASH","groww_order_id":"ABC123"}' \
  "https://api.groww.in/v1/order/cancel"

Stock Symbols

Use NSE trading symbols:

  • TATAMOTORS, RELIANCE, TCS, INFY, HDFCBANK
  • WIPRO, ICICIBANK, SBIN, BHARTIARTL, ITC

Market Hours

  • Pre-open: 9:00 - 9:15 AM IST
  • Trading: 9:15 AM - 3:30 PM IST
  • Monday to Friday (except holidays)

Example Queries

  • "Show my Groww portfolio"
  • "What's TATAMOTORS price?"
  • "Buy 10 RELIANCE shares"
  • "Sell 5 TCS at limit 4200"
  • "Cancel order ABC123"
  • "Get historical data for INFY"