Skip to main content
Glama
kingleosgold

TroyStack API

by kingleosgold

TroyStack API

REST-API + MCP-Server für TroyStack. Bietet Live-Edelmetalldaten, Portfoliomanagement und KI/LLM-Integration.

Schnellstart

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

Related MCP server: The Gold Barometer MCP Server

Bereitstellung auf Railway

  1. In GitHub-Repository pushen

  2. Repository im Railway-Dashboard verbinden

  3. Umgebungsvariablen festlegen:

    • SUPABASE_URL

    • SUPABASE_SERVICE_ROLE_KEY

    • PORT (Railway setzt automatisch)

  4. Bereitstellen

Benutzerdefinierte Domain: api.troystack.ai

Datenbank-Einrichtung

Führen Sie migrations/001_api_keys.sql im Supabase-SQL-Editor aus.

Endpunkte

Öffentlich (ohne Authentifizierung)

Methode

Pfad

Beschreibung

GET

/v1/prices

Live-Spotpreise (Au, Ag, Pt, Pd)

GET

/v1/prices/history

Historische Preise

GET

/v1/market-intel

Nachrichtenschlagzeilen

GET

/v1/vault-watch

COMEX-Bestand

GET

/v1/speculation

Was-wäre-wenn-Projektionen

Authentifiziert (Bearer-Token)

Methode

Pfad

Beschreibung

GET

/v1/portfolio

Portfolio-Zusammenfassung

GET

/v1/analytics

Kostenbasis-Analyse

GET

/v1/holdings

Bestände auflisten

POST

/v1/holdings

Kauf hinzufügen

LLM / KI

Pfad

Beschreibung

/llms.txt

LLM-lesbare Beschreibung

/openapi.json

OpenAPI-3.0-Spezifikation

/.well-known/ai-plugin.json

KI-Plugin-Manifest

/.well-known/mcp.json

MCP-Server-Manifest

Architektur

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