PyHodl
0.2.7
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
|
Public Member Functions | |
def | __init__ (self, input_file, max_error_search) |
def | get_content (self) |
def | get_values_on (self, date_time) |
def | get_values_on_dates (self, dates) |
def | get_values_between (self, since, until) |
Public Attributes | |
content | |
dates | |
max_error | |
Get content from file and load a datetime-based database
def pyhodl.data.tables.DatetimeTable.__init__ | ( | self, | |
input_file, | |||
max_error_search | |||
) |
:param input_file: str File with database to model :param max_error_search: float When searching for date, returns nearest date found if within max error. Should be measured in seconds.
def pyhodl.data.tables.DatetimeTable.get_content | ( | self | ) |
def pyhodl.data.tables.DatetimeTable.get_values_between | ( | self, | |
since, | |||
until | |||
) |
:param since: datetime Get values since this date :param until: datetime Get values until this date :return: generator of {} Get all values if key is date in between
def pyhodl.data.tables.DatetimeTable.get_values_on | ( | self, | |
date_time | |||
) |
:param date_time: datetime Date to get values of :return: {} Value on date
def pyhodl.data.tables.DatetimeTable.get_values_on_dates | ( | self, | |
dates | |||
) |
:param dates: [] of datetime List of dates to fetch :return: [] of float List of values in dates
pyhodl.data.tables.DatetimeTable.content |
pyhodl.data.tables.DatetimeTable.dates |
pyhodl.data.tables.DatetimeTable.max_error |