Company historical klines
Historical klines (interval=1d required, last 3 months)
GET
/openapi/v1/crypto-stocks/{stock_ticker}/klinesRefresh: Real-time
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| stock_ticker | string | Required | Stock ticker |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| interval | string | Required | Time interval. Only 1d is supported |
| start_time | long | Optional | Start time, millisecond timestamp |
| end_time | long | Optional | End time, millisecond timestamp |
| limit | integer | Optional | Default 100, max 500 |
Request Example
curl "https://openapi.sosovalue.com/openapi/v1/crypto-stocks/MSTR/klines?interval=1d&limit=30" \ -H "x-soso-api-key: $SOSO_API_KEY"
Response Example
[
{
"timestamp": 1710000000000,
"open": 123,
"high": 130,
"low": 120,
"close": 125,
"volume": 140000
}
]Response Fields
| Field | Type | Description |
|---|---|---|
| timestamp | Long | Timestamp (milliseconds) |
| open | Number | Open price |
| high | Number | High price |
| low | Number | Low price |
| close | Number | Close price |
| volume | Number | Trading volume |
Notes
- Only daily (
1d) klines are available. - The query range is limited to the most recent 3 months.