stock-holdings / #143
- userId
-
Ike Breitenberg @ike.breitenberg
- stockId
- stocks/69
- quantity
- 9.6317
- costBasis
- 2483.12
- purchasedAt
Component variants
Medium
#143
#143
Small
stock-holdings/143 Related
References
curl -sS \
"https://example-data.com/api/v1/stock-holdings/143" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/143"
);
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/143"
);
const stockHolding = (await res.json()) as StockHolding;import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/143"
)
stock_holding = res.json() {
"id": 143,
"userId": 72,
"stockId": 69,
"quantity": 9.6317,
"costBasis": 2483.12,
"purchasedAt": "2024-10-04T02:33:22.441Z"
}