crypto-holdings #330
- userId
-
Ari Howe @ari.howe73
- cryptoId
- crypto/2
- quantity
- 8.27922172
- costBasis
- 5875.30125
- purchasedAt
Overview
crypto-holdings / #330
#330
#330
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/330" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/330" ); 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/330"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/330"
)
crypto_holding = res.json() Response
{
"id": 330,
"userId": 167,
"cryptoId": 2,
"quantity": 8.27922172,
"costBasis": 5875.30125,
"purchasedAt": "2026-01-06T13:05:45.775Z"
}