(20250730) - Fixed minor issues in paper trading update api
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user