crypto-holdings #432
- userId
-
Kevon Dickinson @kevon.dickinson
- cryptoId
- crypto/32
- quantity
- 24.78320849
- costBasis
- 98.5156804
- purchasedAt
Overview
crypto-holdings / #432
#432
#432
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/432" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/432" ); const cryptoHolding = 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 } from "./types/crypto-holdings";
const res = await fetch(
"https://example-data.com/api/v1/crypto-holdings/432"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/432"
)
crypto_holding = res.json() Response
{
"id": 432,
"userId": 218,
"cryptoId": 32,
"quantity": 24.78320849,
"costBasis": 98.5156804,
"purchasedAt": "2026-02-27T14:12:23.567Z"
}