example-data.com

stock-holdings / #49

userId
Jensen Bashirian @jensen_bashirian
stockId
stocks/16
quantity
899.4143
costBasis
3086.04
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/49"
)
stock_holding = res.json()
{
  "id": 49,
  "userId": 29,
  "stockId": 16,
  "quantity": 899.4143,
  "costBasis": 3086.04,
  "purchasedAt": "2025-11-18T17:58:33.882Z"
}
Draftbit