example-data.com

stock-holdings / #183

userId
Myrl Pollich @myrl.pollich
stockId
stocks/38
quantity
551.2487
costBasis
146.41
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/183"
)
stock_holding = res.json()
{
  "id": 183,
  "userId": 90,
  "stockId": 38,
  "quantity": 551.2487,
  "costBasis": 146.41,
  "purchasedAt": "2025-12-03T07:12:58.484Z"
}
Draftbit