[GH-ISSUE #49] Calculation Portfolio History endpoint parametrize #8

Closed
opened 2026-03-03 11:58:21 +03:00 by kerem · 1 comment
Owner

Originally created by @sergeiosipov on GitHub (Jul 14, 2025).
Original GitHub issue: https://github.com/finmars-platform/finmars-core/issues/49

  1. "api/v1/portfolios/portfolio-history/calculate/"
    1. Make sure that existing parameter: "calculation_period_date_from" - used to delete all existing portfolio history records of the portfolio because changes will affect all following portfolio history records. If null -> delete portfolio history records since inception and calculate portfolio history records since inception.
    2. Make sure that existing parameter: "date_to" - used to calculate portfolio history records to restrict calculation to a specific date (e.g. we plan to add more data and calculate other dates later. If null -> delete portfolio history records until yesterday and calculate portfolio history records until yesterday.
Originally created by @sergeiosipov on GitHub (Jul 14, 2025). Original GitHub issue: https://github.com/finmars-platform/finmars-core/issues/49 1) "api/v1/portfolios/portfolio-history/calculate/" 1) Make sure that existing parameter: "calculation_period_date_from" - used to delete all existing portfolio history records of the portfolio because changes will affect all following portfolio history records. If null -> delete portfolio history records since inception and calculate portfolio history records since inception. 1) Make sure that existing parameter: "date_to" - used to calculate portfolio history records to restrict calculation to a specific date (e.g. we plan to add more data and calculate other dates later. If null -> delete portfolio history records until yesterday and calculate portfolio history records until yesterday.
kerem closed this issue 2026-03-03 11:58:21 +03:00
Author
Owner

@falendary commented on GitHub (Jul 15, 2025):

https://github.com/finmars-platform/finmars-core/pull/51

<!-- gh-comment-id:3073993407 --> @falendary commented on GitHub (Jul 15, 2025): https://github.com/finmars-platform/finmars-core/pull/51
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/finmars-core#8
No description provided.