stock-holdings / #29
- userId
-
Kenya Abshire @kenya.abshire
- stockId
- stocks/14
- quantity
- 134.1755
- costBasis
- 3658.4
- purchasedAt
Component variants
Medium
#29
#29
Small
stock-holdings/29 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/29" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/29"
);
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/29"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/29"
)
stock_holding = res.json() {
"id": 29,
"userId": 18,
"stockId": 14,
"quantity": 134.1755,
"costBasis": 3658.4,
"purchasedAt": "2024-06-30T07:42:29.424Z"
}