Skip to content

Cryptocompare - tfr_val_mean - No data returned #15

Open
@nicklatin

Description

data_req = DataRequest(source='cryptocompare',
tickers=tickers,
fields=['tfr_val_mean'],
freq='d')


Exception Traceback (most recent call last)
Cell In [565], line 1
----> 1 cc_tfr_val_df = GetData(data_req).get_series()

File ~/projects/systamental/cryptodatapy/src/cryptodatapy/extract/getdata.py:220, in GetData.get_series(self, method)
218 ds = ds()
219 # get data
--> 220 df = getattr(ds, method)(self.data_req)
222 return df

File ~/projects/systamental/cryptodatapy/src/cryptodatapy/extract/data_vendors/cryptocompare_api.py:838, in CryptoCompare.get_data(self, data_req)
836 # check if df empty
837 if df.empty:
--> 838 raise Exception('No data returned. Check data request parameters and try again.')
840 # filter df for desired fields and sort index by date
841 fields = [field for field in data_req.fields if field in df.columns]

Exception: No data returned. Check data request parameters and try again.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions