feat(#47): Cash Flow / Margin toggle on the ledger Statistics profit chart

This commit is contained in:
Sirttas
2026-07-30 22:21:28 +02:00
parent d1237bf1d2
commit 3419f3d4c9
3 changed files with 269 additions and 8 deletions
+54
View File
@@ -359,6 +359,23 @@ paths:
description: The link is seeded; follow with a full-page nav to /oauth2/authorization/esi
"401":
description: Missing or expired access token
/balances/rebuild:
post:
tags:
- balance-rebuild-admin-controller
operationId: rebuild
parameters:
- name: ledgerIds
in: query
required: true
schema:
type: array
items:
type: string
format: uuid
responses:
"204":
description: No Content
/activity/consume:
post:
tags:
@@ -405,6 +422,15 @@ paths:
- activity
summary: Process new activities for the authenticated user's characters
operationId: processNewActivities
parameters:
- name: from
in: query
description: Reprocess by walking the processed tail back to this UTC datetime
(ISO-8601); omit to only process new activities
required: false
schema:
type: string
format: date-time
responses:
"202":
description: Processing started in the background
@@ -932,6 +958,34 @@ paths:
description: The ledger is the system ledger or a combined ledger
"404":
description: No ledger with this id
/ledgers/{ledgerId}/margin:
get:
tags:
- transaction
summary: Get the daily FIFO-realized profit series for a single ledger
operationId: marginPerDayInLedger
parameters:
- name: ledgerId
in: path
description: Id of the ledger
required: true
schema:
type: string
format: uuid
responses:
"200":
description: "Daily realized profit for the ledger, ascending by date, only\
\ for days with a sale"
content:
'*/*':
schema:
type: array
items:
$ref: "#/components/schemas/DailyProfitResponse"
"400":
description: The ledger is the system ledger or a combined ledger
"404":
description: No ledger with this id
/ledgers/{ledgerId}/balance:
get:
tags: