example-data.com

stock-holdings / #160

userId
Stephan Heller @stephan.heller
stockId
stocks/22
quantity
220.7014
costBasis
3187.05
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/160"
)
stock_holding = res.json()
{
  "id": 160,
  "userId": 82,
  "stockId": 22,
  "quantity": 220.7014,
  "costBasis": 3187.05,
  "purchasedAt": "2025-04-13T11:59:22.155Z"
}
Draftbit