(20250104) Breeze authorization will be accepted now.
This commit is contained in:
@@ -46,6 +46,7 @@ from controllers_v2.core.auth_token import CoreAuthTokenController
|
||||
# Models:
|
||||
from models.core.auth_token import CoreAuthTokenModel
|
||||
from models.api.finstitutions.trading.symbols.list import TradingSymbolListRequestData, TradingSymbolListBrokerResponse
|
||||
from models.finstitutions.trading.oauth import TradingOAuthCallbackResponse
|
||||
|
||||
# To work with datatypes:
|
||||
from typing import List, Any
|
||||
@@ -170,8 +171,9 @@ class TradingController(CoreAuthTokenController, ABC):
|
||||
self,
|
||||
sql_conn: AsyncMySQL,
|
||||
mongo_data_conn: AsyncMongo,
|
||||
inbound_data: dict
|
||||
) -> bool:
|
||||
inbound_data: dict,
|
||||
client_user_id: str
|
||||
) -> TradingOAuthCallbackResponse:
|
||||
|
||||
"""
|
||||
When the end user interacts with their broker's APIs, the broker's servers would usually issue a callback.
|
||||
@@ -180,7 +182,8 @@ class TradingController(CoreAuthTokenController, ABC):
|
||||
:param sql_conn: The database connection to use to perform this activity.
|
||||
:param mongo_data_conn: The database connection to use to perform this activity.
|
||||
:param inbound_data: The data that came in from the broker. This could be in the JSON body, query params, etc.
|
||||
:return: True if the callback loop was completed successfully, else False.
|
||||
:param client_user_id: How the trading client identifies this user.
|
||||
:return: A structured response to capture the process of callback handling.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user