Skip to content

Commit

Permalink
Merge pull request #430 from idiotcommerce/main
Browse files Browse the repository at this point in the history
edited the lumpsum error
  • Loading branch information
ighoshsubho authored Jul 11, 2023
2 parents 9378a96 + 1dafefb commit 0d806ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

# THIS IS FOR TEST PURPOSE
<h1 align=center> FinTech API v2</h1>

<p align=center>
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,9 @@ def payback_period(
description="Calculate compound interest amount",
)
def compound_interest(
request: compoundInterest,
request: compoundInterest
):
return compound_interest_task(request.principal_amount, request.interest_rate, request.time)
return compound_interest_task(request.principal_amount, request.interest_rate, request.years ,request.compounding_period)


# Endpoints to calculate certificate of deposit (CD)
Expand Down
3 changes: 1 addition & 2 deletions tasks/lumpsum.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from helpers import functions
from fastapi import HTTPException, status

async def calculate_lumpsum_task(principal: float, interest_rate: float, years: int):
def calculate_lumpsum_task(principal: float, interest_rate: float, years: int):

try:
total_amount = principal * (
Expand Down

0 comments on commit 0d806ab

Please sign in to comment.