example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Page 9 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": 193,
      "userId": 88,
      "cryptoId": 2,
      "quantity": 86.75495495,
      "costBasis": 2511.67335,
      "purchasedAt": "2024-08-11T21:04:28.732Z"
    },
    {
      "id": 194,
      "userId": 90,
      "cryptoId": 44,
      "quantity": 96.18815588,
      "costBasis": 112.91446446,
      "purchasedAt": "2025-05-01T13:27:25.774Z"
    },
    {
      "id": 195,
      "userId": 90,
      "cryptoId": 34,
      "quantity": 89.3006588,
      "costBasis": 42.39996413,
      "purchasedAt": "2026-04-14T06:06:32.064Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 498,
    "totalPages": 21
  },
  "links": {
    "self": "/api/v1/crypto-holdings?page=9&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=10&limit=24",
    "prev": "/api/v1/crypto-holdings?page=8&limit=24"
  }
}