REST API Overview
Quantago's API is designed around product workflows rather than low-level primitives.
The main jobs of the API are:
- expose session state
- return historical market data
- create and inspect backtests
- expose built-in and persisted strategies
- provide admin ingestion operations
Base URL
Production:
https://api.quantago.co
All routes below are prefixed with /api.
Public and Protected Routes
Public routes:
GET /api/healthGET /api/market-data/ticksPOST /api/auth/*and related auth endpoints exposed through Better Auth
Protected routes:
GET /api/sessionGET /api/backtestsPOST /api/backtestsGET /api/backtests/:idGET /api/backtests/:id/tradesGET /api/strategiesPOST /api/strategiesGET /api/strategies/:slug/versionsPOST /api/strategies/:slug/versions
Admin-only routes:
GET /api/admin/ingestion/eventsPOST /api/admin/ingestion/run-once- the ingestion route group under
/api/admin/ingestion/*
Response Style
The API returns JSON for normal request-response endpoints.
Typical status codes:
200for successful reads201for successful strategy creation202for accepted backtest jobs400for validation failures401for missing auth403for valid auth without the right permissions
Common Integration Pattern
- Establish or reuse a session.
- Call
GET /api/sessionto confirm the active user. - Query market data or list strategies.
- Submit a backtest.
- Poll the backtest resource until the result is available.
Example Session Check
curl https://api.quantago.co/api/session \
-b cookies.txt
Example Health Check
curl https://api.quantago.co/api/health
Next Steps
- Read Authentication for session behavior.
- Read Backtests for job submission.
- Read Market Data for historical tick queries.
- Read Strategies for the catalog and registry model.