How to report crypto arbitrage bot profits to HMRC without trade history CSV

My arbitrage bot ran across three exchanges all of last tax year and made decent profits, but when I tried to export a full trade history CSV from one of the exchanges the account got flagged and they wiped my API access. I have my bank statements showing GBP deposits and withdrawals, the bot's internal log files (JSON format, not CSV), and screenshots of ending balances. HMRC's self assessment portal wants me to report capital gains and income but I don't have the clean per-trade data everyone talks about. I've read about pooling rules and Section 104 but honestly don't know how to reconstruct cost basis without a proper trade history CSV. Has anyone actually done this? Do I need a specialist or can I piece it together myself?

35 comments

Went through almost this exact reconstruction last year. The JSON logs from your bot are actually usable - you can convert them manually or write a quick script to pull out timestamp, pair, side, quantity and price fields. HMRC doesn't require a specific file format, they just want to see that your figures are supported by contemporaneous records. The bank statements corroborate the GBP flows which helps a lot.

Victor L.

Author

The JSON logs do have all those fields, they're just not in a tidy spreadsheet. Good to know that format isn't the actual problem. Did you have to submit the raw log files or just a summary schedule?

Before I even touched the reconstruction I uploaded my bot JSON logs and bank statements to taxr.ai and had Taxr pull every transaction into a dated table, flag the ones where the GBP value couldn't be confirmed from the bank record, and list what HMRC would likely ask to verify each gap. Saved me from building the wrong schedule and then having to redo it. The flagged gaps were exactly what my accountant focused on.

Victor L.

Author

That's the part I'm most anxious about - not knowing which gaps will matter. What did you do about the ones that couldn't be confirmed from the bank?

For the unconfirmed ones I used the exchange's publicly available price feed for that timestamp and documented where the price came from. HMRC guidance says you need a consistent, reasonable valuation method, so I noted it in the supporting schedule.

Worth separating two things here: income vs capital gains. If the bot is running frequently and the profits look like trading income rather than investment gains, HMRC may treat it as miscellaneous income or even a trade. That changes the schedule you file on and what expenses you can offset.

Yes, this distinction matters a lot. Arbitrage bots doing hundreds of trades a day look very different to HMRC than someone buying and holding. The nature of the activity drives the treatment.

Victor L.

Author

So I might not even be on the capital gains pages at all? I assumed everything crypto was CGT.

No, that's a common assumption but it's not always right. HMRC's cryptoassets manual says frequent, organized trading can be income. Most retail holders end up on CGT, but a bot doing arbitrage across multiple exchanges is closer to the edge. Worth reading HMRC's cryptoassets manual pages on "trading" vs "investing" before you decide which box to put it in.

Practically speaking, your reconstruction steps: 1) Parse JSON into a flat transaction list. 2) Match withdrawals and deposits against bank statements to anchor the GBP amounts. 3) Apply Section 104 pooling to each token separately - same-day rule and 30-day rule come first. 4) Calculate gain or loss per disposal. 5) Summarise on the capital gains pages or trading income pages depending on what you decided above.

Victor L.

Author

This is the clearest ordered list I've seen so far. The 30-day rule - is that HMRC's equivalent of a wash sale? Like if I sold and rebought the same token within 30 days?

Yes, essentially. If you dispose of a token and reacquire the same token within 30 days, the disposal is matched to that reacquisition first rather than the Section 104 pool. It's meant to stop people harvesting losses and buying straight back in. Your bot almost certainly triggered this repeatedly.

My situation was messier because one exchange had shut down completely. I had Taxr read through the partial CSV I did have and my bot's logs side by side, and it identified which disposal events had no matching acquisition record at all - those are the ones where HMRC could challenge your cost basis entirely. I ended up having to get a CPA who specialises in crypto to sign off on the reconstructed figures for those gaps, worth it for peace of mind.

Did the specialist accept the reconstructed figures or did they want something else?

They accepted them but required a written methodology statement - basically a one-page explanation of how each gap was filled and what public data source was used for pricing. That went in with the return as a supporting document.

