example-data.com

stock-holdings / #181

userId
Myrl Pollich @myrl.pollich
stockId
stocks/32
quantity
732.8372
costBasis
2605.05
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/181"
)
stock_holding = res.json()
{
  "id": 181,
  "userId": 90,
  "stockId": 32,
  "quantity": 732.8372,
  "costBasis": 2605.05,
  "purchasedAt": "2025-10-13T14:55:35.620Z"
}
Draftbit