PortaraTicker

class qf_lib.common.tickers.tickers.PortaraTicker(ticker: str, security_type: SecurityType, point_value)[source]

Bases: Ticker

Representation of Portara tickers.

Parameters:
  • ticker (str) – identifier of the security, e.g. ‘SI2012Z’. The naming convention used to generate the data in Portara should be the “SymYYYYM”.

  • security_type (SecurityType) – denotes the type of the security, that the ticker is representing e.g. SecurityType.STOCK for a stock, SecurityType.FUTURE for a futures contract etc.

  • point_value (int) – size of the contract as given by the Portara (e.g. 50 for Silver future contracts).

Methods:

from_string(ticker_str[, security_type, ...])

Allows creation of a ticker from a string

classmethod from_string(ticker_str: Union[str, Sequence[str]], security_type: SecurityType = SecurityType.STOCK, point_value: int = 1) Union[PortaraTicker, Sequence[PortaraTicker]][source]

Allows creation of a ticker from a string