blpapi.ZfpUtil

class blpapi.ZfpUtil

Utility used to prepare SessionOptions for private leased lines.

The following snippet shows how to use ZfpUtil to start a Session:

tlsOptions = blpapi.TlsOptions.createFromFiles( ... )
sessionOptions = blpapi.ZfpUtil.getZfpOptionsForLeasedLines(
    blpapi.ZfpUtil.REMOTE_8194,
    tlsOptions)

sessionOptions.setAuthenticationOptions( ... )

session = blpapi.Session(sessionOptions)
session.start()
REMOTE_8194 = 8194
REMOTE_8196 = 8196
static getZfpOptionsForLeasedLines(remote, tlsOptions)

Creates a SessionOptions object for applications that leverage private leased lines to the Bloomberg network.

Parameters
  • remote (int) – Type of the remote to connect to

  • tlsOptions (TlsOptions) – Tls options to use when connecting

Returns

SessionOptions object for applications that leverage private leased lines to the Bloomberg network.

Return type

SessionOptions

Raises

Exception – If failed to obtain the session options

Note

The SessionOptions object is only valid for private leased line connectivity.

Note

This is a costly operation that is preferably called once per application.