Skip to content

Getting error from 'iloss_simulate' function #7

@tong-zipmex

Description

@tong-zipmex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions