example-data.com

stock-holdings

stock-holdings

Page 4 of 10.

curl -sS \
  "https://example-data.com/api/v1/stock-holdings?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings?limit=25"
);
const { data, meta } = await res.json();
import type { StockHolding, ListEnvelope } from "https://example-data.com/types/stock-holdings.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/stock-holdings?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<StockHolding>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/stock-holdings",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 73,
      "userId": 40,
      "stockId": 90,
      "quantity": 841.858,
      "costBasis": 1478.33,
      "purchasedAt": "2024-10-07T02:13:55.093Z"
    },
    {
      "id": 74,
      "userId": 40,
      "stockId": 62,
      "quantity": 912.6049,
      "costBasis": 612.43,
      "purchasedAt": "2026-04-09T07:04:31.479Z"
    },
    {
      "id": 75,
      "userId": 41,
      "stockId": 31,
      "quantity": 466.8648,
      "costBasis": 5497.2,
      "purchasedAt": "2025-10-28T02:07:46.675Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 512,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/stock-holdings?page=4",
    "next": "/api/v1/stock-holdings?page=5",
    "prev": "/api/v1/stock-holdings?page=3"
  }
}
Draftbit