example-data.com

crypto-holdings / #47

userId
Alvina Koch @alvina.koch8
cryptoId
13
quantity
24.18210552
costBasis
0.00002768
purchasedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/crypto-holdings/47" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/crypto-holdings/47"
);
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/47"
);
const cryptoHolding = (await res.json()) as CryptoHolding;
import requests

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings/47"
)
crypto_holding = res.json()
{
  "id": 47,
  "userId": 20,
  "cryptoId": 13,
  "quantity": 24.18210552,
  "costBasis": 0.00002768,
  "purchasedAt": "2024-06-21T12:24:21.665Z"
}
Draftbit