> 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.

# Download a day's instruments file

GET https://datasets.immix.xyz/v1/files/instruments/{exchange}/{day}.csv

Answers 302 to a signed link to the day's instruments file: the names and display scales in force that day, one row per name version, so a rename or a delisting inside the day is visible. Every data file's `instrument_id` is the same identifier. The newest closed day's file is the current view. It is reference data and is never counted against your plan.

**Answers `302`.** The file's signed link. Not counted.

| Response header | Description |
| --- | --- |
| `Location` | A signed link to the file on `storage.googleapis.com`, valid for at least 10 minutes and at most 15. `GET` it without your `Authorization` header; `Range` requests work. Anyone holding the link can use it until it expires: do not log or share it. |
| `X-Request-Id` | The request's id: your `X-Request-Id` where you sent a usable one, a fresh id otherwise. An error restates it as `error.requestId`; quote it when you ask about a request. |

Reference: https://docs.immix.xyz/datasets/reference/http-api/files/get-instruments

## 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.

## Errors

### 400 Get Instruments Files 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 Instruments Files 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 Instruments Files 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 Instruments Files 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 Instruments Files 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 Instruments Files 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

### 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

**SDK Code**

```python
import requests

url = "https://datasets.immix.xyz/v1/files/instruments/OKX/2026-11-11.csv"

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

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

print(response.json())
```

```javascript
const url = 'https://datasets.immix.xyz/v1/files/instruments/OKX/2026-11-11.csv';
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/files/instruments/OKX/2026-11-11.csv"

	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/files/instruments/OKX/2026-11-11.csv")

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/files/instruments/OKX/2026-11-11.csv")
  .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/files/instruments/OKX/2026-11-11.csv', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

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

```csharp
using RestSharp;

var client = new RestClient("https://datasets.immix.xyz/v1/files/instruments/OKX/2026-11-11.csv");
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/files/instruments/OKX/2026-11-11.csv")! 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()
```