diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-21 11:21:51 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-21 11:21:51 +0800 |
| commit | b8811922f4e167d50efb8817da35a12d8a9d653b (patch) | |
| tree | b85cc56677be5d4d58ad2277f00cbc935933301e /src/FundLab.Api/akshare_collector.py | |
| parent | 3d9398234a54774544eb48a1caed6a1b2d5132eb (diff) | |
| download | fund-lab-b8811922f4e167d50efb8817da35a12d8a9d653b.tar.gz | |
Add redemption order minimal closed loop (3d-3)
Redeem confirmed holdings end to end with exact decimal semantics:
submission freezes position units (reserved_units) after an
available-units check without touching cash, confirmation settles at
the trade-date NAV with evidence and deferral rules identical to
subscriptions, credits the fund with proceeds net of the stated fee,
and writes off position cost pro rata (full redemption removes the
position row). Cash conservation holds at every step: frozen shares
and receivable cash never appear as available cash before settlement.
Domain gains RedemptionPolicy (request validation plus proceeds/fee/
cost-release computation) with unit tests. Persistence adds
redemption_orders, idempotency tables, reserved_units on positions
and Create/Confirm repository members; the API exposes
POST/GET /funds/{id}/redemptions and POST .../confirm. The frontend
adds a 06/REDEEM panel (submit, confirm, pending reasons, confirmed
proceeds/cost display), frozen-share display on the holdings panel,
and refresh wiring. Browser QA gains a K-series covering freeze,
settlement, cash accounting, replay and over-redemption rejection.
Diffstat (limited to 'src/FundLab.Api/akshare_collector.py')
0 files changed, 0 insertions, 0 deletions
