TroyStack API
TroyStack API
REST API + MCP Server,用于 TroyStack。提供实时贵金属数据、投资组合管理以及 AI/LLM 集成。
快速开始
npm install
cp .env.example .env # fill in Supabase credentials
npm run devRelated MCP server: The Gold Barometer MCP Server
部署到 Railway
推送到 GitHub 仓库
在 Railway 仪表板中连接仓库
设置环境变量:
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYPORT(Railway 自动设置)
部署
自定义域名:api.troystack.ai
数据库设置
在 Supabase SQL 编辑器中运行 migrations/001_api_keys.sql。
端点
公共(无需认证)
方法 | 路径 | 描述 |
GET |
| 实时现货价格(Au、Ag、Pt、Pd) |
GET |
| 历史价格 |
GET |
| 新闻头条 |
GET |
| COMEX 库存 |
GET |
| 假设情景预测 |
已认证(Bearer 令牌)
方法 | 路径 | 描述 |
GET |
| 投资组合摘要 |
GET |
| 成本基础分析 |
GET |
| 列出持仓 |
POST |
| 添加购买记录 |
LLM / AI
路径 | 描述 |
| LLM 可读的描述 |
| OpenAPI 3.0 规范 |
| AI 插件清单 |
| MCP 服务器清单 |
架构
User's iPhone → TroyStack app (local SQLite)
↕ sync
Supabase (server-side storage)
↕
TroyStack API (Railway)
↕ ↕
AI Agents X/Twitter Bot
(Claude, GPT) (auto-tweets)This server cannot be deployed
Maintenance
Related MCP Connectors
Gold, silver and copper spot, 31 currencies, per-country dealer prices and nine MCP tools.
Unified financial infrastructure connecting AI agents directly to trade live/demo brokerage accounts, Web3 non-custodial wallets, real-time market data across equities, ETFs, crypto, forex, options, DeFi swaps, and prediction markets, institutional research feeds, and algorithmic strategy backtesters.
Live market data, financial analysis, and portfolio research tools across 10,000+ tickers.
Market data and analytics for external AI clients
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceProvides access to a comprehensive financial intelligence platform featuring real-time market data, quantitative models, and alternative data sources. It enables users to perform advanced financial analysis including options analytics, portfolio modeling, and SEC filing research.-
- AlicenseAqualityBmaintenanceProvides AI assistants with real-time and historical gold buying condition scores, including current readings, past data, and zone performance since 1971.329 npmMIT

AxionQuant MCP Serverofficial
AlicenseCqualityBmaintenanceEnables AI agents and LLM apps to answer natural-language financial questions using live market data, including stocks, crypto, forex, futures, indices, ETFs, economic data, news, sentiment, SEC filings, earnings, financials, insider trading, ESG, credit ratings, and web traffic.132288 npmMIT- AlicenseNot gradedqualityCmaintenanceEnables real-time crypto market data, funding rates, cross-exchange arbitrage, portfolio analytics, exchange skills, and trading via your own connected exchange keys through natural language agent workflows.1MIT