example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Page 3 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": 49,
      "userId": 21,
      "cryptoId": 16,
      "quantity": 12.03715299,
      "costBasis": 4.0242744,
      "purchasedAt": "2025-08-09T22:44:46.164Z"
    },
    {
      "id": 50,
      "userId": 21,
      "cryptoId": 12,
      "quantity": 7.27875893,
      "costBasis": 4.236876,
      "purchasedAt": "2024-05-27T22:57:26.990Z"
    },
    {
      "id": 51,
      "userId": 22,
      "cryptoId": 49,
      "quantity": 66.98935327,
      "costBasis": 17.0062985,
      "purchasedAt": "2025-09-10T00:00:09.541Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 498,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=3&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=4&limit=24",
    "prev": "/api/v1/crypto-holdings?page=2&limit=24"
  }
}