← 返回
开发者工具 中文

Robinhood for Agents

Trade stocks, options, and crypto on Robinhood — dual mode (MCP tools or TypeScript client).
在 Robinhood 交易股票、期权和加密货币 — 双模式(MCP 工具或 TypeScript 客户端)。
kevin1chun kevin1chun 来源
开发者工具 clawhub v0.6.1 1 版本 99871 Key: 无需
★ 1
Stars
📥 754
下载
💾 9
安装
1
版本
#latest

概述

robinhood-for-agents

AI-native Robinhood trading interface. No MCP server required — this skill works standalone via the TypeScript client API and bun.

How to Use

Run Robinhood operations by executing TypeScript code with bun. The robinhood-for-agents npm package provides a full client library — just import it and call methods:

bun -e '
import { getClient } from "robinhood-for-agents";
const rh = getClient();
await rh.restoreSession();
// call any method, print results as JSON
const holdings = await rh.buildHoldings();
console.log(JSON.stringify(holdings, null, 2));
'

See client-api.md for all available methods and signatures.

> MCP users: If you have the robinhood-for-agents MCP server configured, you may use MCP tools instead. See reference.md for tool parameters. MCP is optional — the client API above does everything the MCP tools do.

CRITICAL SAFETY RULES

  1. Always confirm before placing any order — show order preview, get explicit "yes"
  2. Show current price before order confirmation so user knows the cost
  3. Never place orders without user confirmation
  4. Fund transfers and bank operations are BLOCKED — refuse these requests
  5. Never place bulk cancel operations — cancel orders one at a time

BLOCKED Operations (never use)

  • Bulk cancel operations
  • Fund transfers (withdraw/deposit)
  • Bank unlinking

Routing

User IntentDomain FileExample Triggers
---------
Auth / login / connectsetup.md"setup robinhood", "connect to robinhood", "robinhood login"
Portfolio / holdings / positionsportfolio.md"show my portfolio", "my holdings", "account summary"
Stock research / analysisresearch.md"research AAPL", "analyze TSLA", "due diligence on NVDA"
Buy / sell / orders / canceltrade.md"buy 10 shares of AAPL", "sell my TSLA", "cancel my order"
Options / calls / puts / chainsoptions.md"show AAPL options", "SPX calls", "0DTE options", "covered calls"

Read the corresponding domain file for detailed workflow instructions.

Authentication Prerequisite

Before any data-fetching or trading operation, verify the session is active:

bun -e 'import { getClient } from "robinhood-for-agents"; const rh = getClient(); await rh.restoreSession(); console.log("ok");'

If it throws, follow setup.md to authenticate.

Client Method Inventory

MethodCategoryDescription
---------
restoreSession()AuthRestore/validate session (throws if not authenticated)
getAccountProfile()AccountAccount details and preferences
getAccounts()AccountAll brokerage accounts
buildHoldings(opts?)PortfolioHoldings with P&L, equity, buying power
getCryptoPositions()CryptoCrypto holdings
getCryptoQuote(symbol)CryptoCurrent crypto price
getQuotes(symbols)ResearchStock quotes (price, bid/ask, P/E)
getFundamentals(symbols)ResearchMarket cap, 52-week range, sector
getNews(symbol)ResearchRecent news articles
getRatings(symbol)ResearchAnalyst buy/hold/sell ratings
getEarnings(symbol)ResearchQuarterly EPS history
getStockHistoricals(symbols, opts?)ResearchOHLCV price history
findInstruments(query)ResearchSearch stocks by keyword
getChains(symbol)OptionsOption chain expirations
findTradableOptions(symbol, opts?)OptionsOption instruments by expiration/strike/type
getOptionMarketData(symbol, exp, strike, type)OptionsGreeks and pricing
getIndexValue(symbol)OptionsCurrent index value (SPX, NDX, etc.)
getMovers()MarketsTop market movers
orderStock(symbol, qty, side, opts?)TradingPlace stock order
orderOption(symbol, legs, price, qty, dir, opts?)TradingPlace option order
orderCrypto(symbol, side, amount, opts?)TradingPlace crypto order
getAllStockOrders() / getOpenStockOrders()TradingView stock orders
cancelStockOrder(id)TradingCancel stock order
getStockOrder(id)TradingCheck order fill status

Important Notes

  • Do NOT use phoenix.robinhood.com — use api.robinhood.com endpoints only
  • Multi-account is first-class: always ask which account when multiple exist
  • Session tokens expire ~24h; the client auto-refreshes before requiring re-auth

版本历史

共 1 个版本

  • v0.6.1 当前
    2026-03-29 20:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

professional

A股量化 AkShare

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

Stock Market Pro

kys42
Yahoo Finance (yfinance) 驱动的股票分析技能:行情报价、基本面、ASCII 趋势图、高分辨率图表(RSI/MACD/BB/VWAP/ATR),以及可选的网络...
★ 161 📥 39,899
professional

Stock Analysis

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