example-data.com

stock-holdings / #108

userId
Jarrell Flatley @jarrell_flatley39
stockId
stocks/21
quantity
434.1952
costBasis
2772.95
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/108"
)
stock_holding = res.json()
{
  "id": 108,
  "userId": 61,
  "stockId": 21,
  "quantity": 434.1952,
  "costBasis": 2772.95,
  "purchasedAt": "2026-05-02T21:23:45.502Z"
}
Draftbit