The methodology statement idea is smart regardless of whether you use a specialist. If HMRC opens an enquiry they'll want to see you had a consistent, documented approach, not just numbers on a page.

One thing I'd double-check: did your bot ever earn staking rewards, lending fees or referral bonuses on those exchanges? Those are treated as income in the year received by HMRC, not disposals, so they'd come off the capital gains pages entirely and onto a different income line.

Victor L.

Author

There were some small referral credits on one exchange. Didn't even think of those as separate. How do I value them if I don't know the exact GBP rate at the moment they landed?

Use the exchange rate at the date and time they were credited if you have it, or the daily average rate from a reputable public feed if you don't. Document which rate you used and apply it consistently across all similar items.

Does anyone know if HMRC actually audits these bot accounts or is the risk low enough that most people just estimate? Asking because my situation is similar and the reconstruction sounds like a lot of work.

Yes, HMRC does use exchange data and blockchain analytics now. The risk calculus changed after the information-sharing agreements with major exchanges. I wouldn't rely on flying under the radar.

Fair enough. Sounds like the reconstruction is unavoidable then.

Section 104 pooling with an arbitrage bot is genuinely complicated because you might hold multiple lots of the same token at the same time across different exchange wallets. HMRC treats each token type as a single pool regardless of which exchange wallet it's sitting in, so you have to consolidate before you apply the pool calculation.

Victor L.

Author

Wait, so ETH on exchange A and ETH on exchange B go into the same Section 104 pool? That changes my whole reconstruction approach.

Exactly right. The pool is per token, not per exchange or wallet. Transfers between your own wallets aren't disposals but you still need to track them because they affect which lot rules apply when you later sell.

Had Taxr read through my self assessment return draft alongside my reconstructed transaction schedule and it spotted three disposal events where I'd applied the 30-day rule wrong - I'd matched a reacquisition that was actually on day 31, not day 30. Caught that before filing. Useful when you're doing a manual reconstruction across hundreds of bot trades.

Victor L.

Author

That's exactly the kind of error that's easy to make at scale. The boundary cases are where the manual process breaks down.

If you're going to submit with reconstructed records, include a covering note with your self assessment explaining the circumstances - why the full CSV isn't available, what sources you used, and your valuation methodology. HMRC guidance says they expect taxpayers to use their best estimate in good faith when complete records don't exist, as long as the method is reasonable and documented.

Worth knowing: HMRC has specific guidance on cryptoassets in their manual. It's publicly available and covers pooling, the same-day and 30-day rules, what counts as a disposal, and how to value assets when there's no GBP market price. Reading it before you finalise your schedule means you're using their own definitions, which is hard to argue with if they come back.

Yes, the HMRC cryptoassets manual is surprisingly readable compared to most of their technical guidance. Worth an afternoon even if you're using an accountant.

Honestly at the scale you're describing - multiple exchanges, full year of bot activity, potential income vs CGT question, missing records from a flagged account - I'd seriously consider hiring a chartered accountant who does crypto returns. Not because you can't reconstruct it, but because having a professional sign off protects you if HMRC opens an enquiry. The fee is usually deductible against trading income too if that's how it's classified.

Victor L.

Author

That's a fair point. The income vs CGT question alone feels like something I should get a professional opinion on before I file the wrong schedule.

Circling back to the original problem - the JSON logs are your starting point but you'll want to convert them to a format you can sort and filter, even if it's just a spreadsheet. Once you can sort by token and timestamp you can apply the matching rules in order: same-day first, then 30-day, then Section 104 pool. Doing it in that order on paper before you try to summarise will catch most of the errors.

Covered a similar situation with an accountant last spring. The thing that helped most was writing out the methodology first, before touching any numbers: which sources I used, in what priority order, what I did when sources conflicted. Having that document made the number-crunching go faster because every decision was already made.

Yes, methodology first is the right order. Once you're in the numbers it's tempting to make one-off judgment calls and then you end up with an inconsistent approach that's hard to defend.