{"openapi":"3.1.0","info":{"title":"Stock Price History (OHLC) API","version":"1.0.0","description":"Live historical daily prices (OHLC) for US stocks from Nasdaq — no key, nothing stored. The price-history-and-charting view of a stock: the daily open, high, low, close and volume going back months or years, distinct from the live-quote, movers, earnings and analyst APIs in the catalogue. The history endpoint returns the daily OHLC time series over a chosen range — 1 month to 5 years, or explicit from/to dates — ready to plot or backtest. The stats endpoint computes the period statistics from that series: the period high and low, the latest close, the total return over the period, the average daily volume and the annualised volatility (from daily log returns). Build charting widgets, backtesting tools, technical-analysis pipelines, performance trackers and risk models on top of real Nasdaq price history. Look up any US stock by its ticker (symbol=AAPL) and a range (1m, 3m, 6m, 1y, 2y, 5y) or explicit from=YYYY-MM-DD and to=YYYY-MM-DD; prices and volumes are returned as clean numbers.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/stockhistory-api","description":"oanor gateway"}],"tags":[{"name":"History"},{"name":"Stats"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/history":{"get":{"operationId":"get_v1_history","tags":["History"],"summary":"Daily OHLC time series","description":"","parameters":[{"name":"symbol","in":"query","required":true,"description":"Stock ticker","schema":{"type":"string"},"example":"AAPL"},{"name":"range","in":"query","required":false,"description":"1m, 3m, 6m, 1y, 2y, 5y (default 1y)","schema":{"type":"string"},"example":"1y"},{"name":"from","in":"query","required":false,"description":"Start date YYYY-MM-DD (with to)","schema":{"type":"string"},"example":"2026-01-01"},{"name":"to","in":"query","required":false,"description":"End date YYYY-MM-DD","schema":{"type":"string"},"example":"2026-03-01"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"to":"2026-03-01","from":"2026-01-01","count":39,"range":"custom","source":"Nasdaq","symbol":"AAPL","company":"Apple Inc. Common Stock","history":[{"low":269,"date":"2026-01-02","high":277.84,"open":272.255,"close":271.01,"volume":37838050},{"low":266.14,"date":"2026-01-05","high":271.51,"open":270.64,"close":267.26,"volume":45647190},{"low":262.12,"date":"2026-01-06","high":267.55,"open":267,"close":262.36,"volume":52352090},{"low":259.81,"date":"2026-01-07","high":263.68,"open":263.2,"close":260.33,"volume":48309800},{"low":255.7,"date":"2026-01-08","high":259.29,"open":257.02,"close":259.04,"volume":50419340},{"low":256.22,"date":"2026-01-09","high":260.21,"open":259.075,"close":259.37,"volume":39996970},{"low":256.8,"date":"2026-01-12","high":261.3,"open":259.16,"close":260.25,"volume":45263770},{"low":258.39,"date":"2026-01-13","high":261.81,"open":258.72,"close":261.05,"volume":45730850},{"low":256.71,"date":"2026-01-14","high":261.82,"open":259.49,"close":259.96,"volume":40019420},{"low":257.05,"date":"2026-01-15","high":261.04,"open":260.65,"close":258.21,"volume":39388560},{"low":254.93,"date":"2026-01-16","high":258.9,"open":257.9,"close":255.53,"volume":72142770},{"low":243.42,"date":"2026-01-20","high":254.79,"open":252.73,"close":246.7,"volume":80267520},{"low":245.18,"date":"2026-01-21","high":251.56,"open":248.7,"close":247.65,"volume":54641730},{"low":248.15,"date":"2026-01-22","high":251,"open":249.2,"close":248.35,"volume":39708340},{"low":244.68,"date":"2026-01-23","high":249.41,"open":247.32,"close":248.04,"volume":41688980},{"low":249.8,"date":"2026-01-26","high":256.56,"open":251.48,"close":255.41,"volume":55969230},{"low":258.21,"date":"2026-01-27","high":261.95,"open":259.17,"close":258.27,"volume":49648270},{"low":254.51,"date":"2026-01-28","high":258.855,"open":257.65,"close":256.44,"volume":41287970},{"low":254.41,"date":"2026-01-29","high":259.65,"open":258,"close":258.28,"volume":67253010},{"low":252.18,"date":"2026-01-30","high":261.8999,"open":255.165,"close":259.48,"volume":92443410},{"low":259.205,"date":"2026-02-02","high":270.49,"open":260.03,"close":270.01,"volume":73913430},{"low":267.61,"date":"2026-02-03","high":271.875,"open":269.2,"close":269.48,"volume":64394660},{"low":272.285,"date":"2026-02-04","high":278.95,"open":272.285,"close":276.49,"volume":90545710},{"low":273.23,"date":"2026-02-05","high":279.5,"open":278.13,"close":275.91,"volume":52977440},{"low":276.925,"date":"2026-02-06","high":280.905,"open":277.12,"close":278.12,"volume":50453410},{"low":271.7,"date":"2026-02-09","high":278.2,"open":277.905,"close":274.62,"volume":44623400},{"low":272.94,"date":"2026-02-10","high":275.37,"open":274.885,"close":273.68,"volume":34376900},{"low":274.45,"date":"2026-02-11","high":280.18,"open":274.695,"close":275.5,"volume":51931280},{"low":260.18,"date":"2026-02-12","high":275.72,"open":275.59,"close":261.73,"volume":81077230},{"low":255.45,"date":"2026-02-13","high":262.23,"open":262.01,"close":255.78,"volume":56290670},{"low":255.54,"date":"2026-02-17","high":266.29,"open":258.05,"close":263.88,"volume":58469090},{"low":262.45,"date":"2026-02-18","high":266.82,"open":263.6,"close":264.35,"volume":34203340},{"low":260.05,"date":"2026-02-19","high":264.48,"open":262.6,"close":260.58,"volume":30845290},{"low":258.16,"date":"2026-02-20","high":264.75,"open":258.97,"close":264.58,"volume":42070500},{"low":263.381,"date":"2026-02-23","high":269.43,"open":263.49,"close":266.18,"volume":37308160},{"low":267.71,"date":"2026-02-24","high":274.89,"open":267.86,"close":272.14,"volume":47014620},{"low":271.05,"date":"2026-02-25","high":274.94,"open":271.78,"close":274.23,"volume":33714340},{"low":270.795,"date":"2026-02-26","high":276.11,"open":274.945,"close":272.95,"volume":32345110},{"low":262.89,"date":"2026-02-27","high":272.81,"open":272.81,"close":264.18,"volume":72366510}]},"meta":{"timestamp":"2026-06-12T01:42:16.112Z","request_id":"9d7a2d45-be20-4f34-acfe-6e34526c349e"},"status":"ok","message":"History retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/stats":{"get":{"operationId":"get_v1_stats","tags":["Stats"],"summary":"Period statistics from the history","description":"","parameters":[{"name":"symbol","in":"query","required":true,"description":"Stock ticker","schema":{"type":"string"},"example":"AAPL"},{"name":"range","in":"query","required":false,"description":"Range (default 1y)","schema":{"type":"string"},"example":"1y"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"to":"2026-06-13","from":"2025-06-11","range":"1y","source":"Nasdaq","symbol":"AAPL","company":"Apple Inc. Common Stock","period_low":195.07,"first_close":198.78,"period_high":317.4,"latest_close":295.63,"trading_days":252,"avg_daily_volume":49699215,"period_return_pct":48.72,"annualized_volatility_pct":22.52},"meta":{"timestamp":"2026-06-12T01:42:16.400Z","request_id":"27e63fff-15ea-4277-a4ab-ad9c9a451c60"},"status":"ok","message":"Stats retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Look up a stock by its ticker (symbol=AAPL) and a range=1m|3m|6m|1y|2y|5y (default 1y), or pass explicit from=YYYY-MM-DD & to=YYYY-MM-DD. Annualised volatility uses daily log returns and a 252-day year.","source":"Nasdaq public chart feed (api.nasdaq.com/api/quote/{symbol}/chart, live)","service":"stockhistory-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/stats":"Period statistics — high/low, return, avg volume, volatility (symbol=AAPL, range=1y).","GET /v1/history":"Daily OHLC time series (symbol=AAPL, range=1y, or from/to)."},"description":"Live historical daily prices (OHLC) for US stocks from Nasdaq — the price-history-and-charting view. history = the daily open/high/low/close/volume time series over a chosen range; stats = the period statistics computed from that series (period high and low, latest close, total return, average daily volume and annualised volatility). Live, no key, nothing stored. Distinct from the live-quote, movers, earnings and analyst APIs.","upstream_status":"ok"},"meta":{"timestamp":"2026-06-12T01:42:16.632Z","request_id":"8474abaf-10cb-443b-a6c6-d652e71797cb"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":12200,"rps_limit":3,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":825,"monthly_call_quota":188000,"rps_limit":10,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2490,"monthly_call_quota":795000,"rps_limit":28,"hard_limit":true},{"slug":"scale","name":"Scale","price_cents_month":5630,"monthly_call_quota":2840000,"rps_limit":60,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/stockhistory-api"}