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

Getting error from 'iloss_simulate' function #7

Open
tong-zipmex opened this issue Sep 20, 2021 · 1 comment
Open

Getting error from 'iloss_simulate' function #7

tong-zipmex opened this issue Sep 20, 2021 · 1 comment

Comments

@tong-zipmex
Copy link

I copy and run this code

import defi.defi_tools as dft
dft.value_f, iloss = dft.iloss_simulate('cake','bnb', value=1000, base_pct_chg=50, quote_pct_chg=-25)

TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Last month it's worked. But now.

Any update Please help.

Thanks a lot.

@gauss314
Copy link
Owner

gauss314 commented Nov 3, 2021

The library is already updated, there was a change in the pancakeswap API that I already implemented

you must reinstall the defi package

pip uninstall defi
pip install defi

this should work

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