PortaraTicker#
- class qf_lib.common.tickers.tickers.PortaraTicker(ticker: str, security_type: SecurityType, point_value, currency: str | None = None)[source]#
Bases:
TickerRepresentation 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).
currency (Currency) – ISO code of the currency of the ticker. Example “USD”.
- classmethod from_string(ticker_str: str | Sequence[str], security_type: SecurityType = SecurityType.STOCK, point_value: int = 1, currency: str | None = None) PortaraTicker | Sequence[PortaraTicker][source]#
Allows creation of a ticker from a string