crypto-holdings #135
- userId
-
Merl Jenkins @merl.jenkins6
- cryptoId
- crypto/15
- quantity
- 52.21125511
- costBasis
- 0.16582502
- purchasedAt
Overview
crypto-holdings / #135
#135
#135
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/135" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/135" ); 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/135"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/135"
)
crypto_holding = res.json() Response
{
"id": 135,
"userId": 60,
"cryptoId": 15,
"quantity": 52.21125511,
"costBasis": 0.16582502,
"purchasedAt": "2025-12-11T11:52:53.177Z"
}