crypto-holdings #400
- userId
-
Kennith Hahn @kennith.hahn
- cryptoId
- crypto/49
- quantity
- 54.77509547
- costBasis
- 18.82662078
- purchasedAt
Overview
crypto-holdings / #400
#400
#400
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/400" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/400" ); 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/400"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/400"
)
crypto_holding = res.json() Response
{
"id": 400,
"userId": 201,
"cryptoId": 49,
"quantity": 54.77509547,
"costBasis": 18.82662078,
"purchasedAt": "2025-11-07T07:30:15.609Z"
}