example-data.com

crypto-holdings / #131

userId
Niko Wisozk @niko_wisozk
cryptoId
27
quantity
46.82599646
costBasis
32.84389222
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings/131"
)
crypto_holding = res.json()
{
  "id": 131,
  "userId": 56,
  "cryptoId": 27,
  "quantity": 46.82599646,
  "costBasis": 32.84389222,
  "purchasedAt": "2024-07-05T22:07:14.311Z"
}
Draftbit