list icon indicating copy to clipboard operation
list copied to clipboard

Error 403 binance API

Open Fungraphic opened this issue 3 years ago • 6 comments

hello, i just tried your portfolio and i have a binance error. It seems to me that binance has made an update. Could this be the problem? Capture d’écran_2021-03-16_14-06-06

Fungraphic avatar Mar 16 '21 13:03 Fungraphic

After researching it seems that Binance blacklists the IP addresses of the Google servers that Google Sheets uses to make the request. No idea how it could be fixed.

stevegwh avatar Mar 24 '21 17:03 stevegwh

I have the same issue, does anyone have a fix for this?

sguntaka98 avatar Apr 18 '21 04:04 sguntaka98

Same here... and have no idea on how to fix.

fabrixpo avatar Apr 18 '21 17:04 fabrixpo

Same here

RocketRene avatar May 22 '21 01:05 RocketRene

Happen to find this -

When Apps Script runs a script, the script is assigned to one of the Google Cloud nodes. This notes makes an outbound IP connection to fetch the data from Binance. When one node (ip address) is generating to much traffic on Binance it may get banned for a period of time. Luckily, Google has a large pool of IP addresses for Apps Script. Let's all treat these lovely APIs with RESPECT and don't hammer them to hard to avoid bans. If you write your own scripts, try using the Google Cache Service when possible. source

Can we migrate to App Script with Google Cache Service? is it possible?

jbiju94 avatar May 22 '21 05:05 jbiju94

In Apps Script, go to Settings -> enable manifest "appscript.json" Go back to your editor, you should see appscript.json in your files. Open this manifest.

After runtimeVersion in the manifest, add this : "urlFetchWhitelist": [ "https://api.binance.com/", "https://api1.binance.com/", "https://api2.binance.com/", "https://api3.binance.com/", "https://fapi.binance.com/", "https://dapi.binance.com/", "https://pro-api.coinmarketcap.com/v1/", "https://api.kraken.com/0/private/", "https://api.kucoin.com/api/v1/accounts/" ] Remove kraken/kucoin if not needed

machichiotte avatar Jul 12 '21 17:07 machichiotte