crypto-holdings #267
- userId
-
Amari Koch @amari.koch
- cryptoId
- crypto/33
- quantity
- 37.17782582
- costBasis
- 22.85320352
- purchasedAt
Overview
crypto-holdings / #267
#267
#267
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/267" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/267" ); 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/267"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/267"
)
crypto_holding = res.json() Response
{
"id": 267,
"userId": 130,
"cryptoId": 33,
"quantity": 37.17782582,
"costBasis": 22.85320352,
"purchasedAt": "2026-04-21T02:48:47.356Z"
}