Tell us what’s happening:
Please help with the crypto link I am new to this topic and the link used in tutorial is not working .
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Challenge Information:
Data Analysis with Python - Jupyter Notebooks Importing and Exporting Data
ILM
June 13, 2024, 8:00am
2
what crypto link? the exercise links work
The link used to take data in video for jupyter notebooks importing and exporting data is showing 401 error when running on my own.
ILM
June 13, 2024, 12:48pm
4
use the Notebooks on Github
link below the video
How can I resolve this error.
ILM
June 13, 2024, 1:48pm
6
you can’t, that link doesn’t work
Is there other link which I can use and practice the concept ?
ILM
June 13, 2024, 6:35pm
8
you can get data from places like kaggle or notebooks linked below the videos
Karajna
November 25, 2024, 10:24am
9
Hi all, I managed to get the code to work by using the Kraken API instead of the Cryptowatch one (as Kraken basically took over Cryptowatch from what I understand).
My code below:
def get_historic_price(symbol, exchange=‘kraken’, after=‘2018-09-01’):
url = ‘https://api.kraken.com/0/public/OHLC?pair=BTCUSD ’
resp = requests.get(url, params={
‘periods’: ‘3600’,
‘after’: str(int(pd.Timestamp(after).timestamp()))
})
print(after)
resp.raise_for_status()
data = resp.json()
df = pd.DataFrame(data['result'],['3600'], columns=[
'CloseTime', 'OpenPrice', 'HighPrice', 'LowPrice', 'ClosePrice', 'Volume', 'NA'
])
df['CloseTime'] = pd.to_datetime(df['CloseTime'], unit='s')
df.set_index('CloseTime', inplace=True)
return df
print(df)