example-data.com

stock-holdings

stock-holdings

Page 8 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": 169,
      "userId": 85,
      "stockId": 55,
      "quantity": 165.5649,
      "costBasis": 7529.8,
      "purchasedAt": "2024-10-19T06:18:40.146Z"
    },
    {
      "id": 170,
      "userId": 85,
      "stockId": 20,
      "quantity": 591.8114,
      "costBasis": 3531.42,
      "purchasedAt": "2026-01-08T06:36:22.478Z"
    },
    {
      "id": 171,
      "userId": 85,
      "stockId": 82,
      "quantity": 234.2461,
      "costBasis": 1236.02,
      "purchasedAt": "2026-05-06T16:42:55.915Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 512,
    "totalPages": 22
  },
  "links": {
    "self": "/api/v1/stock-holdings?page=8",
    "next": "/api/v1/stock-holdings?page=9",
    "prev": "/api/v1/stock-holdings?page=7"
  }
}
Draftbit