VibeTrader - AI Trading Bots
Create and manage AI-powered trading bots using natural language. Trade stocks, ETFs, crypto, and options with automated strategies.
What You Can Do
🤖 Bot Management
- - Create bots from natural language: "Create a bot that buys AAPL when RSI drops below 30"
- List, start, pause, delete your bots
- View bot performance and trade history
- Backtest strategies before going live
📊 Portfolio & Trading
- - View positions and account balance
- Get real-time quotes for stocks, ETFs, and crypto
- Place manual orders (buy/sell)
- Switch between paper and live trading
📈 Market Data
- - Stock and ETF quotes
- Options chains with Greeks
- Market status checks
Setup
- 1. Get your API key from vibetrader.markets/settings
- 2. Set the environment variable in your OpenClaw config (
~/.openclaw/openclaw.json):
CODEBLOCK0
Or export it in your shell:
CODEBLOCK1
REST API Endpoints
Base URL: INLINECODE1
Authentication: Include header Authorization: Bearer YOUR_API_KEY with every request.
Health Check
CODEBLOCK2
List All Bots
CODEBLOCK3
Get Specific Bot
CODEBLOCK4
Get Portfolio (Account + Positions)
CODEBLOCK5
Get Positions Only
CODEBLOCK6
Get Account Summary
CODEBLOCK7
Get Stock Quote
CODEBLOCK8
Get Recent Trades
CODEBLOCK9
Check Market Status
CODEBLOCK10
Example with curl
CODEBLOCK11
MCP Tools (Alternative)
If your agent supports MCP protocol, these tools are available via the MCP server:
| Tool | Description |
|---|
| INLINECODE3 | Connect with your API key (auto-uses env var if set) |
| INLINECODE4 |
Create a trading bot from natural language (use
prompt param) |
|
list_bots | List all your bots with status |
|
get_bot | Get detailed bot info and strategy |
|
start_bot | Start a paused bot |
|
pause_bot | Pause a running bot |
|
delete_bot | Delete a bot |
|
get_portfolio | View positions and balance |
|
get_positions | View current open positions |
|
get_account_summary | Get account balance and buying power |
|
place_order | Place a buy/sell order |
|
close_position | Close an existing position |
|
get_quote | Get stock/ETF/crypto quotes |
|
get_trade_history | See recent trades |
|
run_backtest | Backtest a bot's strategy |
|
get_market_status | Check if markets are open |
Example Prompts
Create Trading Bots
- - "Create a momentum bot that buys TSLA when RSI crosses below 30 and sells above 70"
- "Make an NVDA bot with a 5% trailing stop loss"
- "Create a crypto scalping bot for BTC/USD on the 5-minute chart"
- "Build an iron condor bot for SPY when IV rank is above 50"
Manage Your Bots
- - "Show me all my bots and how they're performing"
- "Pause my AAPL momentum bot"
- "What trades did my bots make today?"
- "Delete all my paused bots"
Portfolio Management
- - "What's my current portfolio value?"
- "Show my open positions with P&L"
- "Buy $500 worth of NVDA"
- "Close my TSLA position"
Market Research
- - "What's the current price of Apple stock?"
- "Get the options chain for SPY expiring this Friday"
- "Is the market open right now?"
Backtesting
- - "Backtest my RSI bot on the last 30 days"
- "How would a moving average crossover strategy have performed on QQQ?"
Trading Modes
- - Paper Trading (default): Practice with virtual money, no risk
- Live Trading: Real money trades via Alpaca brokerage
Switch modes with: "Switch to live trading mode" or "Use paper trading"
MCP Server
This skill connects to the VibeTrader MCP server at:
CODEBLOCK12
Support
VibeTrader - AI交易机器人
使用自然语言创建和管理AI驱动的交易机器人。通过自动化策略交易股票、ETF、加密货币和期权。
你能做什么
🤖 机器人管理
- - 创建机器人 通过自然语言:创建一个当RSI跌破30时买入AAPL的机器人
- 列出、启动、暂停、删除 你的机器人
- 查看机器人表现 和交易历史
- 回测策略 在上线之前
📊 投资组合与交易
- - 查看持仓 和账户余额
- 获取实时报价 股票、ETF和加密货币
- 下达手动订单(买入/卖出)
- 在模拟交易和实盘交易之间切换
📈 市场数据
设置
- 1. 获取你的API密钥 从 vibetrader.markets/settings
- 2. 设置环境变量 在你的OpenClaw配置中(~/.openclaw/openclaw.json):
json
{
skills: {
entries: {
vibetrader: {
env: {
VIBETRADERAPIKEY: vtyourapikeyhere
}
}
}
}
}
或者在shell中导出:
bash
export VIBETRADERAPIKEY=vtyourapikeyhere
REST API端点
基础URL: https://vibetrader-mcp-289016366682.us-central1.run.app
认证: 每个请求都需包含标头 Authorization: Bearer YOURAPIKEY。
健康检查
GET /api/health
列出所有机器人
GET /api/bots
GET /api/bots?mode=paper
GET /api/bots?mode=live
获取特定机器人
GET /api/bot?id=BOT_ID
获取投资组合(账户+持仓)
GET /api/portfolio?mode=paper
GET /api/portfolio?mode=live
仅获取持仓
GET /api/positions?mode=paper
获取账户摘要
GET /api/account?mode=paper
获取股票报价
GET /api/quote?symbol=AAPL
GET /api/quote?symbol=TSLA
获取近期交易
GET /api/trades?mode=paper&limit=20
检查市场状态
GET /api/market-status
使用curl的示例
curl -H Authorization: Bearer vtYOURKEY https://vibetrader-mcp-289016366682.us-central1.run.app/api/bots
MCP工具(替代方案)
如果你的代理支持MCP协议,这些工具可通过MCP服务器使用:
| 工具 | 描述 |
|---|
| authenticate | 使用你的API密钥连接(如果已设置,自动使用环境变量) |
| create_bot |
从自然语言创建交易机器人(使用prompt参数) |
| list_bots | 列出所有机器人的状态 |
| get_bot | 获取详细的机器人信息和策略 |
| start_bot | 启动暂停的机器人 |
| pause_bot | 暂停运行中的机器人 |
| delete_bot | 删除机器人 |
| get_portfolio | 查看持仓和余额 |
| get_positions | 查看当前未平仓持仓 |
| get
accountsummary | 获取账户余额和购买力 |
| place_order | 下达买入/卖出订单 |
| close_position | 平掉现有持仓 |
| get_quote | 获取股票/ETF/加密货币报价 |
| get
tradehistory | 查看近期交易 |
| run_backtest | 回测机器人的策略 |
| get
marketstatus | 检查市场是否开盘 |
示例提示
创建交易机器人
- - 创建一个动量机器人,当RSI跌破30时买入TSLA,超过70时卖出
- 为NVDA创建一个带5%追踪止损的机器人
- 创建一个BTC/USD的5分钟图加密货币剥头皮机器人
- 当IV排名高于50时,为SPY构建一个铁鹰期权机器人
管理你的机器人
- - 显示我所有的机器人及其表现
- 暂停我的AAPL动量机器人
- 我的机器人今天做了哪些交易?
- 删除我所有暂停的机器人
投资组合管理
- - 我当前的投资组合价值是多少?
- 显示我的未平仓持仓及盈亏
- 买入价值500美元的NVDA
- 平掉我的TSLA持仓
市场研究
- - 苹果股票当前价格是多少?
- 获取本周五到期的SPY期权链
- 市场现在开盘吗?
回测
- - 回测我的RSI机器人过去30天的表现
- 移动平均线交叉策略在QQQ上的表现会如何?
交易模式
- - 模拟交易(默认):使用虚拟资金练习,无风险
- 实盘交易:通过Alpaca券商进行真实资金交易
切换模式:切换到实盘交易模式 或 使用模拟交易
MCP服务器
此技能连接到VibeTrader MCP服务器,地址为:
https://vibetrader-mcp-289016366682.us-central1.run.app/mcp
支持