aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops/__main__.py')
-rw-r--r--python/report_ops/__main__.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/python/report_ops/__main__.py b/python/report_ops/__main__.py
index 18416eb3..c0700d66 100644
--- a/python/report_ops/__main__.py
+++ b/python/report_ops/__main__.py
@@ -8,7 +8,7 @@ from .cash import CashReport
from .admin import CitcoReport
from .wires import Wire
from .custodians import upload_to_custodian
-from .utils import notify_payment_settlements, PaymentMonitor
+from .utils import notify_payment_settlements, notify_fx_hedge, PaymentMonitor, FxHedge
from .misc import _fund_custodians
logger = logging.getLogger(__name__)
@@ -46,6 +46,12 @@ parser.add_argument(
help="notify payment settlements by email",
)
parser.add_argument(
+ "-fh",
+ "--fx_hedge",
+ action="store_true",
+ help="return fx trades",
+)
+parser.add_argument(
"-n", "--no-upload", action="store_true", help="do not upload, just create files"
)
parser.add_argument(
@@ -108,3 +114,9 @@ if args.payment_settlements:
for fund in ("SERCGMAST", "BRINKER", "BOWDST", "ISOSEL"):
notify_payment_settlements(args.date, fund, conn)
PaymentMonitor._staging_queue.clear()
+
+if args.fx_hedge:
+ conn = dbconn("dawndb")
+ for fund in ("SERCGMAST", "BOWDST", "ISOSEL"):
+ notify_fx_hedge(cob, fund, conn)
+ FxHedge._staging_queue.clear()