Index historical klines
Index klines (interval=1d required, last 3 months)
GET
/openapi/v1/indices/{index_ticker}/klinesRefresh: 1 min
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| index_ticker | string | Required | Index ticker, e.g. ssimag7 |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| interval | string | Required | Time interval. Only 1d is supported |
| start_time | timestamp | Optional | Start time |
| end_time | timestamp | Optional | End time |
| limit | integer | Optional | Default 100, max 500 |
Request Example
curl "https://openapi.sosovalue.com/openapi/v1/indices/ssimag7/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
}
]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 |
Notes
- Only daily (
1d) klines are available. - The query range is limited to the most recent 3 months.