stock-holdings
stock-holdings
Browse 512 stock-holdings records. Free mock data API by Draftbit — fetch over REST or browse paginated HTML.
- stock-holdings/1
- stock-holdings/2
- stock-holdings/3
- stock-holdings/4
- stock-holdings/5
- stock-holdings/6
- stock-holdings/7
- stock-holdings/8
- stock-holdings/9
- stock-holdings/10
- stock-holdings/11
- stock-holdings/12
- stock-holdings/13
- stock-holdings/14
- stock-holdings/15
- stock-holdings/16
- stock-holdings/17
- stock-holdings/18
- stock-holdings/19
- stock-holdings/20
- stock-holdings/21
- stock-holdings/22
- stock-holdings/23
- stock-holdings/24
- userId
-
Amina King @amina_king41
- stockId
- stocks/5
- quantity
- 117.999
- costBasis
- 1627.48
- purchasedAt
- userId
-
Conner Bernhard @conner.bernhard33
- stockId
- stocks/77
- quantity
- 833.1922
- costBasis
- 4312.93
- purchasedAt
- userId
-
Conner Bernhard @conner.bernhard33
- stockId
- stocks/1
- quantity
- 934.1565
- costBasis
- 3718.24
- purchasedAt
- userId
-
Conner Bernhard @conner.bernhard33
- stockId
- stocks/83
- quantity
- 772.7309
- costBasis
- 2449.69
- purchasedAt
- userId
-
Cayla Farrell @cayla_farrell
- stockId
- stocks/11
- quantity
- 156.3436
- costBasis
- 1947.16
- purchasedAt
- userId
-
Cayla Farrell @cayla_farrell
- stockId
- stocks/89
- quantity
- 557.5123
- costBasis
- 2791.37
- purchasedAt
Showing first 6 of 24 on this page.
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": 1,
"userId": 2,
"stockId": 5,
"quantity": 117.999,
"costBasis": 1627.48,
"purchasedAt": "2024-09-27T02:42:34.677Z"
},
{
"id": 2,
"userId": 3,
"stockId": 77,
"quantity": 833.1922,
"costBasis": 4312.93,
"purchasedAt": "2025-05-13T15:48:30.236Z"
},
{
"id": 3,
"userId": 3,
"stockId": 1,
"quantity": 934.1565,
"costBasis": 3718.24,
"purchasedAt": "2025-01-15T00:16:21.211Z"
}
],
"meta": {
"page": 1,
"limit": 25,
"total": 512,
"totalPages": 21
},
"links": {
"self": "/api/v1/stock-holdings?page=1",
"first": "/api/v1/stock-holdings?page=1",
"last": "/api/v1/stock-holdings?page=21",
"next": "/api/v1/stock-holdings?page=2",
"prev": null
}
}