JacobA2000 / Rainmeter-MinimalCryptoTracker

A rainmeter skin to display the current price and 24hr change of a specified cryptocurrency using the binance public api.
13 stars 1 forks source link

API Blocked #7

Open GameEnder opened 1 year ago

GameEnder commented 1 year ago

The API for binance is now blocked in United States, Malaysia, and Ontario. Not sure if there is any work around but I just wanted you make you aware.

endofwed commented 1 year ago

Stopped working for me as well. This is such a wonderful tool, hope it gets resolved!

endofwed commented 1 year ago

The API for binance is now blocked in United States, Malaysia, and Ontario. Not sure if there is any work around but I just wanted you make you aware.

If anyone is using this, here is the solution:

After testing a bit, it seems like you can simply replace ".com" with ".us" to make this work again, e.g. instead of running an API call to URL=https://api.binance.com/api/v3/ticker/24hr?symbol=#TradeSymbol1#, change it to URL=https://api.binance.us/api/v3/ticker/24hr?symbol=#TradeSymbol1#

seamonkey420 commented 8 months ago

The API for binance is now blocked in United States, Malaysia, and Ontario. Not sure if there is any work around but I just wanted you make you aware.

If anyone is using this, here is the solution:

After testing a bit, it seems like you can simply replace ".com" with ".us" to make this work again, e.g. instead of running an API call to URL=https://api.binance.com/api/v3/ticker/24hr?symbol=#TradeSymbol1#, change it to URL=https://api.binance.us/api/v3/ticker/24hr?symbol=#TradeSymbol1#

in addition to this, you will also need to edit the config ini files and remove prevClose from the reg exp, just do a fine for ,"prevClosePrice":".*" and delete it, it will finally parse data properly.