example-data.com

stock-holdings / #66

userId
Karlee Hudson-Turner @karlee.hudson-turner88
stockId
stocks/7
quantity
39.8271
costBasis
2849.18
purchasedAt

Component variants

Related

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

const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings/66"
);
const stockHolding = (await res.json()) as StockHolding;
import requests

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/66"
)
stock_holding = res.json()
{
  "id": 66,
  "userId": 36,
  "stockId": 7,
  "quantity": 39.8271,
  "costBasis": 2849.18,
  "purchasedAt": "2024-12-16T15:03:13.458Z"
}
Draftbit