stock-holdings #28
- userId
-
Kenya Abshire @kenya.abshire
- stockId
- stocks/69
- quantity
- 973.2144
- costBasis
- 4084.05
- purchasedAt
Overview
stock-holdings / #28
#28
#28
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stock-holdings/28" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stock-holdings/28" ); const stockHolding = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/stock-holdings.d.ts https://example-data.com/types/stock-holdings.d.ts
import type { StockHolding } from "./types/stock-holdings";
const res = await fetch(
"https://example-data.com/api/v1/stock-holdings/28"
);
const stockHolding = (await res.json()) as StockHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/28"
)
stock_holding = res.json() Response
{
"id": 28,
"userId": 18,
"stockId": 69,
"quantity": 973.2144,
"costBasis": 4084.05,
"purchasedAt": "2025-10-12T04:22:53.629Z"
}