← 返回
开发者工具 中文

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

Stock Market Pro

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

All-Market Financial Data Hub

financial-ai-analyst
基于东方财富数据库,支持自然语言查询金融数据,覆盖A股、港股、美股、基金、债券等资产,提供实时行情、公司信息、估值、财务报表等,适用于投资研究、交易复盘、市场监控、行业分析、信用研究、财报审计、资产配置等场景,满足机构与个人需求。返回结果为
★ 118 📥 40,884
professional

A股量化 AkShare

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