crypto-holdings
crypto-holdings
Page 21 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": 481,
"userId": 245,
"cryptoId": 10,
"quantity": 41.22537597,
"costBasis": 13.3180524,
"purchasedAt": "2026-01-04T13:35:06.556Z"
},
{
"id": 482,
"userId": 245,
"cryptoId": 37,
"quantity": 87.79751905,
"costBasis": 87.46151624,
"purchasedAt": "2025-04-15T17:09:18.166Z"
},
{
"id": 483,
"userId": 245,
"cryptoId": 6,
"quantity": 70.48068709,
"costBasis": 0.69752642,
"purchasedAt": "2025-04-04T07:52:46.777Z"
}
],
"meta": {
"page": 21,
"limit": 24,
"total": 498,
"totalPages": 21
},
"links": {
"self": "/api/v1/crypto-holdings?page=21&limit=24",
"first": "/api/v1/crypto-holdings?page=1&limit=24",
"last": "/api/v1/crypto-holdings?page=21&limit=24",
"next": null,
"prev": "/api/v1/crypto-holdings?page=20&limit=24"
}
}