sdk.lusid.extensions.api_client_factory.SyncApiClientFactory

class SyncApiClientFactory(config_loaders=(<lusid.extensions.configuration_loaders.EnvironmentVariablesConfigurationLoader object>, <lusid.extensions.configuration_loaders.SecretsFileConfigurationLoader object>), id_provider_response_handler=None, tcp_keep_alive=True, socket_options=[(6, 1, 1), (1, 9, 1), (6, 4, 60), (6, 5, 60), (6, 6, 3)], correlation_id=None, app_name=None)[source]

Create an ApiClientFactory which can build api objects with a configured ApiClient object

Parameters:
  • config_loaders (Iterable[ConfigurationLoader], optional)

  • from. (An Iterable of ConfigurationLoaders we can load configuration)

  • wins) (Config settings are updated by each loader (last write)

:param : :param by default default_config_loaders: :param : :param by default default_config_loaders: :param id_provider_response_handler: :type id_provider_response_handler: Callable[[Response], None], optional :param A function that is called when a response is received from the token_url: :param : :param by default None: :param tcp_keep_alive: :type tcp_keep_alive: bool, optional :param Should ApiClient be configured to send tcp keep alives: :param by default True: :param socket_options: :type socket_options: Optional[ Union[Tuple[Any, Any, Any], Tuple[Any, Any, None, int]] ], optional :param Set of socket options that should be applied to each connection: :param : :param by default keep_alive_socket_options: :param correlation_id: :type correlation_id: Optional[str], optional :param A correlation ID that can be sent with each request: :param by default None: :param app_name: :type app_name: Optional[str], optional :param The name of the application in LUSID: :param by default None:

Methods

build

Returns an instance of the api metaclass with a configured ApiClient

build(metaclass)[source]

Returns an instance of the api metaclass with a configured ApiClient

Return type:

TypeVar(T)

Parameters:

metaclass (Type[T]) – A lusid.api class.

Returns:

An instance of the lusid.api class with a configured ApiClient

Return type:

T