Previous trading day OHLC bar for stocks, crypto, forex and options — yesterday's open/hig
Previous trading day OHLC bar for stocks, crypto, forex and options — yesterday's open/high/low/close and volume by ticker.
15000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-15
updated
Provider
marketdata.use.x402atlas.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "15000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:137",
"payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
"asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
"amount": "15000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "eip155:42161",
"payTo": "0x9D667BC76F166322df087b3B3927D4d83D44A5d0",
"asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
"amount": "15000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "ASt6xvRyQ7ntERsmcYVMdLqZvz1GEN8Fzexzq62tXrNQ",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "15000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"category": "finance",
"info": {
"input": {
"method": "GET",
"queryParams": {
"adjusted": true,
"ticker": "AAPL"
},
"type": "http"
},
"output": {
"example": {
"adjusted": true,
"candle": {
"close": 211.8,
"high": 212.4,
"low": 209.5,
"open": 210.1,
"time": "2026-07-02T00:00:00Z",
"transactions": 480000,
"volume": 51000000,
"vwap": 211.2
},
"queried_at": "2026-07-06T12:00:00Z",
"ticker": "AAPL"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"adjusted": {
"default": true,
"description": "Adjust for splits",
"type": "boolean"
},
"ticker": {
"description": "Asset-prefixed ticker, e.g. AAPL, X:BTCUSD, C:EURUSD",
"type": "string"
}
},
"required": [
"ticker"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"adjusted": {
"description": "Whether the price is split-adjusted.",
"type": "boolean"
},
"candle": {
"description": "Previous trading day's OHLCV bar.",
"properties": {
"close": {
"type": "number"
},
"high": {
"type": "number"
},
"low": {
"type": "number"
},
"open": {
"type": "number"
},
"time": {
"description": "Bar start timestamp.",
"format": "date-time",
"type": "string"
},
"transactions": {
"description": "Number of upstream transactions in the bar.",
"type": "integer"
},
"volume": {
"type": "number"
},
"vwap": {
"description": "Volume-weighted average price.",
"type": "number"
}
},
"required": [
"time",
"open",
"high",
"low",
"close",
"volume",
"vwap",
"transactions"
],
"type": "object"
},
"queried_at": {
"description": "UTC timestamp when this bridge queried the upstream.",
"format": "date-time",
"type": "string"
},
"ticker": {
"description": "Echo of the requested ticker.",
"type": "string"
}
},
"required": [
"queried_at",
"ticker",
"adjusted",
"candle"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
},
"tags": [
"ohlc",
"previous-close",
"daily-bar",
"stocks",
"crypto",
"forex",
"market-data",
"marketdata"
]
}
}Use it
curl
curl "https://marketdata.use.x402atlas.com/prev-close" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://marketdata.use.x402atlas.com/prev-close");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://marketdata.use.x402atlas.com/prev-close")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/1541.json, and this resource appears in /discovery/resources and /discovery/search.