stock-holdings / #200
- userId
-
Whitney O'Reilly @whitney.oreilly
- stockId
- stocks/62
- quantity
- 492.4523
- costBasis
- 1498.55
- purchasedAt
Component variants
Medium
#200
#200
Small
stock-holdings/200 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/200" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/200"
);
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/200"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/200"
)
stock_holding = res.json() {
"id": 200,
"userId": 99,
"stockId": 62,
"quantity": 492.4523,
"costBasis": 1498.55,
"purchasedAt": "2024-07-19T00:20:51.807Z"
}