spot_price
definition in the input csv files
#129
Replies: 1 comment 14 replies
-
The The CCXT pair converter will 'route' the price to fiat. It will try to prioritize the exchange you made the purchase/sale at, but if that is not available will use the default exchange (currently Kraken). For example, if you make a trade for ETH in BTC. It will look up the price for ETH in BTC at that moment if the market exists on that exchange. Then find the price of BTC in the fiat you are using. ETH -> BTC -> USD The final fiat is determined by what version of Dali-rp2 you are using. For Dali_us it is USD and Dali_jp it is JPY. so if you are filing taxes in Japan and America, you will need to run the program twice with the same data but different entry points (dali_us and dali_jp). I hope that makes sense. |
Beta Was this translation helpful? Give feedback.
-
According to the docs the
spot_price
is defined as:I would guess this is meant to be the value in the paired coin/currency, but it is a bit find ambiguous so wanted to check. For example lets say I have a BUY line on a ETHBTC exchange, where I'm buying ETH and paying in BTC, I'd assume spot_price should be how much 1 ETH is worth in BTC, or is it perhaps how much 1 BTC is worth in ETH? With the column called
fiat_out_no_fee
, I'd assumespot_price
in this case wouldn't have anything to do with fiat, but looking at the definition for the fees:I'd say
spot_price
is supposed to be the fiat equivalent (i.e. in the first example, how much 1 ETH is worth in USD or JPY). If this is the case, then which fiat is supposed to be used or does it not matter so long as you always use one? I've got transactions from both USD and JPY accounts, so I'm not quite sure how this is supposed to be handled. Should I be looking up historical exchange rates myself and converting them all to one currency or can dali-rp2 handle this somehow?Also worth noting is that
spot_price
also appears in theintra_csv_file
. If I'm moving ETH from one account to another, what then doesspot_price
represent? Here again I'd guess it is some fiat equivalent.Beta Was this translation helpful? Give feedback.
All reactions