wow... I can't believe I found someone who explains this in such a way that I can understand it and reproduce it! every other video I've watched always goes out of their way to make the most complicated requests, when all I need is something so basic like obtain 1 or 2 cryptos! Thank you! you made my day!
Thanks for this video! I'm a complete novice and was hoping you could give me some help. When I run the code I get an error, coins = json['data'] KeyError: 'data' Any guidance on getting around this would be appreciated
if I try to run this in a loop it will only return the price of a currency at the point in which I ran the code, I am using scheduler to use schedule.run.every.... ext, however whenever it runs every 5 minutes the the only value returned is the price when I first ran the code, it never updates or changes. Any ideas?
What does this for x in coins: print(x["symbol"], x["quote"]["CHF"]["price"]) mean? Im new and I want to know what this "for x in coins" does. What is x? I dont quite understand.
Hi, I appreciate the great video. However, I am getting an error that python says... "AttributeError: module 'apikey' has no attribute 'key'" Do you know what might cause the error? Thank you,
Make sure you import you "key file" into your "main" file #List this on top at the top >>> from 'fileThatContainsKey' import 'keyVarName' #Atlernative >>>from 'fileThatContainsKey' import * You can do it how @mikemaster_ has said, however you are giving away your private key in your source code. The only reason to keep you key in a separate file is to not expose your private key to anyone. Also these files must be placed in the same directory.
Please work on your voice. It's extra husky in the video causing discomfort while listening. Sound it clear without extra breathing and husky noises we hear usually in Hollywood late night romantic movies.