example-data.com

stock-holdings / #230

userId
Eveline Emard @eveline.emard
stockId
stocks/17
quantity
148.7105
costBasis
521.41
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/230"
)
stock_holding = res.json()
{
  "id": 230,
  "userId": 118,
  "stockId": 17,
  "quantity": 148.7105,
  "costBasis": 521.41,
  "purchasedAt": "2025-12-05T09:29:50.011Z"
}
Draftbit