crypto-holdings #139
- userId
-
Theresia Collins @theresia_collins86
- cryptoId
- crypto/46
- quantity
- 18.61516212
- costBasis
- 85.44553881
- purchasedAt
Overview
crypto-holdings / #139
#139
#139
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/139" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/139" ); 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/139"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/139"
)
crypto_holding = res.json() Response
{
"id": 139,
"userId": 63,
"cryptoId": 46,
"quantity": 18.61516212,
"costBasis": 85.44553881,
"purchasedAt": "2026-02-17T14:24:49.006Z"
}