aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/ops/trade_dataclasses.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/ops/trade_dataclasses.py b/python/ops/trade_dataclasses.py
index 4f3b6a2c..28b4dfc2 100644
--- a/python/ops/trade_dataclasses.py
+++ b/python/ops/trade_dataclasses.py
@@ -1189,7 +1189,7 @@ class FxSwapDeal(
far_sell_currency: str
far_sell_amount: str
fund: Fund
- cp_code: str
+ cp_code: str = field(metadata={"citco": "ExecutionBroker"})
cash_account: str
id: int = field(default=None, metadata={"insert": False})
dealid: str = field(
@@ -1269,9 +1269,10 @@ class FxSwapDeal(
obj["TradeDate"], "%Y%m%d"
), # Will be cleaning up with a split function, this is just to run it
settle_date=obj["near_settle_date"],
- cp_code=obj["cp_code"],
+ cp_code=obj["ExecutionBroker"],
cash_account=obj["cash_account"],
)
+ near_trade.citco_stage(action)
obj["ClientOrderID"] = obj["ClientOrderID"] + "_F"
obj["FXRate"] = 1
return obj