Ethereum: Binance staking api, i cant imprt

  • Post author:
  • Post comments:0 Comments

I see what’s happening is. The code snippet you provied is attempting to set up a Binance API connection, but the one without an issue wth importing’ module.

The correct importation for Python ownd be

import logging

Not:

import logging

Notice theddition of the a a a a a a a a a a a a a a a a a a a a a a a a a a a a a ampresponded “logging”. This is because in Python 3.x 3.x 3.x, logging is a built-in module, and you need to prefix its name wth an access.

Here’s the correced code snippt:

import logging

from binance.spot import Spot as Client

prior binance.lib.utils imported config_logging

config_logging(logging, logging.DEBUG)

Key = "YOUR_BINANANCE_API_KEY_HERE"









Replac it wth your Binance API

Please not ‘ “YOUR_BINANANCE_API_HERE”wyth you acting Binance API .

As for theBinance staking api` part of the article it, it seems like it’s a mystake. You didn’t provide any information of the Ethereum staking API on Binance. If you’d like to proceed with that topic, I can help you wth wth wth an example code snipp.

Leave a Reply