-
Notifications
You must be signed in to change notification settings - Fork 87
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
Comments
use this
readable = web3.fromWei(balance, 'ether')
…On Mon, Feb 28, 2022 at 1:31 PM Seifter75 ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#8>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR46X4KUHYTBAOPC6II2YALU5NTKNANCNFSM5PQ6VJ4A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks,now work perfectly,buy and sell. |
you can not get the token price from web3
you need to get the token price from where the token is being traded, for
example pancakeswap or uniswap etc..
and no you cannot set the gas price in % because gasprice is set by the
network you are using
…On Mon, Feb 28, 2022 at 5:35 PM Seifter75 ***@***.***> wrote:
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
—
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR46X4IHXRT6ISCNJIV3IA3U5OP65ANCNFSM5PQ6VJ4A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: