crypto-holdings #348
- userId
-
Ismael Ward @ismael_ward
- cryptoId
- crypto/28
- quantity
- 17.8391169
- costBasis
- 16.61321908
- purchasedAt
Overview
crypto-holdings / #348
#348
#348
Request
curl example
curl -sS \ "https://example-data.com/api/v1/crypto-holdings/348" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/crypto-holdings/348" ); 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/348"
);
const cryptoHolding = (await res.json()) as CryptoHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/crypto-holdings/348"
)
crypto_holding = res.json() Response
{
"id": 348,
"userId": 178,
"cryptoId": 28,
"quantity": 17.8391169,
"costBasis": 16.61321908,
"purchasedAt": "2026-05-04T21:44:42.349Z"
}