example-data.com

crypto-holdings / #93

userId
Amely Daniel @amely_daniel
cryptoId
1
quantity
86.08260866
costBasis
52455.1575
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/crypto-holdings/93"
)
crypto_holding = res.json()
{
  "id": 93,
  "userId": 41,
  "cryptoId": 1,
  "quantity": 86.08260866,
  "costBasis": 52455.1575,
  "purchasedAt": "2024-06-18T08:11:18.479Z"
}
Draftbit