example-data.com

crypto-holdings / #215

userId
Norbert Jacobi @norbert_jacobi92
cryptoId
27
quantity
80.3301602
costBasis
25.24173055
purchasedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/crypto-holdings/215" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings/215"
);
const cryptoHolding = await res.json();
import type { CryptoHolding } from "https://example-data.com/types/crypto-holdings.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings/215"
);
const cryptoHolding = (await res.json()) as CryptoHolding;
import requests

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings/215"
)
crypto_holding = res.json()
{
  "id": 215,
  "userId": 101,
  "cryptoId": 27,
  "quantity": 80.3301602,
  "costBasis": 25.24173055,
  "purchasedAt": "2025-01-01T18:55:59.310Z"
}
Draftbit