example-data.com

crypto-holdings / #175

userId
Amya Powlowski @amya_powlowski32
cryptoId
1
quantity
5.4199227
costBasis
54029.043
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings/175"
)
crypto_holding = res.json()
{
  "id": 175,
  "userId": 80,
  "cryptoId": 1,
  "quantity": 5.4199227,
  "costBasis": 54029.043,
  "purchasedAt": "2024-07-09T15:32:40.643Z"
}
Draftbit