stock-holdings #316
- userId
-
Marlin Goldner @marlin_goldner6
- stockId
- stocks/73
- quantity
- 397.8888
- costBasis
- 514.11
- purchasedAt
Overview
stock-holdings / #316
#316
#316
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stock-holdings/316" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stock-holdings/316" ); 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/316"
);
const stockHolding = (await res.json()) as StockHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/316"
)
stock_holding = res.json() Response
{
"id": 316,
"userId": 160,
"stockId": 73,
"quantity": 397.8888,
"costBasis": 514.11,
"purchasedAt": "2026-01-12T07:40:32.938Z"
}