diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/monthend_interest_recon.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/python/monthend_interest_recon.py b/python/monthend_interest_recon.py index 8a8f1b49..2568a20f 100644 --- a/python/monthend_interest_recon.py +++ b/python/monthend_interest_recon.py @@ -88,6 +88,12 @@ def get_JPM(g): value = e.text +def get_BARCLAYS(l): + for e, n in zip(l, l[1:]): + if "Accrued" in e.text: + return float(n.text.replace("(", "-").replace(")", "").replace(",", "")) + + def start_end(date): date = date - relativedelta(months=1) start = datetime.date(date.year, date.month, 1) @@ -121,7 +127,7 @@ def get_interest(counterparties, save=False): if __name__ == "__main__": em = ExchangeMessage() - counterparties = ["BNP", "CITI", "GS", "MS", "BoA", "JPM"] + counterparties = ["BNP", "CITI", "GS", "MS", "BoA", "JPM", "BARCLAYS"] # First run --save, then run --accept if it looks good parser = argparse.ArgumentParser(description="Save, accept within tolerances") parser.add_argument( |
