Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Error 403 binance API #48

Open
Fungraphic opened this issue Mar 16, 2021 · 6 comments
Open

Error 403 binance API #48

Fungraphic opened this issue Mar 16, 2021 · 6 comments

Comments

@Fungraphic
Copy link

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

@stevegwh
Copy link

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.

@sguntaka98
Copy link

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

@fabrixpo
Copy link

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

@RocketRene
Copy link

Same here

@jbiju94
Copy link

jbiju94 commented May 22, 2021

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?

@machichiotte
Copy link

machichiotte commented Jul 12, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants