stock-holdings / #40
- userId
-
Jennifer Stoltenberg @jennifer_stoltenberg
- stockId
- stocks/50
- quantity
- 923.716
- costBasis
- 4826.83
- purchasedAt
Component variants
Medium
#40
#40
Small
stock-holdings/40 Related
curl -sS \
"https://example-data.com/api/v1/stock-holdings/40" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/40"
);
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/40"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/40"
)
stock_holding = res.json() {
"id": 40,
"userId": 25,
"stockId": 50,
"quantity": 923.716,
"costBasis": 4826.83,
"purchasedAt": "2025-05-30T23:16:01.329Z"
}