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