example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Page 2 of 21.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/crypto-holdings?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/crypto-holdings.d.ts https://example-data.com/types/crypto-holdings.d.ts
import type { CryptoHolding, ListEnvelope } from "./types/crypto-holdings";

const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<CryptoHolding>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 25,
      "userId": 11,
      "cryptoId": 2,
      "quantity": 11.01782561,
      "costBasis": 2784.5628,
      "purchasedAt": "2026-02-25T22:56:47.015Z"
    },
    {
      "id": 26,
      "userId": 11,
      "cryptoId": 19,
      "quantity": 34.07847749,
      "costBasis": 12.1858247,
      "purchasedAt": "2024-06-14T02:28:15.530Z"
    },
    {
      "id": 27,
      "userId": 12,
      "cryptoId": 2,
      "quantity": 15.64410496,
      "costBasis": 1092.1317,
      "purchasedAt": "2025-12-20T01:11:32.210Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 498,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=2&limit=24",
    "first": "/api/v1/crypto-holdings?page=1&limit=24",
    "last": "/api/v1/crypto-holdings?page=21&limit=24",
    "next": "/api/v1/crypto-holdings?page=3&limit=24",
    "prev": "/api/v1/crypto-holdings?page=1&limit=24"
  }
}