crypto-holdings #481
- userId
-
Lawrence Rogahn @lawrence_rogahn33
- cryptoId
- crypto/10
- quantity
- 41.22537597
- costBasis
- 13.3180524
- purchasedAt
Overview
crypto-holdings / #481
#481
#481
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/481" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/481" ); 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/481"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/481"
)
crypto_holding = res.json() Response
{
"id": 481,
"userId": 245,
"cryptoId": 10,
"quantity": 41.22537597,
"costBasis": 13.3180524,
"purchasedAt": "2026-01-04T13:35:06.556Z"
}