example-data.com

stock-holdings / #14

userId
Jaycee Erdman @jaycee_erdman96
stockId
stocks/75
quantity
830.1926
costBasis
2334.16
purchasedAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/14"
)
stock_holding = res.json()
{
  "id": 14,
  "userId": 10,
  "stockId": 75,
  "quantity": 830.1926,
  "costBasis": 2334.16,
  "purchasedAt": "2025-01-21T15:22:49.634Z"
}
Draftbit