aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/process_queue.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/python/process_queue.py b/python/process_queue.py
index c00ae7bb..cfb96fc3 100644
--- a/python/process_queue.py
+++ b/python/process_queue.py
@@ -381,7 +381,10 @@ def rename_keys(d, mapping):
def build_line(obj, trade_type="bond", fund="SERCGMAST"):
- obj["Client"] = "Serenitas"
+ if fund == "SERCGMAST":
+ obj["Client"] = "Serenitas"
+ else:
+ obj["Client"] = "LMCG"
obj["State"] = "Valid"
rename_cols = {
"fund": "Fund",
@@ -911,6 +914,7 @@ def build_termination(
partial_termination: bool = False,
is_assignment: bool = False,
ccy: str = "USD",
+ fund: str = "SERCGMAST",
**kwargs,
) -> (bytes, Tuple[str, str]):
""" if termination_amount is None, assume full termination
@@ -978,9 +982,10 @@ def build_termination(
headers += ["Reserved"] * 4 + ["CreditEventOccured"]
d = {
"DealType": deal_type,
+ "DealId": dealid if globeopid is None else None,
"GoTradeId": globeopid if globeopid else None,
"Action": "Update",
- "Client": "Serenitas",
+ "Client": "Serenitas" if fund == "SERCGMAST" else "LMCG",
"SubAction": "Termination",
"PartialTermination": "Y" if partial_termination else "N",
"TerminationAmount": termination_amount,