Get the previous completed OHLCV bar for one Stocks symbol.
x402.tickerlayer.com/v1/stocks/agg/:symbol/prev
Get the previous completed OHLCV bar for one Stocks symbol.
GET
https://x402.tickerlayer.com/v1/stocks/agg/:symbol/prevUptime0.0% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.tickerlayer.com/v1/stocks/agg/:symbol/prev?interval=1m");
console.log(await res.json());Example input
{
"interval": "1m"
}More from TickerLayerProvider status
- agents.tickerlayer.com/forex/agg/:symbol/:multiplier/:timespan/:from/:toReturns historical OHLCV bars for one currency pair between two UTC dates, inclusive, at 1, 5 or 15 minute, 1 or 4 hour, or daily size, paged with limit and offset. Priced by the page size requested, in three tiers: up to 100 bars, up to 500 (the default) and up to 1,000. 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 5,000 o0.05
- agents.tickerlayer.com/stocks/quote/:symbolReturns the best bid and ask with sizes and the observation timestamp for one stock. 404 when the symbol is unknown, 503 when no serviceable quote exists.0.01
- x402.tickerlayer.com/v1/bond/last/:symbolGet the latest validated government bond yield or rate for a requested bond symbol as pay-per-request JSON market data.0.01
- x402.tickerlayer.com/v1/commodities/agg/:symbol/:multiplier/:timespan/:from/:toGet validated historical Commodities OHLCV bars for one symbol and date range, with intervals from one minute to one day and up to 1,000 results.0.05
- x402.tickerlayer.com/v1/commodities/agg/:symbol/prevGet the previous completed OHLCV bar for one Commodities symbol.0.01
- x402.tickerlayer.com/v1/commodities/quote/:symbolGet the latest validated Commodities bid, ask, sizes, and observation timestamp for one symbol.0.01
- x402.tickerlayer.com/v1/commodities/snapshot/:symbolGet a compact Commodities market snapshot with quote, last trade, previous close, and change fields for one symbol.0.02
- x402.tickerlayer.com/v1/commodities/symbolsDiscover the current TickerLayer Commodities symbol catalog. Stock symbols are market-qualified in COUNTRY_OR_MARKET:SYMBOL form such as US:KO.0.02
- x402.tickerlayer.com/v1/commodities/trade/last/:symbolGet the latest validated Commodities trade price, size, and observation timestamp for one symbol.0.01
- x402.tickerlayer.com/v1/crypto/agg/:symbol/:multiplier/:timespan/:from/:toGet validated historical Crypto OHLCV bars for one symbol and date range, with intervals from one minute to one day and up to 1,000 results.0.05
- x402.tickerlayer.com/v1/crypto/agg/:symbol/prevGet the previous completed OHLCV bar for one Crypto symbol.0.01
- x402.tickerlayer.com/v1/crypto/quote/:symbolGet the latest validated Crypto bid, ask, sizes, and observation timestamp for one symbol.0.01
