Price History
GET
/v1/price-history/{symbol}
Get historical price data for a company over a specified period.
Path Params
symbolstringrequired
Ticker symbols, comma separated
Query Params
periodnumberrequired
The period for the data. d1 = daily, w1 = weekly, mo1 = monthly
startTimenumberrequired
The fiscal year for the data
endTimenumber
The fiscal year for the data
Headers
X-Api-Keystringrequired
API key for authentication
Responses
{ "symbol": "AAPL", "period": "d1", "candles": { "open": [200.71, 193.67, 198.3], "high": [202.75, 197.7, 200.74], "low": [199.7, 193.46, 197.43], "close": [201.36, 195.27, 200.21], "volume": [46742400, 78432900, 56288500], "timestamp": [1747920600, 1748007000, 1748352600] } }
LANGUAGE
CURL REQUEST
1 curl --request GET \ 2 --url "https://api.marketrepo.com/v1/price-history/AAPL?period=d1&startTime=1750982400" \ 3 --header 'X-Api-Key: YOUR_API_KEY'
RESPONSE
Click Try It! to start a request and see the response here!
application/json
200