Open josefansinger opened 3 years ago
adding below line to the bottom of glassnode.py, however this is not the optimal way to solve the issue.
try:
df = pd.DataFrame(json.loads(r.text))
df = df.set_index('t')
df.index = pd.to_datetime(df.index, unit='s')
df = df.sort_index()
s = pd.DataFrame()
for r, c in df.iterrows():
for k, v in c['o'].items():
s.loc[r, k] = v
return s
except Exception as e:
print(e)
OHLC returns
null
i.e.NoneType
.