Skip to content

Incorrect calculation for change #64

@i001962

Description

@i001962

diff = abs(curr_price - prev_price)

Should be current / pervious price
eg (using a df here so let me know this isn't clear)
df[token + "chance"].iloc[i] = str(float(df[token].iloc[i]) / float(df[token].iloc[i-1]))

@ssozuer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions