DocsArchitecture & Integration
Trentarev API Reference
Overview of api.trentarev.com, endpoints, caching policies, and domain separation.
The Trentarev backend (api.trentarev.com) is built on Node.js and TypeScript, designed to handle large-scale desktop client concurrency. It follows a strict domain separation architecture.
Architecture
Our backend separates logic into two explicit domains.
1. Market Domain (Read-Only)
The Market domain is responsible for fetching, normalizing, and caching external market data. It is stateless and heavily caches data for performance. Endpoints include:
/api/market/snapshot/api/market/stocks/api/market/fx/api/market/news
2. Product Domain (Write-Capable)
The Product domain persists user actions and derives app state, using a local SQLite database setup. Endpoints include:
/api/calls/api/activity/api/profile/summary