crypto-holdings #298
- userId
-
Adan Weber @adan.weber61
- cryptoId
- crypto/36
- quantity
- 60.5946858
- costBasis
- 95.32265218
- purchasedAt
Overview
crypto-holdings / #298
#298
#298
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/298" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/298" ); 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/298"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/298"
)
crypto_holding = res.json() Response
{
"id": 298,
"userId": 155,
"cryptoId": 36,
"quantity": 60.5946858,
"costBasis": 95.32265218,
"purchasedAt": "2025-10-07T10:12:56.053Z"
}