example-data.com

stock-holdings

stock-holdings

Page 2 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": 25,
      "userId": 17,
      "stockId": 20,
      "quantity": 630.1571,
      "costBasis": 4281.46,
      "purchasedAt": "2024-12-01T21:58:49.201Z"
    },
    {
      "id": 26,
      "userId": 17,
      "stockId": 63,
      "quantity": 354.0573,
      "costBasis": 878.69,
      "purchasedAt": "2026-01-06T02:39:46.769Z"
    },
    {
      "id": 27,
      "userId": 18,
      "stockId": 21,
      "quantity": 639.2097,
      "costBasis": 1097.93,
      "purchasedAt": "2025-05-18T21:20:53.527Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 512,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/stock-holdings?page=2",
    "next": "/api/v1/stock-holdings?page=3",
    "prev": "/api/v1/stock-holdings?page=1"
  }
}
Draftbit