crypto-holdings #212
- userId
-
Tabitha McKenzie @tabitha_mckenzie
- cryptoId
- crypto/39
- quantity
- 90.55481793
- costBasis
- 11.3334965
- purchasedAt
Overview
crypto-holdings / #212
#212
#212
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/212" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/212" ); 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/212"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/212"
)
crypto_holding = res.json() Response
{
"id": 212,
"userId": 98,
"cryptoId": 39,
"quantity": 90.55481793,
"costBasis": 11.3334965,
"purchasedAt": "2025-07-29T23:14:47.380Z"
}