PyHodl  0.2.7
Framework to download, update, analyze and plot your crypto-transactions. Completely off-line and security-oriented.
pyhodl.data.tables.DatetimeTable Class Reference
Inheritance diagram for pyhodl.data.tables.DatetimeTable:
Collaboration diagram for pyhodl.data.tables.DatetimeTable:

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
 

Detailed Description

Get content from file and load a datetime-based database 

Constructor & Destructor Documentation

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.

Member Function Documentation

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

Member Data Documentation

pyhodl.data.tables.DatetimeTable.content
pyhodl.data.tables.DatetimeTable.dates
pyhodl.data.tables.DatetimeTable.max_error

The documentation for this class was generated from the following file: