example-data.com

stock-holdings / #123

userId
Tiara Wilderman @tiara_wilderman
stockId
stocks/41
quantity
644.1917
costBasis
1093.21
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/123"
)
stock_holding = res.json()
{
  "id": 123,
  "userId": 66,
  "stockId": 41,
  "quantity": 644.1917,
  "costBasis": 1093.21,
  "purchasedAt": "2025-01-11T23:38:13.382Z"
}
Draftbit