eprbell / rp2

Privacy-focused, free, open-source cryptocurrency tax calculator for multiple countries: it handles multiple coins/exchanges and computes long/short-term capital gains, cost bases, in/out lot relationships/fractioning, and account balances. It supports FIFO, LIFO, HIFO and it outputs in form 8949 format. It has a programmable plugin architecture
https://pypi.org/project/rp2/
Apache License 2.0
273 stars 43 forks source link

Spot_price in INTRA-Transation required when marked as optional in documentation. #128

Closed haavardf closed 2 months ago

haavardf commented 2 months ago

From documentation:

INTRA-Transaction Table Format .... .... spot_price (optional): value of 1 unit of the given cryptocurrency at the time the transaction occurred. Sometimes if fee is zero, exchanges don't provide this value.

Error: File "/home/haavard/RP2-dev/rp2/src/rp2/configuration.py", line 480, in type_check_decimal raise RP2TypeError(f"Parameter '{name}' has non-RP2Decimal value {repr(value)}") rp2.rp2_error.RP2TypeError: Parameter 'spot_price' has non-RP2Decimal value None

My config file: [intra_header] timestamp = 0 from_exchange = 1 from_holder = 2 to_exchange = 3 to_holder = 4 asset = 5 spot_price = 6 crypto_sent = 7 crypto_received = 8 notes = 10

haavardf commented 2 months ago

My mistake, I had one row with missing data in my in table, nothing to do with intra. Sorry about the spam.