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.
for x in coins :
if x['symbol'] == 'BTC':
print (x['symbol'], x['quote']['USD']['price'])
Yes, he skipped that step. Thanks for the comment.
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!
Clearly passionate about the stuff u do man. Thanks for the tutorial. subbed and smashed like button.
Any advice on how to call BTC price directly rather than pulling through a json of the top x coins?
Found out now, just need to use the url ending in /quotes/latest and call the id, symbol or slug parameter.
Im getting an error called "AttributeError: module 'apikey' has no attribute 'key'" Could you please let me know the fix?
@Everest Galbraith im in the same problem
I FINALLY UNDERSTAND APIS
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
Thank you! Simple and awesome
This is amazing. Thanks. Is there a way I can use this to update a Table in Notion.
what version of python are you using?
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?
Hi I have a API key how can i (test ) see my link in the browser? (so that it is the complete loink?
Is it possible to implement this on Django and have real-time charts (1m, 5m, 1d, etc.) like in Tradingview ?
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.
c'est une boucle qui va prendre les informations du fichier json dans chaque "sous dossier"
in the api key file, what is written?
Just a variable with the value being my key
@@codingunderpressure7818 thanks for answering, i guessed that and when i run it if it worked hahaha thanks for the video, very useful
can you specify a specific list of crypto instead?
For anyone wondering the free version allows about 1 call every 5min
10,000th view! Thanks for the video :)
How can I make it to send a message everytime the price of BTC change?
Can you please post the code on github?
Thanks for the great video. Is code on Github? If so, where do I find it?
how to get the day change too
BOOM! ;-) It's exactly what I was searching for these days... Very good video and efficient code. Thanks, man!
thanks man, i loved it :)
Amazing. Thank you very much.
That was really helpful, thanks
Could you please share code? I will be thankful for this
brilliant, thank you !
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,
I fixed it by writting 'X-CMC_PRO_API_KEY' : 'insertYourPersonnalKeyHere',
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.
Thanks a lot🙂
hi , please create a video like this in C# console. thanks in advance
Can you post this on github?
Someone , whats with that apikey file . Somebody explaim
don't chew a gum while recording pls, video itself is amazing tho!
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.
Get over it
its possible for whatsapp?