Skip to main content
Glama
kingleosgold

TroyStack API

by kingleosgold

TroyStack API

TroyStack 用の REST API + MCP サーバー。貴金属のライブデータ、ポートフォリオ管理、AI/LLM 統合を提供します。

クイックスタート

npm install
cp .env.example .env  # fill in Supabase credentials
npm run dev

Related MCP server: The Gold Barometer MCP Server

Railway へのデプロイ

  1. GitHub リポジトリにプッシュ

  2. Railway ダッシュボードでリポジトリを接続

  3. 環境変数を設定:

    • SUPABASE_URL

    • SUPABASE_SERVICE_ROLE_KEY

    • PORT(Railway が自動設定)

  4. デプロイ

カスタムドメイン: api.troystack.ai

データベース設定

Supabase SQL エディターで migrations/001_api_keys.sql を実行します。

エンドポイント

公開(認証なし)

メソッド

パス

説明

GET

/v1/prices

ライブスポット価格(Au、Ag、Pt、Pd)

GET

/v1/prices/history

履歴価格

GET

/v1/market-intel

ニュース見出し

GET

/v1/vault-watch

COMEX 在庫

GET

/v1/speculation

仮定の予測

認証付き(Bearer トークン)

メソッド

パス

説明

GET

/v1/portfolio

ポートフォリオ概要

GET

/v1/analytics

コストベース分析

GET

/v1/holdings

保有資産の一覧

POST

/v1/holdings

購入を追加

LLM / AI

パス

説明

/llms.txt

LLM が読み取り可能な説明

/openapi.json

OpenAPI 3.0 仕様

/.well-known/ai-plugin.json

AI プラグインマニフェスト

/.well-known/mcp.json

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)

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
    -
  • A
    license
    C
    quality
    B
    maintenance
    Enables 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.
    132
    288 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables 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.
    1
    MIT