From 6e0cafcecf36522ec4592317cb7f78e7fc121c28 Mon Sep 17 00:00:00 2001 From: yatmesh Date: Wed, 30 Jul 2025 10:21:16 +0530 Subject: [PATCH] (20250730) - Fixed minor issues in paper trading update api --- api/blueprints/finstitutions/trading/oauth/request.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/blueprints/finstitutions/trading/oauth/request.py b/api/blueprints/finstitutions/trading/oauth/request.py index fefceb6..e180109 100644 --- a/api/blueprints/finstitutions/trading/oauth/request.py +++ b/api/blueprints/finstitutions/trading/oauth/request.py @@ -394,21 +394,22 @@ async def request_oauth_authorization_update_url( user = kwargs["session_info"], clientUserId = { "username": inbound_data.auth.username, - "perTrade": inbound_data.get("perTrade", 0), - "perCrore": inbound_data.get("perCrore", 0), - "perLot": inbound_data.get("perLot", 0) }, auth = inbound_data.auth.model_dump(), status = "active", syncFreq = None ), token_notes = { - "username": inbound_data.auth.username + "username": inbound_data.auth.username, + "perTrade": inbound_data.get("perTrade", 0), + "perCrore": inbound_data.get("perCrore", 0), + "perLot": inbound_data.get("perLot", 0) }, display_name = inbound_data.auth.username, display_picture = None, session_token = inbound_headers["X-Session-Token"] ) + print(success) # Check if things were successful: if not success: auth_url = None