crypto-holdings #378
- userId
-
Oliver Mitchell @oliver_mitchell50
- cryptoId
- crypto/10
- quantity
- 41.93457523
- costBasis
- 23.9395194
- purchasedAt
Overview
crypto-holdings / #378
#378
#378
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/378" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/378" ); 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/378"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/378"
)
crypto_holding = res.json() Response
{
"id": 378,
"userId": 194,
"cryptoId": 10,
"quantity": 41.93457523,
"costBasis": 23.9395194,
"purchasedAt": "2025-06-12T21:45:17.971Z"
}