AlphaQuery#
Following methods are provided:
- class rug.alphaquery.AlphaQuery(symbol=None)#
AlphaQuery.com
- get_earnings()#
Returns earnings as time went in a list of tuples where first is a date and the second is earning value.
- Raises:
SymbolNotFound – In case the page doesn’t exist/returns error code or has no data.
DataException – In case data were found but are not JSON valid.
- Returns:
List of earnings including dates.
- Return type:
list
- get_eps()#
Returns eps for the given
self.symbol
as table rows (list of lists) where first row is table headers for comprehension. Rows are sorted chronologically.- Raises:
SymbolNotFound – In case the page doesn’t exist/returns error code or has no data.
DataException – In case data were found but are not in valid format - only one HTML table.
- Returns:
List of lists with earnings.
- Return type:
list
- get_revenues()#
Returns revenues as time went in a list of tuples where first is a date and the second is revenue value.
- Raises:
SymbolNotFound – In case the page doesn’t exist/returns error code or has no data.
DataException – In case data were found but are not JSON valid.
- Returns:
List of EPS including dates.
- Return type:
list