Guides

Guides

Practical how-tos for common tasks across crypto and US equities. Every example is copy-paste ready.

How to get started

Generate an API key in the My Account (it looks like gd_live_…); every request authenticates via the Authorization: Bearer header. The base URL is https://api.gatedata.ai. Here is your first call — runnable on sample assets without a key:

cURL
curl "https://api.gatedata.ai/api/v1/markets/snapshot?query=BTC&market=crypto" \
  -H "Authorization: Bearer gd_live_…"
# { "price": 64210.50, "price_change_24h": 2.41, ... }

How to get stock prices

The same /api/v1/markets/snapshot endpoint serves both crypto and US equities — just pass a stock ticker as query. For historical series, use /api/v1/markets/kline.

cURL
curl "https://api.gatedata.ai/api/v1/markets/snapshot?query=AAPL&market=us_equity" \
  -H "Authorization: Bearer gd_live_…"
# { "price": 311.97, "day_volume": 1, "metadata": { "data_status": "partial", "object_refs": [], "limitations": ["listing_id_unavailable_source_code_only"] } }