eprbell / dali-rp2

DaLI (Data Loader Interface) is a data loader and input generator for RP2 (https://pypi.org/project/rp2), the privacy-focused, free, open-source cryptocurrency tax calculator: DaLI removes the need to manually prepare RP2 input files. Just like RP2, DaLI is also free, open-source and it prioritizes user privacy.
https://pypi.org/project/dali-rp2/
Apache License 2.0
65 stars 42 forks source link

WARNING: Unrecognized Dividend: LUNA compensation. #193

Open ManBatSan opened 1 year ago

ManBatSan commented 1 year ago

So I'm getting this error with LUNA when trying to sync using REST and Binance_com from Spain. I bought some LUNA when it crashed an was delisted from many places, so that could also contribute to this mess.

I'm getting the following warning/error:

WARNING: Unrecognized Dividend: LUNA compensation. Please open an issue at https://github.com/eprbell/dali-rp2/issues

This is the config file I'm using:

# Data loaders
[dali.plugin.input.rest.binance_com]
account_holder = my_name
api_key = my_key
api_secret = my_secret
native_fiat = USD

[dali.plugin.pair_converter.ccxt]
historical_price_type = nearest
default_exchange = Gate
macanudo527 commented 1 year ago

"LUNA compensation" is INCOME? or STAKING? I would think staking.

This is an easy fix, you just need to add "LUNA compensation" here.

Add a new str variable with the name and then add to either _INCOME_LIST or _STAKING_LIST below it. It should work after that.

macanudo527 commented 1 month ago

Did this work? If it did, we can add it to the base code to help others.