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