aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/monthly_interest.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/python/monthly_interest.py b/python/monthly_interest.py
index 18e2f687..b6a3b3b0 100644
--- a/python/monthly_interest.py
+++ b/python/monthly_interest.py
@@ -94,6 +94,9 @@ def get_CITI(path):
def get_GS(g):
for e in g:
if "TOTAL INTEREST" in e.text:
+ breakpoint()
+ print(next(g).text)
+ print(next(g).text)
next(g)
return float(next(g).text.replace("USD", "").replace(",", ""))
@@ -109,6 +112,14 @@ def get_BAML(g):
return -float(next(g).text.replace("(", "-").replace(")", ""))
+def get_JPM(g):
+ breakpoint()
+ for e in g:
+ if "Page" in e.text:
+ return float(value)
+ value = e.text
+
+
def start_end(year, month):
start = datetime.date(year, month, 1)
end = start + relativedelta(months=1)
@@ -118,7 +129,7 @@ def start_end(year, month):
def get_interest(delete=False):
interest_amounts = defaultdict(float)
- counterparties = ["BNP", "CITI", "CS", "GS", "MS", "BAML"]
+ counterparties = ["BNP", "CITI", "CS", "GS", "MS", "BAML", "JPM"]
for cp in counterparties:
try:
func = globals()[f"get_{cp}"]
@@ -150,7 +161,7 @@ def get_interest(delete=False):
em = ExchangeMessage()
-counterparties = ["BNP", "CITI", "CS", "GS", "MS", "BAML"]
+counterparties = ["BNP", "CITI", "CS", "GS", "MS", "BAML", "JPM"]
parser = argparse.ArgumentParser(description="determine sender destination")
parser.add_argument("start")