Stock
Access stock price data including OHLCV (Open, High, Low, Close, Volume).
Required Scope: read:stock or read:all
Get Stock Prices
Get OHLCV stock price data for a symbol.
GET /api/public/v1/stock/prices/{symbol}Path Parameters
symbol
string
Stock symbol (e.g., "005930")
Query Parameters
interval
string
Time interval: "1day", "1week", "1month" (default: "1day")
limit
integer
Number of data points (1-500, default: 100)
Example Request
curl -X GET "https://api.alpha-lenz.com/api/public/v1/stock/prices/005930?interval=1day&limit=30" \
-H "X-API-Key: ak_your_key"Response
{
"symbol": "005930",
"company_name": "Samsung Electronics",
"interval": "1day",
"data": [
{
"datetime": "2024-01-15T00:00:00",
"open": 71500.0,
"high": 72000.0,
"low": 71000.0,
"close": 71800.0,
"volume": 15000000
},
{
"datetime": "2024-01-16T00:00:00",
"open": 71800.0,
"high": 72500.0,
"low": 71500.0,
"close": 72200.0,
"volume": 12500000
}
],
"count": 30
}Get Stock Price History
Get historical stock price data with date filtering and pagination.
Path Parameters
symbol
string
Stock symbol
Query Parameters
interval
string
Time interval: "1day", "1week", "1month"
start_date
string
Start date filter (YYYY-MM-DD)
end_date
string
End date filter (YYYY-MM-DD)
limit
integer
Results per page (1-1000, default: 100)
offset
integer
Pagination offset (default: 0)
Example Request
Response
OHLCV Fields
datetime
string
ISO 8601 datetime
open
float
Opening price
high
float
Highest price
low
float
Lowest price
close
float
Closing price
volume
integer
Trading volume
Pagination
Use offset and limit for pagination. Check has_more to see if there are more results:
Last updated