Is that possible to retrieve historical fees for crypto transactions?

Question:

I know that it should be possible to find such data for bitcoin, but what I want is somewhat unified solution. E.g. I give a network name and timestamp – and receive something like average transaction fees for this network at that time.
I want to emulate the exchanges for the 2022 and I need to account for fees. CCXT library has calculate_fee method, but first of all it is not documented well, and I checked the implementation, it seems like it doesn’t take any timestamp.
Any API or dataset that I could use for that?
Thanks

Tried to google any API or data and failed.

Answers:

It looks like there are two different types of fees: financial (from exchanges), and energy (from networks). In both cases, the fees charged will be dependent on user activity, the coins/networks used in the transactions, etc. Exchanges such as Coinbase and Binance will have more transparent information on buyer/seller fees, whereas individual coin networks (BTC, TRX) will have more variable guidance on how much your costs will be.

There’s not really a straight-forward answer unless you have specific coin amounts (for networks) and trailing trading activity (for exchanges) to calculate fees, but if you search individual coin networks, you can find energy costs for transactions.

EDIT: updated the answer to distinguish between exchange and network fees.

Answered By: jon bon journo