stock-holdings / #238
- userId
-
Lennie Dickinson @lennie_dickinson8
- stockId
- stocks/1
- quantity
- 168.8798
- costBasis
- 1382.33
- purchasedAt
Component variants
Medium
#238
#238
Small
stock-holdings/238 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/238" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/238"
);
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/238"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/238"
)
stock_holding = res.json() {
"id": 238,
"userId": 121,
"stockId": 1,
"quantity": 168.8798,
"costBasis": 1382.33,
"purchasedAt": "2024-09-29T13:49:22.054Z"
}