(20250730) - Fixed minor issues in paper trading update api

This commit is contained in:
yatmesh
2025-07-30 10:21:16 +05:30
parent 84efe75c06
commit 6e0cafcecf
@@ -394,21 +394,22 @@ async def request_oauth_authorization_update_url(
user = kwargs["session_info"], user = kwargs["session_info"],
clientUserId = { clientUserId = {
"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)
}, },
auth = inbound_data.auth.model_dump(), auth = inbound_data.auth.model_dump(),
status = "active", status = "active",
syncFreq = None syncFreq = None
), ),
token_notes = { 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_name = inbound_data.auth.username,
display_picture = None, display_picture = None,
session_token = inbound_headers["X-Session-Token"] session_token = inbound_headers["X-Session-Token"]
) )
print(success)
# Check if things were successful: # Check if things were successful:
if not success: auth_url = None if not success: auth_url = None