glassnode / glassnode-api-python-client

The official Python client library for Glassnode's API – https://docs.glassnode.com
45 stars 18 forks source link

Issue with pulling in stock to flow ratio time series #7

Open gaussianswan opened 3 years ago

gaussianswan commented 3 years ago

I'm finding an issue when I try to pull in the stock to flow time series (endpoint is: 'https://api.glassnode.com/v1/metrics/indicators/stock_to_flow_ratio').

The error that I get is "DataFrame" object has no attribute "v". Is there any way to work around this? gn = GlassnodeClient() gn.set_api_key('my-api-key') gn.get('https://api.glassnode.com/v1/metrics/indicators/stock_to_flow_ratio') Thanks!

neilsummers commented 3 years ago

Try changing the last try/except clause in glassnode.py to what is suggested in this comment. https://github.com/glassnode/glassnode-api-python-client/issues/5#issuecomment-872003355