-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor APY calculation logic (#197)
The logic to calculate the Average Percentage Yield (APY) for each day, and for specific periods (i.e., 7, 30, 90, 365 days) has been refactored for optimization. APY calculation is now performed over actual data length, eliminating the division over fixed period values. The results are also systematically sorted by timestamp for consistent retrieval of data.
- Loading branch information
1 parent
c15e99b
commit 7eb9d26
Showing
2 changed files
with
18 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters