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, base_url=BASE_URL, tor=False) |
def | download (self, url) |
def | get_market_cap (self, since, until) |
def | get_coin_stats (self, coin, since, until) |
def | get_price (self, coins, date_time, kwargs) |
def | get_raw_prices (self, coins, kwargs) |
def | get_prices (self, coins, kwargs) |
Public Member Functions inherited from pyhodl.api.price.models.PricesApiClient | |
def | get_price (self, coins, date_time, kwargs) |
def | get_prices_by_date (self, coins, dates, kwargs) |
def | get_prices (self, coins, kwargs) |
Public Member Functions inherited from pyhodl.api.models.AbstractApiClient | |
def | __init__ (self, base_url) |
Public Member Functions inherited from pyhodl.logs.Logger | |
def | __init__ (self) |
def | log (self, content) |
Public Member Functions inherited from pyhodl.api.models.TorApiClient | |
def | __init__ (self, tor=False) |
def | download (self, url) |
Static Public Attributes | |
string | BASE_URL = "https://graphs.coinmarketcap.com/" |
list | AVAILABLE_FIAT = [Coin("USD")] |
TIME_FRAME = timedelta(minutes=5) | |
Additional Inherited Members | |
Public Attributes inherited from pyhodl.api.models.AbstractApiClient | |
base_url | |
Public Attributes inherited from pyhodl.logs.Logger | |
class_name | |
Public Attributes inherited from pyhodl.api.models.TorApiClient | |
tor | |
Get coinmarketcap.com APIs data
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.__init__ | ( | self, | |
base_url = BASE_URL , |
|||
tor = False |
|||
) |
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.download | ( | self, | |
url | |||
) |
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.get_coin_stats | ( | self, | |
coin, | |||
since, | |||
until | |||
) |
:param coin: str Coin to fetch :param since: datetime Get data since this date :param until: datetime Get data until this date :return: {} Coin stats
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.get_market_cap | ( | self, | |
since, | |||
until | |||
) |
:param since: datetime Get data since this date :param until: datetime Get data until this date :return: {} <datetime -> float> Each dict key is date and its value is the market cap at the date
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.get_price | ( | self, | |
coins, | |||
date_time, | |||
kwargs | |||
) |
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.get_prices | ( | self, | |
coins, | |||
kwargs | |||
) |
def pyhodl.api.price.coinmarketcap.CoinmarketCapClient.get_raw_prices | ( | self, | |
coins, | |||
kwargs | |||
) |
:param coins: [] of str Coins to fetch :param kwargs: ** Additional args :return: {} Each key is a coin; each value is a list of dict with date and coin price.
|
static |
|
static |
|
static |