Skip to content

Negative fees (rare, but do exist). #143

Description

@janigro

I’m new to this awesome software (rp2_es), but I’m having trouble using negative fees. Some exchanges, when operating perpetual futures, may provide a negative fee (i.e., they pay you instead of charging you). However, when I try to enter the profit/loss of a trade, negative fees are not accepted:

rp2.rp2_error.RP2ValueError: Parameter 'crypto_fee' has non-positive value -0.00010

I suppose I could add a separate row and treat the fee as a BUY, but I’m not sure if that’s the correct way to handle this. Ideally (in my view), the fee cell should allow negative values.

Thank you for all the effort you put into this project!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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