Run Your First Aligned Query
What this guide covers
- This guide shows how to query the aligned 1-second surface.
Prerequisites
- Local stack is running
ORIGO_INTERNAL_API_KEYis set
Current scope
- This guide uses
POST /v1/raw/queryinmode=aligned_1s.
Concrete example
curl -sS -X POST 'http://localhost:18000/v1/raw/query' \
-H 'Content-Type: application/json' \
-H "X-API-Key: ${ORIGO_INTERNAL_API_KEY}" \
--data '{
"mode":"aligned_1s",
"sources":["binance_spot_trades","okx_spot_trades","bybit_spot_trades"],
"time_range":["2024-01-01T00:00:00Z","2024-01-01T00:05:00Z"],
"strict":false
}'
Expected outputs or artefacts
- An aligned response envelope with normalized rows and freshness metadata when available
Next steps
docs/Guides/Export-Data.mddocs/aligned-reference.md