Files
OpenBB/openbb_terminal/etf/etf_helper.py
James Maslek 274d5c4078 Clean UP ETF for next version (#3110)
* Fix things for 2p0

* tests
2022-10-27 11:54:28 -04:00

22 lines
390 B
Python

"""ETF Helper module."""
__docformat__ = "numpy"
import yfinance as yf
def get_quote_type(symbol: str) -> str:
"""Get the quote type of the symbol.
Parameters
----------
symbol : str
Ticker to check.
Returns
-------
str
Returns the quote type of the symbol.
"""
quote_type = yf.Ticker(symbol).info["quoteType"]
return quote_type