stock-holdings #250
- userId
-
Audreanne Will @audreanne_will
- stockId
- stocks/71
- quantity
- 484.4401
- costBasis
- 2302.84
- purchasedAt
Overview
stock-holdings / #250
#250
#250
Request
curl example
curl -sS \ "https://example-data.com/api/v1/stock-holdings/250" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/stock-holdings/250" ); 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/250"
);
const stockHolding = (await res.json()) as StockHolding; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/stock-holdings/250"
)
stock_holding = res.json() Response
{
"id": 250,
"userId": 127,
"stockId": 71,
"quantity": 484.4401,
"costBasis": 2302.84,
"purchasedAt": "2025-08-02T16:50:16.660Z"
}