> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.immix.xyz/api-reference/rest-api/assets/list/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.immix.xyz/_mcp/server. # List assets GET /assets The assets this environment's instruments are quoted in, settle in and are written on, sorted by symbol unless `sort` says otherwise. `search` matches a substring of the symbol. Page with `limit` and `cursor`. Reference: https://docs.immix.xyz/api-reference/rest-api/assets/list ## Authentication - `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer `, where token is your auth token. ## Request ### Query parameters - `search` (string, optional) — Case-insensitive substring of the symbol. - `symbol` (string, optional) — Only these symbols, case-insensitive; repeat the parameter or comma-separate. - `type` (string, optional) — Only these types: `COIN`, `TOKEN`, `FIAT`, `STABLE_COIN`, `INDEX`, `COMMODITY`, `STOCK`, `OTHER`. - `sort` (string, optional) — Comma-separated `symbol`, `assetId` or `type`; prefix `-` for descending. Default `symbol`. - `limit` (integer, optional) — Page size, 1-100; larger values are clamped. Default 50. - `cursor` (string, optional) — `nextCursor` or `prevCursor` from a previous page, sent with the same filters and sort. - `include` (string, optional) — `total` adds the exact number of matching assets. ## Response ### 200 A page of assets. - `asOfSeqTsNs` (string, required, nullable) — The sequencer timestamp (epoch-ns) the data is complete through; also sent as X-Immix-As-Of-Seq-Ts. Null when unknown. - `items` (list of Asset, required) - `nextCursor` (string, required, nullable) — Pass as `cursor` for the next page. Null on the last page. - `prevCursor` (string, required, nullable) — Pass as `cursor` for the previous page. Null on the first page. - `total` (integer, required, nullable) — Exact count matching the filter. Null unless `include=total`. ## Errors ### 400 List Assets Request Bad Request Error The request is malformed, or its cursor is not valid for it. - `error` (ErrorBody, required) ### 401 List Assets Request Unauthorized Error The bearer token is missing or not valid. - `error` (ErrorBody, required) ### 503 List Assets Request Service Unavailable Error A store is temporarily unavailable; retry. - `error` (ErrorBody, required) ## Types ### Asset A coin, token, fiat currency or index that instruments are quoted in, settle in or are written on. - `assetId` (string, required) — The asset's id. Ids are opaque strings. - `symbol` (string, required) — The asset's symbol, as instrument symbols spell it: the `BTC` in `OKX@BTC/USDT`. - `type` (string, required) — The asset class: `COIN`, `TOKEN`, `FIAT`, `STABLE_COIN`, `INDEX`, `COMMODITY`, `STOCK` or `OTHER`. Append-only: tolerate values you don't know. - `updatedAtNs` (string, required, nullable) — When the asset record last changed, as a sequencer timestamp in epoch nanoseconds. Null when unknown. ### 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. - `requestId` (string, required) — The request's id, also sent as X-Request-Id; quote it to support. - `retryable` (boolean, required) — Whether the same request may succeed if retried later. ## Examples **Response** ```json { "asOfSeqTsNs": "asOfSeqTsNs", "items": [ { "assetId": "1", "symbol": "BTC", "type": "COIN", "updatedAtNs": "1758640000000000000" } ], "nextCursor": "nextCursor", "prevCursor": "prevCursor", "total": 1 } ``` **SDK Code** ```python import requests url = "https://api.example.com/assets" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.example.com/assets'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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://api.example.com/assets" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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://api.example.com/assets") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.example.com/assets") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.example.com/assets', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.example.com/assets"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/assets")! 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() ```