stock-holdings #39
- userId
-
Ericka DuBuque @ericka.dubuque
- stockId
- stocks/86
- quantity
- 498.8741
- costBasis
- 2375.17
- purchasedAt
Overview
stock-holdings / #39
#39
#39
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stock-holdings/39" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stock-holdings/39" ); 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/39"
);
const stockHolding = (await res.json()) as StockHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/39"
)
stock_holding = res.json() Response
{
"id": 39,
"userId": 23,
"stockId": 86,
"quantity": 498.8741,
"costBasis": 2375.17,
"purchasedAt": "2026-01-29T02:20:46.006Z"
}