The Stocks API records individual portfolio movements — buys, sells, and dividends. There is no persistent aggregate: the portfolio summary is computed at runtime from all movements every timeDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/soker90/finper/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/stocks/summary is called.
There is no
PUT endpoint. To correct a movement, delete it and recreate it with the correct values.Movement types
| Value | Meaning |
|---|---|
buy | Purchased shares — increases position |
sell | Sold shares — decreases position |
dividend | Cash dividend received — does not change share count |
GET /api/stocks/summary
Return an aggregated view of the portfolio, calculated at runtime from all recorded movements. Groups byticker and computes totals.
Stock ticker symbol (always uppercase).
Net shares currently held (buys minus sells).
Total capital deployed in buy orders.
Total dividends received across all recorded dividend movements.
GET /api/stocks
List all individual stock movements for the authenticated user.POST /api/stocks
Record a new stock movement.Ticker symbol (automatically uppercased, e.g.
"AAPL", "MSFT").Full company name (e.g.
"Apple Inc.").Number of shares involved. Must be positive.
Price per share at the time of the movement. Must be ≥ 0.
Movement type:
buy, sell, or dividend.Date of the movement as a Unix timestamp (ms).
Broker or platform where the movement occurred (e.g.
"Interactive Brokers", "Degiro").DELETE /api/stocks/:id
Delete a stock movement. The portfolio summary recalculates automatically on the nextGET /api/stocks/summary call.
Stock movement ID.