Skip to main content

Run Your First Native Query

What this guide covers​

  • This guide shows the fastest path to a working native Origo query.

Prerequisites​

  • Local stack is running
  • ORIGO_INTERNAL_API_KEY is set

Current scope​

  • This guide uses POST /v1/raw/query in mode=native.

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":"native",
"sources":["binance_spot_trades"],
"time_range":["2017-08-17T12:00:00Z","2017-08-17T13:00:00Z"],
"strict":false
}'

Expected outputs or artefacts​

  • A response envelope with row_count, schema, warnings, and rows

Next steps​

  • docs/Guides/Run-Your-First-Aligned-Query.md
  • docs/raw-query-reference.md