DocsETFs

ETFs

Indicative ETF reference instruments under /etfs: discovery, quotes, last trade, snapshots, and aggregates.

Open .md
Authx-api-key headerBase path/etfsWebSocketetfs.quotes · etfs.trades · etfs.aggSymbol formatProduct codes (e.g. US500ETF, US100ETF, USBOND)
/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).

GET/etfs/symbols
Open .md

Symbol list

Curated ETF-style symbols available on the REST API.

curl -sS "https://api.tickerlayer.com/etfs/symbols" \
  -H "x-api-key: <YOUR_API_KEY>"

Response 200 OK

JSON
{
  "symbols": [
    { "symbol": "US100ETF", "name": "US growth 100" },
    { "symbol": "US500ETF", "name": "US 500" }
  ]
}
GET/etfs/quote/:symbol
Open .md

Latest quote

Consolidated bid/ask and timestamp from the REST quote path.

symbolstringRequired
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.
spreadstring
full answers 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
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

JSON
{
  "symbol": "US500ETF",
  "bid": 718.65997,
  "ask": 718.65997,
  "bid_size": 90,
  "ask_size": 40,
  "timestamp": 1777555800000
}
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.
GET/etfs/trade/last/:symbol
Open .md

Last trade

Latest trade-style print for the ETF. size may be null.

symbolstringRequired
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.
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

JSON
{
  "symbol": "US500ETF",
  "price": 718.66,
  "size": 90,
  "timestamp": 1777555800000
}
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.
GET/etfs/snapshot/:symbol
Open .md

Snapshot

Combined bid/ask, last reference level, previous daily close, and change metrics.

symbolstringRequired
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.
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

JSON
{
  "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
}
change_percent is null when prev_close is zero or unavailable. Responses do not include last_size.
GET/etfs/agg/:symbol/prev
Open .md

Previous bar

Most recent fully completed daily OHLCV bar in UTC (previous session close).

symbolstringRequired
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.
intervalstring
Returns the most recently settled bar at that interval instead of the previous daily bar, and adds interval, bar_start, bar_end and as_of to the response. Leave it out for the daily bar.
Values1m5m15m1h4h1d
curl -sS "https://api.tickerlayer.com/etfs/agg/US500ETF/prev" \
  -H "x-api-key: <YOUR_API_KEY>"

Response 200 OK

JSON
{
  "symbol": "US500ETF",
  "result": {
    "o": 610.0,
    "h": 614.0,
    "l": 608.0,
    "c": 612.0,
    "v": 82000000,
    "t": 1732924800000
  }
}
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.
GET/etfs/agg/:symbol/:multiplier/:timespan/:from/:to
Open .md

Aggregate bars (OHLCV)

Historical bars between two UTC calendar dates.

symbolstringRequired
An enabled symbol of this asset class, for example BTCUSD or US:KO. Trimmed before lookup.
multipliernumberRequired
Bar size in units of timespan: 1, 5 or 15 with minute; 1 or 4 with hour; 1 with day. Other pairs return 400, and the message lists the valid ones.
timespanstringRequired
Case-insensitive. Other values return 400.
Valuesminutehourday
fromstringRequired
First UTC date, inclusive, as YYYY-MM-DD.
tostringRequired
Last UTC date, inclusive, as YYYY-MM-DD. Not before from.
limitnumber
Page size, up to 5000. results_count is the size of this page and total_count the bars in the whole range; follow next_offset until it is null.
Default500
offsetnumber
Zero-based row offset, applied after sorting.
Default0
sortstring
Order of bars by timestamp t, applied before pagination.
ValuesascdescDefaultdesc
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

JSON
{
  "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
}
  • v may 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 from and to as whole UTC days. A longer range returns 400 with the limit in the message.

WebSocket

Stream live quotes and trades for this asset class over the public WebSocket.

Connect
wss://stream.tickerlayer.com/?apiKey=<YOUR_API_KEY>

Available channels

Quotesetfs.quotesTradesetfs.tradesBarsetfs.agg

Subscribe example

After the connection is ready, send a JSON text frame:

Subscribe
{
  "action": "subscribe",
  "channels": [
    "etfs.quotes",
    "etfs.trades"
  ],
  "symbols": [
    "US500ETF",
    "US100ETF"
  ]
}

Example message

etfs.quotes
{
  "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.

ValueOutside 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.
Subscribe at full spread
{
  "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"]
}
agg frame
{
  "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.

IntervalArrivesGrid
1mRight after each traded minute; a minute without a trade has no bar.Every minute of the session.
5m 15mAs 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 4hAs each window closes; the last one closes with the session.Anchored at the open: 09:30, 10:30 … and 09:30, 13:30 ET.
1dAbout 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), tagged pre, regular or post; 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.trades if 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
interval takes 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/symbols lists them (GLD); a US: prefix is accepted and dropped, and frames carry the listed symbol. Asian ETFs answer UNSUPPORTED_SYMBOL. Symbols count toward your distinct-symbol cap like any channel.