← 返回
未分类 中文

Robinhood Agentic

Connect to Robinhood Agentic Trading via MCP — view portfolio, analyze positions, place trades, and execute automated strategies through Robinhood's official...
通过 MCP 连接 Robinhood 代理交易,查看投资组合、分析仓位、下单交易,并通过 Robinhood 官方平台执行自动化策略。
leosaucedo leosaucedo 来源
未分类 clawhub v1.0.1 2 版本 100000 Key: 无需
★ 1
Stars
📥 165
下载
💾 0
安装
2
版本
#latest

概述

Robinhood Agentic Trading

Connect to Robinhood Agentic Trading via MCP. This skill lets OpenClaw access your Robinhood Agentic account — view portfolio, analyze positions, place trades, and execute automated strategies.

Setup

The MCP client (rh-client.mjs) handles OAuth 2.1 PKCE authentication to https://agent.robinhood.com/mcp/trading and manages token storage/refresh automatically.

Prerequisites

  1. Robinhood Agentic access (still rolling out — you'll get an email)
  2. A dedicated Agentic account (created during OAuth flow)
  3. Node.js ≥ 18

Install Dependencies

cd robinhood-agentic
pnpm install

First-time Auth

node rh-client.mjs auth

The script will:

  1. Discover Robinhood's OAuth endpoints
  2. Generate a PKCE challenge
  3. Print an authorization URL → Open this in a desktop browser (mobile redirects to the Robinhood app which doesn't support the Agentic flow)
  4. Log into Robinhood, authorize the agent
  5. You'll be redirected to http://localhost:1455/callback?code=XXXX...
  6. Copy the full redirect URL and paste it back into the terminal
  7. Tokens are stored in .rh-tokens.json (gitignored, mode 0600)

Usage

All commands output to stdout. Errors and status messages go to stderr.

Check auth status

node rh-client.mjs status

Returns a JSON object with authenticated, expired, expiresAt, hasRefreshToken, and savedAt.

List available MCP tools

node rh-client.mjs list-tools

Returns a JSON array of tool definitions with names, descriptions, and input schemas.

Call a tool

node rh-client.mjs call <tool_name> '<json_args>'

# Or with stdin for complex args:
echo '{"symbol": "AAPL"}' | node rh-client.mjs call get_equity_quotes -

Output depends on the MCP tool response — may be plain text or JSON. Error messages go to stderr.

Refresh token (auto)

Token refresh happens automatically when the access token is within 5 minutes of expiry (only if a refresh token is available). No manual intervention needed unless the refresh token itself expires.

What OpenClaw Can Do

After auth, OpenClaw can call any tool Robinhood exposes through the MCP server. Based on official docs, the available tools are:

> Read-only tools (portfolio, positions, quotes, etc.) work on all your Robinhood accounts. Trading tools (place/cancel orders) are restricted to the dedicated Agentic account — fund it separately.

Account & Portfolio

ToolDescription
-------------------
get_accountsView all Robinhood accounts
get_portfolioPortfolio snapshot — total value, asset class breakdown, buying power
get_equity_positionsOpen equity positions with quantity and cost basis

Market Data

ToolDescription
-------------------
get_equity_quotesReal-time quotes + prior close for up to 20 symbols
searchFind ticker by company name
get_equity_tradabilityCheck if a symbol can be traded (including fractional)

Orders

ToolDescription
-------------------
review_equity_orderSimulate an order and get pre-trade warnings
place_equity_orderPlace an equity order
cancel_equity_orderCancel an open equity order
get_equity_ordersView equity order history

Use list-tools after auth to discover the exact API surface — Robinhood is actively adding more tools.

For the latest tool list, see Robinhood's official docs.

Security Notes

  • Separate account: The Agentic account is separate from your main Robinhood account — fund it with what you're comfortable with the agent managing
  • Tokens stored locally: OAuth tokens in .rh-tokens.json with restrictive 0600 permissions (gitignored, never committed)
  • Orders execute immediately: place_equity_order sends the order directly with no app-side confirmation prompt. The only preview is the review_equity_order MCP call — use it before placing.
  • Pre-trade preview only in MCP: The review_equity_order tool is the only pre-trade check (returns quote + alerts); place_equity_order skips any app-side prompt entirely.
  • Instant shutdown: You can revoke agent access anytime from Robinhood account settings.

版本历史

共 2 个版本

  • v1.0.1 当前
    2026-06-09 18:53
  • v1.0.0
    2026-06-04 13:54

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

design-media

Soundcloud

leosaucedo
通过 SoundCloud API 进行曲目搜索、播放列表管理、用户操作和音频发现。当用户请求在 SoundCloud 上搜索音乐时使用。
★ 1 📥 139
professional

Stock Analysis

udiedrichsen
{"answer":"基于雅虎财经数据,分析股票与加密货币。支持投资组合管理、自选股预警、股息分析、8维评分、热门趋势扫描及传闻/早期信号探测。适用于股票分析、持仓追踪、财报异动、加密监控、热门股追踪或提前发掘非主流传闻。"}
★ 277 📥 57,594
professional

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 190 📥 62,501