example-data.com

stock-holdings / #193

userId
Matilde Beahan @matilde_beahan
stockId
stocks/25
quantity
558.1096
costBasis
3775.49
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/193"
)
stock_holding = res.json()
{
  "id": 193,
  "userId": 96,
  "stockId": 25,
  "quantity": 558.1096,
  "costBasis": 3775.49,
  "purchasedAt": "2025-12-13T08:24:04.545Z"
}
Draftbit