example-data.com

stock-holdings / #131

userId
Jewell Olson @jewell_olson2
stockId
stocks/43
quantity
579.0176
costBasis
2180.9
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/131"
)
stock_holding = res.json()
{
  "id": 131,
  "userId": 68,
  "stockId": 43,
  "quantity": 579.0176,
  "costBasis": 2180.9,
  "purchasedAt": "2026-03-10T05:22:09.819Z"
}
Draftbit