crypto-holdings #455
- userId
-
Adelia Roberts @adelia_roberts0
- cryptoId
- crypto/47
- quantity
- 37.37150429
- costBasis
- 8.21344828
- purchasedAt
Overview
crypto-holdings / #455
#455
#455
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/455" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/455" ); 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/455"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/455"
)
crypto_holding = res.json() Response
{
"id": 455,
"userId": 231,
"cryptoId": 47,
"quantity": 37.37150429,
"costBasis": 8.21344828,
"purchasedAt": "2026-02-19T03:49:59.426Z"
}