service online

trading-data API

Self-hosted MT5 market-data store. Collectors push OHLCV bars; consumers read them back. A rolling window of the newest candles is kept per series.

Endpoints

GET/healthpublic
POST/ingestbearer
GET/barsbearer
GET/latestbearer
GET/symbolsbearer

Quick start

Authenticate

Secured routes need a bearer token. In the docs UI use Authorize, or send Authorization: Bearer <token>.

Rolling window

Only the newest WINDOW_SIZE candles per (symbol, timeframe) are retained. Older bars are pruned on ingest.

# newest bar for a series
curl -H "Authorization: Bearer $API_TOKEN" \
  "http://localhost:8080/latest?symbol=EURUSD&tf=M1"