Тёмный
No video :(

How to Use an API in Python to get Bitcoin's Price Live - Along with other Cryptocurrencies 

Coding Under Pressure
Подписаться 7 тыс.
Просмотров 41 тыс.
50% 1

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 45   
@agustinbmed
@agustinbmed 2 года назад
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!
@statescustefan1396
@statescustefan1396 3 года назад
for x in coins : if x['symbol'] == 'BTC': print (x['symbol'], x['quote']['USD']['price'])
@cm3462
@cm3462 2 года назад
Yes, he skipped that step. Thanks for the comment.
@mesharibuhadi1437
@mesharibuhadi1437 3 года назад
Clearly passionate about the stuff u do man. Thanks for the tutorial. subbed and smashed like button.
@iwillhackthem7359
@iwillhackthem7359 2 года назад
I FINALLY UNDERSTAND APIS
@yanju6439
@yanju6439 3 года назад
Thank you! Simple and awesome
@ARCANEmateCLAN
@ARCANEmateCLAN 3 года назад
Any advice on how to call BTC price directly rather than pulling through a json of the top x coins?
@ARCANEmateCLAN
@ARCANEmateCLAN 3 года назад
Found out now, just need to use the url ending in /quotes/latest and call the id, symbol or slug parameter.
@RP_SVN9
@RP_SVN9 3 года назад
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
@AchuVlogs
@AchuVlogs 3 года назад
Im getting an error called "AttributeError: module 'apikey' has no attribute 'key'" Could you please let me know the fix?
@muxman2949
@muxman2949 3 года назад
@Everest Galbraith im in the same problem
@thxyves8468
@thxyves8468 3 года назад
BOOM! ;-) It's exactly what I was searching for these days... Very good video and efficient code. Thanks, man!
@cademiller4934
@cademiller4934 2 года назад
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?
@oyinbra
@oyinbra 2 года назад
This is amazing. Thanks. Is there a way I can use this to update a Table in Notion.
@davidguevara_
@davidguevara_ 3 года назад
in the api key file, what is written?
@codingunderpressure7818
@codingunderpressure7818 3 года назад
Just a variable with the value being my key
@davidguevara_
@davidguevara_ 3 года назад
@@codingunderpressure7818 thanks for answering, i guessed that and when i run it if it worked hahaha thanks for the video, very useful
@AlbertvanEe
@AlbertvanEe 2 года назад
Hi I have a API key how can i (test ) see my link in the browser? (so that it is the complete loink?
@gerakore8948
@gerakore8948 2 года назад
can you specify a specific list of crypto instead?
@PrintEngineering
@PrintEngineering Год назад
For anyone wondering the free version allows about 1 call every 5min
@suissegarantiegaming2100
@suissegarantiegaming2100 2 года назад
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.
@adam_bks5394
@adam_bks5394 2 года назад
c'est une boucle qui va prendre les informations du fichier json dans chaque "sous dossier"
@earlobeheard
@earlobeheard Год назад
what version of python are you using?
@NeoVirusOfficial
@NeoVirusOfficial 2 года назад
Is it possible to implement this on Django and have real-time charts (1m, 5m, 1d, etc.) like in Tradingview ?
@yhzaitutorials6668
@yhzaitutorials6668 3 года назад
How can I make it to send a message everytime the price of BTC change?
@2MuchSwag4Wow
@2MuchSwag4Wow 3 года назад
Can you please post the code on github?
@ঋতুপর্ণা
@ঋতুপর্ণা 5 месяцев назад
Thanks a lot🙂
@JonnyRootsDem
@JonnyRootsDem 3 года назад
That was really helpful, thanks
@KhalilYasser
@KhalilYasser 3 года назад
Amazing. Thank you very much.
@A5mis
@A5mis 3 года назад
brilliant, thank you !
@donkeyschat5052
@donkeyschat5052 3 года назад
Thanks for the great video. Is code on Github? If so, where do I find it?
@lash5856
@lash5856 2 года назад
thanks man, i loved it :)
@dexterjameslente3433
@dexterjameslente3433 2 года назад
how to get the day change too
@GurwinderSingh-ol2ku
@GurwinderSingh-ol2ku 2 года назад
Could you please share code? I will be thankful for this
@Togglism
@Togglism 2 года назад
10,000th view! Thanks for the video :)
@NJNJNJNJNJNJNJ
@NJNJNJNJNJNJNJ 2 года назад
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,
@mikaelkortbaoui8785
@mikaelkortbaoui8785 2 года назад
I fixed it by writting 'X-CMC_PRO_API_KEY' : 'insertYourPersonnalKeyHere',
@infracted6810
@infracted6810 2 года назад
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.
@otrebor7631
@otrebor7631 2 года назад
hi , please create a video like this in C# console. thanks in advance
@user-kh8fw8so5l
@user-kh8fw8so5l Год назад
don't chew a gum while recording pls, video itself is amazing tho!
@Semicile17
@Semicile17 11 месяцев назад
Someone , whats with that apikey file . Somebody explaim
@shreyashibansal9069
@shreyashibansal9069 2 года назад
Can you post this on github?
@fahadiqbaal
@fahadiqbaal 10 месяцев назад
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.
@codingunderpressure7818
@codingunderpressure7818 10 месяцев назад
Get over it
@cryptoku3462
@cryptoku3462 3 года назад
its possible for whatsapp?
Далее
The Most Legendary Programmers Of All Time
11:49
Просмотров 553 тыс.
Oh No! My Doll Fell In The Dirt🤧💩
00:17
Просмотров 12 млн
Bilasizmi?
00:12
Просмотров 422 тыс.
Always Check for the Hidden API when Web Scraping
11:50
Modern Python logging
21:32
Просмотров 180 тыс.
Properly Load & Manage API Keys in Python
7:58
Просмотров 24 тыс.
Predicting Crypto Prices in Python
31:31
Просмотров 129 тыс.
The Biggest Mistake Beginners Make When Web Scraping
10:21
Oh No! My Doll Fell In The Dirt🤧💩
00:17
Просмотров 12 млн