ETFs
Indicative ETF reference instruments under /etfs: discovery, quotes, last trade, snapshots, and aggregates.
/etfs and /v1/etfs are equivalent mounts.Symbols
Examples include US500ETF, US100ETF, USBOND, USGOLD, and WORLDETF. A few Asian listings carry a market prefix, for example HK:2800 and KR:226490. Use GET /etfs/symbols for the full set enabled for your key (see Symbols → ETFs).
Symbol list
Curated ETF-style symbols available on the REST API.
Request
curl -sS "https://api.tickerlayer.com/etfs/symbols" \
-H "x-api-key: <YOUR_API_KEY>"Response 200 OK
{
"symbols": [
{ "symbol": "US100ETF", "name": "US growth 100" },
{ "symbol": "US500ETF", "name": "US 500" }
]
}Latest quote
Consolidated bid/ask and timestamp from the REST quote path.
Path parameters
symbol- Enabled ETF-style symbol (e.g. US500ETF, US100ETF, HK:2800). Most are product codes; a few Asian listings carry a market prefix. Trimmed and uppercased before lookup. Full list: GET /etfs/symbols.
Query parameters
spreadfullanswers outside the US regular session with the newest book even when it is wider than 0.5% of the mid (full spread). Leave it out for the default quote.ValuesnormalizedfullDefaultnormalized
Request
curl -sS "https://api.tickerlayer.com/etfs/quote/US500ETF" \
-H "x-api-key: <YOUR_API_KEY>"Send runs against the live API with your account key (never exposed in the browser).
Response 200 OK
{
"symbol": "US500ETF",
"bid": 718.65997,
"ask": 718.65997,
"bid_size": 90,
"ask_size": 40,
"timestamp": 1777555800000
}Notes
404 unknown symbol if the code is not enabled. 404 no quote available when no consolidated quote can be resolved. Outside the US regular session (09:30 to 16:00 ET) a quote is published only while its spread stays within 0.5% of the mid; wider pre-market and after-hours books are held back and the last quote within that limit remains the served value. Add ?spread=full for the newest book, wide ones included. Build candles from trades rather than from quotes.Last trade
Latest trade-style print for the ETF. size may be null.
Path parameters
symbol- Enabled ETF-style symbol (e.g. US500ETF, US100ETF, HK:2800). Most are product codes; a few Asian listings carry a market prefix. Trimmed and uppercased before lookup. Full list: GET /etfs/symbols.
Request
curl -sS "https://api.tickerlayer.com/etfs/trade/last/US500ETF" \
-H "x-api-key: <YOUR_API_KEY>"Send runs against the live API with your account key (never exposed in the browser).
Response 200 OK
{
"symbol": "US500ETF",
"price": 718.66,
"size": 90,
"timestamp": 1777555800000
}Notes
404 unknown symbol if not enabled. 404 symbol not available or 503 market data temporarily unavailable when no trade-style value can be resolved yet.Snapshot
Combined bid/ask, last reference level, previous daily close, and change metrics.
Path parameters
symbol- Enabled ETF-style symbol (e.g. US500ETF, US100ETF, HK:2800). Most are product codes; a few Asian listings carry a market prefix. Trimmed and uppercased before lookup. Full list: GET /etfs/symbols.
Request
curl -sS "https://api.tickerlayer.com/etfs/snapshot/US100ETF" \
-H "x-api-key: <YOUR_API_KEY>"Send runs against the live API with your account key (never exposed in the browser).
Response 200 OK
{
"symbol": "US100ETF",
"bid": 528.90,
"ask": 528.90,
"bid_size": 39,
"ask_size": 85,
"last_price": 528.90,
"last_timestamp": 1743512400000,
"prev_close": 525.00,
"change": 3.90,
"change_percent": 0.7429
}Notes
change_percent is null when prev_close is zero or unavailable. Responses do not include last_size.Previous bar
Most recent fully completed daily OHLCV bar in UTC (previous session close).
Path parameters
symbol- Enabled ETF-style symbol (e.g. US500ETF, US100ETF, HK:2800). Most are product codes; a few Asian listings carry a market prefix. Trimmed and uppercased before lookup. Full list: GET /etfs/symbols.
Query parameters
interval- Returns the most recently settled bar at that interval instead of the previous daily bar, and adds
interval,bar_start,bar_endandas_ofto the response. Leave it out for the daily bar.Values1m5m15m1h4h1d
Request
curl -sS "https://api.tickerlayer.com/etfs/agg/US500ETF/prev" \
-H "x-api-key: <YOUR_API_KEY>"Response 200 OK
{
"symbol": "US500ETF",
"result": {
"o": 610.0,
"h": 614.0,
"l": 608.0,
"c": 612.0,
"v": 82000000,
"t": 1732924800000
}
}Notes
404 no bar available when the daily bar cannot be resolved yet. A bar requested with ?interval= is held for a short settle lag after it closes, so small clock differences between callers do not change which bar comes back, and it is the same bar the range endpoint returns for that window. Cache-Control and ETag mark when the value can next change. While the market is closed the last real bar is returned, still labelled with its own bar_start.Aggregate bars (OHLCV)
Historical bars between two UTC calendar dates.
Path parameters
symbol- An enabled symbol of this asset class, for example
BTCUSDorUS:KO. Trimmed before lookup. multiplier- Bar size in units of
timespan:1,5or15withminute;1or4withhour;1withday. Other pairs return400, and the message lists the valid ones. timespan- Case-insensitive. Other values return
400.Valuesminutehourday from- First UTC date, inclusive, as
YYYY-MM-DD. to- Last UTC date, inclusive, as
YYYY-MM-DD. Not beforefrom.
Query parameters
limit- Page size, up to
5000.results_countis the size of this page andtotal_countthe bars in the whole range; follownext_offsetuntil it isnull.Default500 offset- Zero-based row offset, applied after sorting.Default
0 sort- Order of bars by timestamp
t, applied before pagination.ValuesascdescDefaultdesc
Request
curl -sS "https://api.tickerlayer.com/etfs/agg/US100ETF/1/day/2025-11-01/2025-11-30?sort=desc&limit=2" \
-H "x-api-key: <YOUR_API_KEY>"Response 200 OK
{
"symbol": "US100ETF",
"results_count": 2,
"results": [
{ "o": 520.0, "h": 525.0, "l": 518.0, "c": 523.0, "v": 1200000, "t": 1733011200000 },
{ "o": 518.0, "h": 522.0, "l": 516.0, "c": 520.0, "v": 980000, "t": 1732924800000 }
],
"next_offset": 2
}Notes
vmay be null when no consolidated volume exists for that interval.- One request covers at most 31 days of 1-minute bars, 90 of 5-minute, 180 of 15-minute, 365 of hourly, 730 of 4-hour and 5000 of daily bars, counting
fromandtoas whole UTC days. A longer range returns400with the limit in the message.
WebSocket
Stream live quotes and trades for this asset class over the public WebSocket.
wss://stream.tickerlayer.com/?apiKey=<YOUR_API_KEY>Available channels
Subscribe example
After the connection is ready, send a JSON text frame:
{
"action": "subscribe",
"channels": [
"etfs.quotes",
"etfs.trades"
],
"symbols": [
"US500ETF",
"US100ETF"
]
}Example message
{
"type": "quote",
"channel": "etfs.quotes",
"asset": "etfs",
"symbol": "US500ETF",
"bid": 718.6,
"ask": 718.72,
"bid_size": 40,
"ask_size": 55,
"ts": 1743512400000,
"timestamp": 1743512400000
}General WebSocket documentation
For authentication, subscribe/unsubscribe lifecycle, errors, limits, and heartbeats, see the WebSocket overview, Subscriptions and Message types.
Extended hours full spread
Outside the US regular session (09:30 to 16:00 ET) a US ETF quote is published only while its spread stays within 0.5% of the mid, and the last quote within that limit stays the served value. Subscribe to etfs.quotes with "spread": "full" (or add ?spread=full to GET /etfs/quote) and the wider books arrive too, so a thin after-hours market shows as a wide spread instead of a held quote. Same frame, same fields. It applies to US ETFs on etfs.quotes, so send it in a subscribe of its own; Asia ETFs are never held back and stay on the default stream.
| Value | Outside regular hours |
|---|---|
"normalized" | Default. Books wider than 0.5% of the mid are held back. |
"full" | The wider books too. A subscribe is answered with a spread message after the ack. |
{
"action": "subscribe",
"channels": ["etfs.quotes"],
"symbols": ["US500ETF", "US100ETF"],
"spread": "full"
}OHLCV bars over WebSocket
Settled bars for US-listed ETFs, included with ETF access. Subscribe to etfs.agg with ETF symbols and receive one agg frame per symbol each time a bar settles, built from the fund's consolidated tape on the US session grid.
{
"action": "subscribe",
"channels": ["etfs.agg"],
"symbols": ["US500ETF", "USGOLD"]
}{
"type": "agg",
"channel": "etfs.agg",
"asset": "etfs",
"symbol": "US500ETF",
"interval": "1m",
"session": "regular",
"o": 718.52,
"h": 718.8,
"l": 718.4,
"c": 718.66,
"v": 152340,
"n": 1204,
"vw": 718.6312,
"ts": 1789133400000
}Numbers are numbers: o h l c v the bar, n the trade count, vw the volume-weighted average price, session where the bar starts (pre, regular, post) and ts the bar start in unix ms. A frame arrives a few seconds after its window closes.
| Interval | Arrives | Grid |
|---|---|---|
1m | Right after each traded minute; a minute without a trade has no bar. | Every minute of the session. |
5m 15m | As each window closes, rolled up from the minute bars. | On the clock from 09:30 ET: 09:30, 09:35 … and 09:30, 09:45 … |
1h 4h | As each window closes; the last one closes with the session. | Anchored at the open: 09:30, 10:30 … and 09:30, 13:30 ET. |
1d | About two minutes after the closing bell. | Official open and close with consolidated volume, labelled at the session date's UTC midnight. |
- Sessions
- Intraday bars cover the regular session, 09:30 to 16:00 ET with early closes honored. With
"session": "extended", 1m, 5m and 15m bars also arrive from 04:00 to 20:00 ET (17:00 on early closes), taggedpre,regularorpost; 1h, 4h and 1d always follow the regular grid. - Closed bars only
- One frame per symbol, interval and window, no in-progress updates. Build a live candle from
etfs.tradesif you need one. - No snapshot
- The first frame arrives within one interval, and a bar that settles while you are disconnected is not replayed. For history use
/etfs/agg. - Intervals per symbol
intervaltakes a string or an array. The latest subscribe for a symbol sets its intervals, and an unsubscribe removes it from all of them.- US-listed ETFs
- Use ETF symbols as
/etfs/symbolslists them (GLD); aUS:prefix is accepted and dropped, and frames carry the listed symbol. Asian ETFs answerUNSUPPORTED_SYMBOL. Symbols count toward your distinct-symbol cap like any channel.