mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
22 lines
390 B
Python
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
|