example-data.com

stock-holdings

stock-holdings

Page 3 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": 49,
      "userId": 29,
      "stockId": 16,
      "quantity": 899.4143,
      "costBasis": 3086.04,
      "purchasedAt": "2025-11-18T17:58:33.882Z"
    },
    {
      "id": 50,
      "userId": 29,
      "stockId": 26,
      "quantity": 936.4493,
      "costBasis": 3423.42,
      "purchasedAt": "2025-07-13T16:28:49.613Z"
    },
    {
      "id": 51,
      "userId": 29,
      "stockId": 78,
      "quantity": 640.9844,
      "costBasis": 461.43,
      "purchasedAt": "2025-09-16T12:09:36.630Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 512,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/stock-holdings?page=3",
    "next": "/api/v1/stock-holdings?page=4",
    "prev": "/api/v1/stock-holdings?page=2"
  }
}
Draftbit