crypto-holdings #58
- userId
-
Jennifer Stoltenberg @jennifer_stoltenberg
- cryptoId
- crypto/8
- quantity
- 33.09051489
- costBasis
- 58.0075748
- purchasedAt
Overview
crypto-holdings / #58
#58
#58
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/58" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/58" ); 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/58"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/58"
)
crypto_holding = res.json() Response
{
"id": 58,
"userId": 25,
"cryptoId": 8,
"quantity": 33.09051489,
"costBasis": 58.0075748,
"purchasedAt": "2025-08-19T03:17:57.997Z"
}