(20241223) Making the tick simulator live for testing.

This commit is contained in:
2024-12-23 16:48:13 +05:30
parent da138ee1b3
commit 7c7b10f27c
4 changed files with 10 additions and 18 deletions
@@ -82,7 +82,7 @@ import asyncio
# Related to Quart:
trading_oauth_callback_bp = Blueprint("trading_cb", __name__)
trading_oauth_callback_bp = Blueprint("trading_oauth_cb", __name__)
# *****************************************************************************************************************
@@ -115,7 +115,12 @@ def init(blueprint_setup_state):
async def handle_auth_exception():
print("Hi! Cleaning up...")
"""
Use this to handle any exceptions that occur in the process of accepting authorization details. Zero's direct
library, for instance, raise several exceptions for cases like expired tokens, checksum failures, etc.
:return: A web-view that indicates failure.
"""
return await render_template(
"/finstitutions/trading/oauth/oauth_failure_v2.html",
client = g.client_label,
@@ -190,19 +195,6 @@ async def trading_oauth_callback(
# ┛┗┗ ┛┣┛┗┛┛┗┛┗
# ┛
# # No valid client:
# if success is None: return ResponseModel(
# status_code = StatusCodes.FAILED,
# http_code = HttpCodes.BAD_REQUEST,
# message = f"Invalid/unimplemented client '{trading_client}'."
# )
#
# # When the client was valid:
# return ResponseModel(
# status_code = StatusCodes.OK if success else StatusCodes.FAILED,
# http_code = HttpCodes.SUCCESS if success else HttpCodes.INTERNAL_SERVER_ERROR,
# )
# No valid client:
if success is None: return await render_template(
"/finstitutions/trading/oauth/oauth_failure_v2.html",