example-data.com

stock-holdings / #13

userId
Anne Hamill @anne_hamill75
stockId
stocks/51
quantity
604.6247
costBasis
4168.43
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/13"
)
stock_holding = res.json()
{
  "id": 13,
  "userId": 9,
  "stockId": 51,
  "quantity": 604.6247,
  "costBasis": 4168.43,
  "purchasedAt": "2025-11-18T01:26:43.779Z"
}
Draftbit