POST /v1/prices/history
Returns high-frequency OHLC (open, high, low, close) price history. It's cs2.sh's main history endpoint.
Available on Scale, at 10 requests per second. Each request takes up to 100 items.
Prices are in USD by default, or in any supported currency. Data updates continuously. History starts December 24, 2025. Intervals are 5m (up to 14 days per request), 30m (90 days), 1h (365 days), and 1d (unlimited). Doppler, Gamma Doppler, and Case Hardened variants are supported.
Its OHLC buckets are built from the same data as latest prices. For earlier prices, use POST /v1/archive/history.
Variant items include a variants object within the response.
Supported intervals
| Interval | Max range |
|---|---|
5m | 14 days |
30m | 90 days |
1h | 365 days |
1d | Unlimited |
Supported sources
| Source | Fields |
|---|---|
youpin | ask, bid, ask_volume, bid_volume |
buff | ask, bid, ask_volume, bid_volume |
csfloat | ask, bid, ask_volume |
steam | ask, bid, ask_volume, bid_volume |
skinport | ask, ask_volume |
c5game | ask, bid, ask_volume, bid_volume |
By default, all sources are returned.
bucket is the UTC interval boundary. open_time and close_time are the actual first and last observations inside the bucket; see Using the API.
Request
curl -X POST https://api.cs2.sh/v1/prices/history \
-H "Authorization: Bearer <<YOUR_API_KEY>>" \
-H "Accept-Encoding: gzip" --compressed \
-H "Content-Type: application/json" \
-d '{
"items": [
"USP-S | Printstream (Factory New)"
],
"start": "2026-11-26",
"end": "2026-11-29",
"sources": [
"buff",
"csfloat"
],
"interval": "1h",
"currency": "USD"
}'Parameters
| Field | Type | Required | Description |
|---|---|---|---|
items | string[] | Yes | List of market_hash_name values (max 100). |
start | string | No | Start date/time as YYYY-MM-DD or RFC3339, inclusive. Without it, the request covers the interval's maximum range back from end, or all history on 1d. |
end | string | No | End date/time as YYYY-MM-DD or RFC3339, exclusive. Defaults to now. |
sources | string[] | No | Filter to specific sources. Defaults to all sources. |
interval | string | No | Default: 5m. Allowed: 5m, 30m, 1h, 1d. Bucket interval. 5m is limited to 14 days, 30m to 90 days, 1h to 365 days; 1d is unlimited. |
currency | string | No | Default: USD. Allowed: AUD, CAD, CHF, CNY, EUR, GBP, JPY, NZD, SGD, USD. Currency for every price in the response. |
Response
{
"response_time": "2026-11-30T05:56:14.28425111Z",
"currency": "USD",
"start": "2026-11-26T00:00:00Z",
"end": "2026-11-29T00:00:00Z",
"interval": "1h",
"items": {
"USP-S | Printstream (Factory New)": {
"market_hash_name": "USP-S | Printstream (Factory New)",
"count": 72,
"data": [
{
"bucket": "2026-11-26T00:00:00Z",
"buff": {
"open_ask": 72.57,
"high_ask": 72.58,
"low_ask": 72.57,
"close_ask": 72.57,
"ask_volume": 382,
"open_bid": 65.69,
"high_bid": 65.99,
"low_bid": 65.69,
"close_bid": 65.99,
"bid_volume": 46,
"sample_count": 75,
"open_time": "2026-11-26T00:00:57Z",
"close_time": "2026-11-26T00:58:52Z"
},
"youpin": {
"open_ask": 68.68,
"high_ask": 68.68,
"low_ask": 68.6,
"close_ask": 68.6,
"ask_volume": 470,
"open_bid": 66.73,
"high_bid": 66.73,
"low_bid": 66.73,
"close_bid": 66.73,
"bid_volume": 50,
"sample_count": 8,
"open_time": "2026-11-26T00:07:27.26Z",
"close_time": "2026-11-26T00:52:26.359Z"
},
"csfloat": {
"open_ask": 73.28,
"high_ask": 73.28,
"low_ask": 73,
"close_ask": 73,
"ask_volume": 244,
"open_bid": 62.2,
"high_bid": 62.2,
"low_bid": 62.2,
"close_bid": 62.2,
"sample_count": 60,
"open_time": "2026-11-26T00:00:09.238Z",
"close_time": "2026-11-26T00:53:07.101Z"
},
"skinport": {
"open_ask": 70.58,
"high_ask": 70.58,
"low_ask": 70.58,
"close_ask": 70.58,
"ask_volume": 42,
"sample_count": 60,
"open_time": "2026-11-26T00:00:12.658Z",
"close_time": "2026-11-26T00:59:12.649Z"
},
"steam": {
"open_ask": 87.13,
"high_ask": 87.13,
"low_ask": 87.13,
"close_ask": 87.13,
"ask_volume": 70,
"open_bid": 79.67,
"high_bid": 79.67,
"low_bid": 79.67,
"close_bid": 79.67,
"bid_volume": 2200,
"sample_count": 20,
"open_time": "2026-11-26T00:02:19.833Z",
"close_time": "2026-11-26T00:57:54.187Z"
},
"c5game": {
"open_ask": 73.17,
"high_ask": 73.17,
"low_ask": 73.17,
"close_ask": 73.17,
"ask_volume": 172,
"open_bid": 66.73,
"high_bid": 66.73,
"low_bid": 66.73,
"close_bid": 66.73,
"bid_volume": 15,
"sample_count": 12,
"open_time": "2026-11-26T00:00:06.381Z",
"close_time": "2026-11-26T00:16:12.213Z"
}
}
]
}
}
}Response fields
HistoryResponse fields:
| Field | Type | Required | Description |
|---|---|---|---|
response_time | string (date-time) | Yes | When the response was generated. |
currency | string | Yes | Currency code for every price in the response. Matches the requested currency; defaults to USD. |
start | string (date-time) | Yes | Effective start of the queried range, floored to the interval boundary. Inclusive. |
end | string (date-time) | Yes | Effective end of the queried range, ceiled to the interval boundary. Exclusive. |
interval | string | Yes | Allowed: 5m, 30m, 1h, 1d. Requested bucket interval. |
items | Record<string, HistoryItem> | Yes | Map of market_hash_name to OHLC time-series. |
errors | ItemError[] | No | Per-item failures alongside successful results (partial success). |
Buckets
| Field | Description |
|---|---|
items.<name>.count | Number of buckets with data. |
items.<name>.data[] | OHLC buckets. |
data[].bucket | UTC-aligned interval boundary. |
data[].<source> | OHLC values, plus the real observation window (open_time/close_time) and sample_count. |
items.<name>.variants | The same bucketed shape per variant. |
bucketis present on every history bucket.- A base item's buckets have an object for all six sources. A source with no data in the bucket has
nullvalues and asample_countof0. - In variant buckets, and when
sourcesleaves out any source, a bucket includes only the sources with data in it. csfloatcarries ask and bid OHLC withoutbid_volume;skinportis ask-only.- Valid requested items with no buckets in the requested range are omitted from
items.
Full schemas: HistoryItem, HistoryBucket, and the per-source types under OHLC Source Data.
Errors
When only some item names fail, the endpoint returns 200 with the successful series and errors[]. Valid items with no buckets in the requested range are omitted without an item error. See Partial success and Request errors.