DocsArchitecture & Integration

Trentarev API Reference

Comprehensive guide to all endpoints, routing architecture, and domains across Trentarev.

Trentarev operates across two primary domains: t-server (the heavy Node.js proxy and product API) and t-land-v2 (the Next.js landing and marketing gateway).

1. t-server (api.trentarev.com)

Built on Node.js and TypeScript, the t-server handles large-scale desktop client concurrency and provides all trading intelligence and market aggregation. It separates logic into two explicit domains: Market (Read-Only) and Product (Write-Capable).

Market Data Endpoints (Read-Only)

The Market domain is responsible for fetching, normalizing, and caching external market data.

  • GET /api/market/snapshot — Fetches a lightweight overview of all tracked symbols.
  • GET /api/market/stocks?symbols=AAPL,MSFT — Batch fetch live prices and basic quotes.
  • GET /api/market/fundamentals/:symbol — Full financial fundamentals, PE ratios, and metadata.
  • GET /api/market/candles/:symbol?timeframe=1D — Historical candle chart data.
  • GET /api/market/news/:symbol — Fetches recent headlines and sentiment analysis for a specific asset.
  • GET /api/market/fx — Live Forex rates against USD.
  • GET /api/market/indices — Standard major indices (SPY, QQQ, etc).

Product & State Endpoints (Write-Capable)

The Product domain persists user actions and derives app state, using a local SQLite database setup.

  • GET /api/calls | POST /api/calls — Create and read user structural positions.
  • GET /api/activity | POST /api/activity — Append-only immutable log for trade exits or adjustments.
  • GET /api/profile/summary — Derived macro statistics (portfolio value, win rate).

Utility Endpoints

  • GET /api/health — Returns JSON status matrix spanning hit counts and latencies for all endpoints.

Note: /api/admin/* endpoints exist but are protected and unlisted from public registries.

2. t-land-v2 (trentarev.com)

The t-land-v2 Next.js application strictly serves marketing pages and lead generation API proxies.

Waitlist Endpoints

  • POST /api/waitlist — Submits lead information (Email, Name, Country, etc) securely to Google Sheets via Webhooks.

Trentarev