example-data.com

crypto-holdings

crypto-holdings

Page 2 of 10.

curl -sS \
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings?limit=25"
);
const { data, meta } = await res.json();
import type { CryptoHolding, ListEnvelope } from "https://example-data.com/types/crypto-holdings.d.ts";

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

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings",
    params={"limit": 25},
)
data = res.json()
{
  "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",
    "next": "/api/v1/crypto-holdings?page=3",
    "prev": "/api/v1/crypto-holdings?page=1"
  }
}
Draftbit