Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when I run main.py #1

Open
rolandweb3 opened this issue Dec 3, 2024 · 1 comment
Open

Error when I run main.py #1

rolandweb3 opened this issue Dec 3, 2024 · 1 comment

Comments

@rolandweb3
Copy link

I got this error message

"ImportError: cannot import name 'Binance' from 'binance'"

I have already installed binance python

@yeong-hwan
Copy link
Owner

@rolandweb3

Thank you for your interest.
The Binance API should be used as follows:

/private/private_key.py

DISCORD = {
    'CHANNEL_ID': "{your_channel_id}",
    'BOT_TOKEN': "{your_bot_token}"
}

RSA = {
    'ENCRYPT_KEY': b'{your_encrypt_key}',
    'ACCESS': "{your_access_key}",
    'SECRET': "{your_secret_key}"
}

/private/supertrend-cloud.pem

-----BEGIN RSA PRIVATE KEY-----
{yours}
-----END RSA PRIVATE KEY-----

Have you tried it yet?

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

No branches or pull requests

2 participants