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

Bases: qf_lib.common.tickers.tickers.Ticker

Representation of Portara tickers.

  • 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).


from_string(ticker_str, Sequence[str]], …)

Allows creation of a ticker from a string

classmethod from_string(ticker_str: Union[str, Sequence[str]], security_type: qf_lib.common.enums.security_type.SecurityType = <SecurityType.STOCK: 'STK'>, point_value: int = 1) → Union[qf_lib.common.tickers.tickers.PortaraTicker, Sequence[qf_lib.common.tickers.tickers.PortaraTicker]][source]

Allows creation of a ticker from a string