Bitcoin Forum
April 27, 2024, 02:45:41 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchaininfo API issue  (Read 79 times)
simnet (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 10, 2023, 07:35:15 AM
Last edit: July 10, 2023, 07:51:57 PM by simnet
 #1

Hi colleagues. I use the "Blockchaininfo" as a source of the current BTC/USD rate in electrum. Usually, the info changes once a min or so. But now, I see the rate is not changing for the last 2 days at least. If I change the source to the Coinbase or Kraken, everything goes fine, the data changes dynamically. What could this be? The wallet version is 4.1.5

p.s. Please advice what rate data source (from the electrum preinstalled list) is more close to the market average
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
1714229141
Hero Member
*
Offline Offline

Posts: 1714229141

View Profile Personal Message (Offline)

Ignore
1714229141
Reply with quote  #2

1714229141
Report to moderator
Charles-Tim
Legendary
*
Offline Offline

Activity: 1526
Merit: 4815



View Profile
July 10, 2023, 07:52:11 AM
 #2

What could this be? The wallet version is 4.1.5
Update your Electrum. The latest version is 4.4.5. Update it and see if there would be changes.

https://electrum.org/#download

p.s. Please advice what rate data source (from the electrum preinstalled list) is more close to the market average
The BTC/USD rate data source
You can use any. Exchanges do not have the same bitcoin price, there will always be slightly little difference in price. Use the one that you prefer.

.
HUGE
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5539


Self-proclaimed Genius


View Profile
July 10, 2023, 09:38:03 AM
Merited by pooya87 (3)
 #3

But now, I see the rate is not changing for the last 2 days at least. If I change the source to the Coinbase or Kraken, everything goes fine, the data changes dynamically. What could this be? The wallet version is 4.1.5
Electrum are querying the fiat price from those API/Exchanges using this code.
github.com/spesmilo/electrum/blob/master/electrum/exchange_rate.py#L273-L277
The sources are same in versions 4.4.5 and 4.1.5.

From it, Blockchain, Coinbase and Kraken's USD tickers are very close to each other and all of them periodically update (tickers used by Electrum):

I'm not sure what's causing the issue but if there's a connection error to the API, the fiat value would've been unavailable.
But if you check Blockchain.info's market price chart, it's quite stable within these past two days.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
simnet (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 10, 2023, 10:21:34 AM
Last edit: July 10, 2023, 11:30:58 AM by simnet
 #4

Thanks to everyone for the explanations, it seems that the information has unfrozen and started to change normally.

Update your Electrum. The latest version is 4.4.5. Update it and see if there would be changes.
4.1.5 is the last version supporting win7 I use

I'm not sure what's causing the issue but if there's a connection error to the API, the fiat value would've been unavailable.
Yes, I understand this, the rate field would be unavailable if the connection failed, but in this case the fiat value remains visible and the same withing 2 days. This is strange
Yamane_Keto
Sr. Member
****
Offline Offline

Activity: 462
Merit: 477



View Profile WWW
July 10, 2023, 05:38:52 PM
 #5

Hi colleagues. I use the "Blockchaininfo" as a source of the current BTC/USD rate in electrum.
Perhaps the reason for this is due to blockchain.info blockchain.info API down?

Quote
Unfortunately, we have stopped issuing new Wallet API keys and cannot provide any specific time frame for when they will become available again. We sincerely apologize for any inconvenience caused.

According to WBM, at least on the 15th of April you were still able to sign up for an API key[1], but somewhere between that date and 2nd of June the website became unavailable. Perhaps they have disabled the API signup page and now you have to be registered in order to get an API key? They do mention that on their documentation[2] page.

[1]https://web.archive.org/web/20230415162458/https://api.blockchain.info/customer/signup
[2]https://exchange.blockchain.com/api/#to-get-started

 don't know, but the problem is not related to electrum, so we can't expect good API from blockchain.info. Just stop using them.

.BEST.CHANGE..███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2943


Block halving is coming.


View Profile WWW
July 10, 2023, 11:52:37 PM
 #6

Are you running a VPN while using Electrum?

If it happens just 2 days ago the reason might be due to a recent cloud flare issue if I'm right that blockchain.info use Cloudflare.

There is someone on the Cloudflare forum who experience issue while using the blockchain.info API below since CloudFlare become aggressive recently after maintenance this might be the cause why BTC/USD is not changing normally.

- https://community.cloudflare.com/t/blockchain-info-checking-if-the-site-connection-is-secure/478914/2

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!