systamental / cryptodatapy

CryptoDataPy is a python library that makes it easy to build high quality data pipelines for the analysis of cryptoassets
Apache License 2.0
11 stars 4 forks source link

add 'get_top_mkt_cap' method to 'get_meta' method' in GetData class valid methods list #8

Closed nicklatin closed 3 months ago

nicklatin commented 2 years ago

AttributeError Traceback (most recent call last) Input In [60], in <cell line: 1>() ----> 1 GetData(data_req).get_meta(method='get_top_mkt_cap_info')

File ~/opt/anaconda3/envs/systamental/lib/python3.9/site-packages/cryptodatapy/extract/getdata.py:144, in GetData.get_meta(self, attr, method, kwargs) 142 meta = getattr(ds, method)(kwargs) 143 else: --> 144 raise AttributeError( 145 f"Select a valid attribute or method. Valid attributes: {valid_attr}." 146 f" Valid methods include: {valid_meth}." 147 ) 149 return meta

AttributeError: Select a valid attribute or method. Valid attributes: ['source_type', 'categories', 'exchanges', 'indexes', 'assets', 'markets', 'market_types', 'fields', 'frequencies', 'base_url', 'api_key', 'max_obs_per_call', 'rate_limit']. Valid methods include: ['get_vendors_info', 'get_exchanges_info', 'get_indexes_info', 'get_assets_info', 'get_markets_info', 'get_fields_info', 'get_frequencies_info', 'get_rate_limit_info', 'get_news_sources', 'get_news', 'get_top_market_cap_info', 'get_onchain_tickers_list'].

nicklatin commented 3 months ago

Resolved in upgrade to v0.2.3