example-data.com
Menu
Browse docs and collections

crypto-holdings

crypto-holdings

Page 4 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": 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&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=5&limit=24",
    "prev": "/api/v1/crypto-holdings?page=3&limit=24"
  }
}