example-data.com

stock-holdings / #239

userId
Nikko Kuhlman @nikko_kuhlman
stockId
stocks/48
quantity
914.5546
costBasis
3012.27
purchasedAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/stock-holdings/239" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings/239"
);
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/239"
);
const stockHolding = (await res.json()) as StockHolding;
import requests

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings/239"
)
stock_holding = res.json()
{
  "id": 239,
  "userId": 122,
  "stockId": 48,
  "quantity": 914.5546,
  "costBasis": 3012.27,
  "purchasedAt": "2024-08-31T17:26:19.977Z"
}
Draftbit