stock-holdings / #114
- userId
-
Theresia Collins @theresia_collins86
- stockId
- stocks/69
- quantity
- 274.1016
- costBasis
- 3611.52
- purchasedAt
Component variants
Medium
#114
#114
Small
stock-holdings/114 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/114" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/114"
);
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/114"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/114"
)
stock_holding = res.json() {
"id": 114,
"userId": 63,
"stockId": 69,
"quantity": 274.1016,
"costBasis": 3611.52,
"purchasedAt": "2024-08-11T19:49:34.056Z"
}