From 3be95e80cf7c8fdfd9ad3e407d7b9e88660bb637 Mon Sep 17 00:00:00 2001 From: Priyanka Punukollu Date: Sun, 1 Mar 2026 14:54:48 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20use=20MANUAL=20dataSource=20for=20Ghostf?= =?UTF-8?q?olio=20transaction=20imports=20=E2=80=94=20agent=20fetches=20pr?= =?UTF-8?q?ice=20from=20Yahoo=20Finance=20first,=20then=20submits=20to=20G?= =?UTF-8?q?hostfolio=20with=20price=20included,=20avoiding=20redundant=20Y?= =?UTF-8?q?ahoo=20Finance=20validation=20call=20that=20times=20out=20on=20?= =?UTF-8?q?Railway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made-with: Cursor --- agent/tools/write_ops.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agent/tools/write_ops.py b/agent/tools/write_ops.py index f3d42409b..82936dc40 100644 --- a/agent/tools/write_ops.py +++ b/agent/tools/write_ops.py @@ -95,7 +95,7 @@ async def buy_stock( payload = { "activities": [{ "currency": "USD", - "dataSource": "YAHOO", + "dataSource": "MANUAL", "date": f"{date_str}T00:00:00.000Z", "fee": fee, "quantity": quantity, @@ -120,7 +120,7 @@ async def sell_stock( payload = { "activities": [{ "currency": "USD", - "dataSource": "YAHOO", + "dataSource": "MANUAL", "date": f"{date_str}T00:00:00.000Z", "fee": fee, "quantity": quantity, @@ -158,7 +158,7 @@ async def add_transaction( } date_str = date_str or _today_str() - data_source = "YAHOO" if transaction_type in {"BUY", "SELL"} else "MANUAL" + data_source = "MANUAL" payload = { "activities": [{ "currency": "USD",