If you activate full CryptoBooks AI error handling in your profile, or if you choose to only activate it on a specific connection from the error resolution flow, the missing prices will be fixed automatically.
In this article you can learn about the logic CryptoBooks AI uses to solve missing prices, depending on the type of transaction. These rules are applied only when you delegate error handling to the AI.
Incoming Transactions
If an incoming transaction is missing its price, AI will set the price to €0,00.
This aligns with the fiscal rules of most countries, which require that if the acquisition price is unknown, it must be recorded as €0,00.
This approach is fiscally prudent because it ensures compliance and avoids using potentially inaccurate values. It also means that, when the asset is eventually sold or disposed of, the entire selling price will be treated as capital gain.
Outgoing transactions
Most of the outgoing transactions (sending tokens out of your wallet) cause the calculation of capital gain, this is why CryptoBooks AI cannot apply a €0.00 price, since this would always generate an artificial capital loss. To remain fiscally prudent, the AI either finds a valid price or excludes the transaction from capital gains to avoid a fake loss.
Here are the steps CryptoBooks AI follows to determine an appropriate price:
closest price available (±7 days): the AI first checks for a market price within 7 days before or after the transaction date and uses the closest rate available
average price (±20 days): if none is found, the AI expands the search to 20 days before and after, and uses the average price from that range
exclusion from capital gain: If still no price is available, the transaction is excluded from capital gains
Trade Transactions
When you swap one token for another (like ETH for USDT), both sides of the trade need a valid price in fiat. AI applies different logic depending on whether only one token involved in the trade is missing a price or both are missing it.
If only one of the two tokens in a trade has a known market price, CryptoBooks AI uses it as a reference to reconstruct the missing side.
Here’s how it works step by step:
Example: If you traded 1 ETH for 2000 USDT, and only ETH has a reliable market price, CryptoBooks AI will use ETH’s price and then calculate the USDT price to make sure 1 ETH = 2000 USDT in fiat terms.
If both sides are missing a price, the AI uses the following method:
Search for prices: Look up both tokens within ±7 days of the trade date. If no valid price is found, expand to ±20 days. If multiple prices are available in the wider range, use the average.
Select the most reliable token: The token with the most accurate or complete price data (closest in time or with more data points) is fixed first.
Calculate the other side: The missing token’s price is then calculated so that the total fiat value matches on both sides of the trade.
👉 Example: If you traded 1 ETH for 2,000 USDT and only ETH has a reliable price, CryptoBooks AI uses ETH’s price and calculates USDT’s price so that both sides equal the same fiat value.