Trying to insert a new ERC20 token and getting error
Traceback (most recent call last):
File "manage.py", line 16, in
It seems like the issue is occurring due to a restriction imposed by Binance. The traceback indicates that the API request made to Binance's service is being blocked because it's coming from a restricted location.
If token, you must check this code
for currency_id in coin_list:
# if currency_id in [USDT, BTC, TON, DOGE,PEPE,SHIB,FLOKI,MEME,BABYDOGE]:
if currency_id in [USDT, BTC, TON, DOGE,PEPE,MEME,CAKE]:
continue
currency = Currency.get(currency_id)
if not Keeper.objects.filter(currency=currency).exists():
k_password, keeper = keeper_create(currency)
gas_password, gas_keeper = keeper_create(currency, True)
to_write.append(f'{currency.code} Info')
to_write.append(f'Keeper address: {keeper.user_wallet.address}, Password: {k_password}')
to_write.append(f'GasKeeper address: {gas_keeper.user_wallet.address}, Password: {gas_password}')
to_write.append('='*10)
else:
to_write.append(f'{currency.code} Info')
to_write.append('Keeper and GasKeeper exists, see previous file')
to_write.append('=' * 10)
If token, you must check this code
for currency_id in coin_list: # if currency_id in [USDT, BTC, TON, DOGE,PEPE,SHIB,FLOKI,MEME,BABYDOGE]: if currency_id in [USDT, BTC, TON, DOGE,PEPE,MEME,CAKE]: continue currency = Currency.get(currency_id) if not Keeper.objects.filter(currency=currency).exists(): k_password, keeper = keeper_create(currency) gas_password, gas_keeper = keeper_create(currency, True) to_write.append(f'{currency.code} Info') to_write.append(f'Keeper address: {keeper.user_wallet.address}, Password: {k_password}') to_write.append(f'GasKeeper address: {gas_keeper.user_wallet.address}, Password: {gas_password}') to_write.append('='*10) else: to_write.append(f'{currency.code} Info') to_write.append('Keeper and GasKeeper exists, see previous file') to_write.append('=' * 10)
What must we check in that code?
It seems like the issue is occurring due to a restriction imposed by Binance. The traceback indicates that the API request made to Binance's service is being blocked because it's coming from a restricted location.
This is correct. Binance is region locked in many parts of the world. I fixed this by adding additional data sources, and adjust the call logic to ensure data if not call other data source. it's a bit slower initially, but once running no issues.