aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/monthend_interest_recon.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/python/monthend_interest_recon.py b/python/monthend_interest_recon.py
index f5382da7..7192d8b7 100644
--- a/python/monthend_interest_recon.py
+++ b/python/monthend_interest_recon.py
@@ -145,7 +145,7 @@ def get_interest(counterparties, save=False):
)
-def main():
+if __name__ == "__main__":
em = ExchangeMessage()
counterparties = ["BNP", "CITI", "CS", "GS", "MS", "BAML", "JPM"]
@@ -153,19 +153,20 @@ def main():
parser.add_argument(
"date",
type=datetime.date.fromisoformat,
+ nargs="?",
default=datetime.date.today(),
)
parser.add_argument(
"--save",
action="store_true",
default=False,
- help="for automation or for monthly",
+ help="store in proper folders",
)
parser.add_argument(
"--accept",
action="store_true",
default=False,
- help="for automation or for monthly",
+ help="accept the differences are within tolerance and edit the csv accordingly",
)
args = parser.parse_args()
start = datetime.date(args.date.year, args.date.month, 1)
@@ -191,7 +192,3 @@ def main():
for k, v in interest_recon["difference"].items():
df.loc[k].loc["CSH_CASH"] -= v
df.to_csv("/home/serenitas/flint/interest_recon.csv")
-
-
-if __name__ == "__main__":
- main()