example-data.com

crypto-holdings

crypto-holdings

Page 4 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": 73,
      "userId": 32,
      "cryptoId": 34,
      "quantity": 49.41556083,
      "costBasis": 75.79522831,
      "purchasedAt": "2026-02-14T00:07:49.879Z"
    },
    {
      "id": 74,
      "userId": 32,
      "cryptoId": 32,
      "quantity": 9.674383,
      "costBasis": 114.62567188,
      "purchasedAt": "2026-04-02T19:56:52.450Z"
    },
    {
      "id": 75,
      "userId": 32,
      "cryptoId": 3,
      "quantity": 83.3975343,
      "costBasis": 954.108792,
      "purchasedAt": "2024-12-07T03:14:39.517Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 498,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=4",
    "next": "/api/v1/crypto-holdings?page=5",
    "prev": "/api/v1/crypto-holdings?page=3"
  }
}
Draftbit