example-data.com

stock-holdings / #111

userId
Jarrell Flatley @jarrell_flatley39
stockId
stocks/44
quantity
537.2155
costBasis
7201.44
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/111"
)
stock_holding = res.json()
{
  "id": 111,
  "userId": 61,
  "stockId": 44,
  "quantity": 537.2155,
  "costBasis": 7201.44,
  "purchasedAt": "2025-03-10T20:13:39.768Z"
}
Draftbit