example-data.com

stock-holdings / #182

userId
Myrl Pollich @myrl.pollich
stockId
stocks/66
quantity
787.9348
costBasis
4638.34
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/182"
)
stock_holding = res.json()
{
  "id": 182,
  "userId": 90,
  "stockId": 66,
  "quantity": 787.9348,
  "costBasis": 4638.34,
  "purchasedAt": "2025-12-25T07:47:40.242Z"
}
Draftbit