sdk.lusid.extensions.proxy_config.ProxyConfig

class ProxyConfig(address, username=None, password=None)[source]

This class is used to hold the proxy configuration details

Parameters:
  • address (str) – The address of the proxy including the port e.g. https://myproxy.com:8080

  • username (str) – The username for the proxy

  • password (str) – The password for the proxy

Attributes

This is a Pydantic class. For now, click on the green [source] link in the class signature above to see descriptions/allowed values for these attributes.

address

headers

Return Proxy auth headers

password

username

Methods

format_proxy_schema

Takes the proxy details and converts them into a dictionary format to be used with other libraries e.g. requests.

format_proxy_schema()[source]

Takes the proxy details and converts them into a dictionary format to be used with other libraries e.g. requests

Returns:

dict: A dictionary with the http and https proxy details including username and password

property headers: Dict[str, str]

Return Proxy auth headers

Returns:

Proxy auth headers

Return type:

Any