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 #8

Open
Seifter75 opened this issue Feb 28, 2022 · 3 comments
Open

Error #8

Seifter75 opened this issue Feb 28, 2022 · 3 comments

Comments

@Seifter75
Copy link

Hallo
Run the code and have this error:

PS C:\Users\xxxx\python\VENV\pancakeswapBot> py sell.py True 76443049999999970 0.07644304999999997 Enter the Contract Address of token you want to sell: 0x7a27f05f1f67bd0803e082FcDEF361C562B3851b Traceback (most recent call last): File "C:\Users\xxxxxx\python\VENV\pancakeswapBot\sell.py", line 46, in <module> readable = web3.fromWei(balance) TypeError: from_wei() missing 1 required positional argument: 'unit'

Do you have a solution?
Regards

@CodeWithJoe2020
Copy link
Owner

CodeWithJoe2020 commented Feb 28, 2022 via email

@Seifter75
Copy link
Author

Thanks,now work perfectly,buy and sell.
I have others two question,
1)is it possible receive in real time the token price from the web3 library?
I want do a function that buy or sell when the price hit the target value
2) now set gwei but is possible set fee in %.
Thanks for your work!
Regards

@CodeWithJoe2020
Copy link
Owner

CodeWithJoe2020 commented Feb 28, 2022 via email

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