> This page is for Datasets.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.immix.xyz/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server.

# Get a day's manifest

GET https://datasets.immix.xyz/v1/manifests/{exchange}/{day}

One exchange's closed day: its files, its instruments file, its gaps and failed hours. Read it before you download: it says which files exist, and each file's SHA-256 is what you verify a download against. A day that was repaired has a new manifest and new files; the service serves the latest to within 60 seconds. While a day is being repaired the answer is 503 `DAY_UNDER_REPAIR`.

Reference: https://docs.immix.xyz/datasets/reference/http-api/manifests/get-day

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `exchange` (string, required) — The exchange code.
- `day` (string, required) — The UTC day, `yyyy-MM-dd`.

### Headers

- `X-Request-Id` (string, optional) — Your own id for the request: 8 to 128 of `[A-Za-z0-9._-]`. It becomes the request's id and is echoed on the response. A value off that grammar is replaced with a fresh id, never refused.

## Response

### 200

The day's manifest.

- `exchange` (string, required) — The exchange code.
- `day` (string, required) — The UTC day, `yyyy-MM-dd`.
- `status` (string, required) — `ok`, or `partial` when one or more hours of the day failed (`failed_hours` lists them). Tolerate values you don't know.
- `contract_version` (string, required) — The file contract version the day was written at. It says which families and columns the day's files can carry.
- `files` (list of DayFile, required) — The day's data files, in key order.
- `instruments` (InstrumentsFile, required) — The day's instruments file: the names and display scales in force that day, one row per name version. Fetch it at `/files/instruments/{exchange}/{day}.csv`; it is not counted against your plan.
- `gaps` (list of Gap, required) — The time ranges the day does not cover. A symbol with no file and no gap had no rows that day.
- `failed_hours` (list of FailedHour, required) — The hours of the day that failed. Empty on an `ok` day.

## Errors

### 400 Get Day Manifests Request Bad Request Error

`MALFORMED_REQUEST`: the day is not a `yyyy-MM-dd` date.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

### 401 Get Day Manifests Request Unauthorized Error

`UNAUTHENTICATED`: no key was sent, or the key does not exist, was deleted or carries the wrong secret.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

### 403 Get Day Manifests Request Forbidden Error

`FORBIDDEN_PRINCIPAL`: the key is disabled. `CUSTOMER_NOT_ACTIVE`: your customer account is disabled.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

### 404 Get Day Manifests Request Not Found Error

`DAY_NOT_PUBLISHED`: nothing is published for the exchange on that day. `NOT_FOUND`: the dataset holds no such exchange.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

### 429 Get Day Manifests Request Too Many Requests Error

`RATE_LIMITED`: too many requests from this key; wait `Retry-After` seconds.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

### 503 Get Day Manifests Request Service Unavailable Error

`DAY_UNDER_REPAIR`: the day is being repaired and is served again once it is closed; wait `Retry-After` seconds and ask again. `SERVICE_UNAVAILABLE`: the service cannot reach its store or the dataset right now; retry after a short pause. Neither counts anything.

- `error` (ErrorBody, required)
- `currentVersion` (string, optional) — On a 412 `VERSION_CONFLICT` from a conditional write that met a row: the row's current version (the `ETag` carries the same token); re-read, reapply, retry. Absent from every other response, a 412 for a row that no longer exists included.

## Types

### DayFile

One data file: a family's rows for one symbol.

- `key` (string, required) — The file's key in the dataset. Its path under `/files/` is this key without the 12 hex digits before the extension.
- `family` (string, required) — The family.
- `symbol` (string, required) — The canonical symbol, as the file's rows carry it.
- `rows` (long, required) — The file's data rows.
- `bytes` (long, required) — The file's size in bytes, as stored (gzip): what a download transfers and what it counts against your plan.
- `sha256` (string, required) — SHA-256 of the stored bytes, lowercase hex. Verify what you downloaded against it.

### InstrumentsFile

The day's instruments file: the names and display scales in force that day, one row per name version. Fetch it at `/files/instruments/{exchange}/{day}.csv`; it is not counted against your plan.

- `key` (string, required) — The file's key in the dataset.
- `bytes` (long, required) — The file's size in bytes.
- `sha256` (string, required) — SHA-256 of the file's bytes, lowercase hex.

### Gap

A time range the day does not cover, and why: the dataset was not watching, which is not the same as nothing having happened.

- `family` (string, required) — The family the gap is in, or `*` for every family.
- `symbol` (string, required) — The canonical symbol the gap is in, or `*` for every symbol of the exchange.
- `from` (long, required) — The gap's first instant, in epoch nanoseconds: a 64-bit integer, which a JavaScript number cannot hold exactly.
- `to` (long, required) — The instant after the gap's last, in epoch nanoseconds.
- `reason` (string, required) — Why: `connector_disconnected`, `book_unsynced`, `decode_error` and the other reasons the file contract lists. Tolerate reasons you don't know.

### FailedHour

An hour of the day with no data at all: the whole hour is a gap.

- `from` (long, required) — The hour's first instant, in epoch nanoseconds.
- `to` (long, required) — The instant after the hour's last, in epoch nanoseconds.
- `reason` (string, required) — Why the hour failed.

### ErrorBody

- `code` (string, required) — Machine-readable, UPPER_SNAKE and append-only; tolerate codes you don't know. Branch on this, never on the message.
- `message` (string, required) — For display only; its wording may change at any time.
- `retryable` (boolean, required) — Whether sending the identical request again, after `Retry-After` or a short pause, can succeed with nothing else changed. `false` where something must change first: the request, the caller's standing, or the platform's own records or deployment.
- `requestId` (string, required) — The request's id, also sent as X-Request-Id; quote it to support.

## Examples

**Response**

```json
{
  "exchange": "OKX",
  "day": "2026-11-11",
  "status": "ok",
  "contract_version": "2.4.0",
  "files": [
    {
      "key": "trades/OKX/2026-11-11/BTC-USDT.e88dc5948aa3.csv.gz",
      "family": "trades",
      "symbol": "BTC/USDT",
      "rows": 1843201,
      "bytes": 48211507,
      "sha256": "e88dc5948aa3f0c1d2b7a6e5f4c3b2a190817263544536271809f0e1d2c3b4a5"
    }
  ],
  "instruments": {
    "key": "instruments/OKX/2026-11-11.4c1f0a9b7d2e.csv",
    "bytes": 4012877,
    "sha256": "4c1f0a9b7d2e5a6b7c8d9e0f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d"
  },
  "gaps": [
    {
      "family": "trades",
      "symbol": "*",
      "from": 1762855200000000000,
      "to": 1762855260000000000,
      "reason": "connector_disconnected"
    }
  ],
  "failed_hours": [
    {
      "from": 1762862400000000000,
      "to": 1762866000000000000,
      "reason": "reason"
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://datasets.immix.xyz/v1/manifests/OKX/2026-11-11")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```