example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Page 19 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": 433,
      "userId": 218,
      "cryptoId": 40,
      "quantity": 93.76452748,
      "costBasis": 81.32653424,
      "purchasedAt": "2025-03-16T00:02:27.982Z"
    },
    {
      "id": 434,
      "userId": 218,
      "cryptoId": 35,
      "quantity": 88.65540151,
      "costBasis": 88.85329522,
      "purchasedAt": "2024-06-10T12:51:03.624Z"
    },
    {
      "id": 435,
      "userId": 220,
      "cryptoId": 33,
      "quantity": 12.83129372,
      "costBasis": 21.0597974,
      "purchasedAt": "2025-10-18T20:02:07.829Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 498,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=19&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=20&limit=24",
    "prev": "/api/v1/crypto-holdings?page=18&limit=24"
  }
}