0

so im noob on all of this so bare with me.
im trying to test the possible net revenue of a trading algorithm/bot, but i dont trust it enough to test it with real money, so im going to simulate how much money it would make, by finding out the transaction fees for each buy/ sell. now ive read about it online and all i seem to find stuff like :

https://bitcoinfees.earn.com/api/v1/fees/recommended
output:
{ "fastestFee": 40, "halfHourFee": 20, "hourFee": 10 }

which seems to be in satoshis per byte, so if i wanted to buy 1 btc at that time, how much would the fee be ? or is there another API or service i can use ? thanx

1 Answer 1

3

Transaction fees are paid when transacting, not when trading, or at least not necessarily.

Assuming you're trading on an exchange site, you will have an account there. You can buy and sell BTC for other currencies, but all that is happening is that the exchange credits your account with what you buy, and removes it from the seller's account. This process does not involve any interaction with the Bitcoin network; it's all just updating numbers in the exchange's database of accounts.

The exchange may charge trading fees for offering this service, but the details of that would depend on what site/service you use, and the amounts involved. Some exchanges offer multiple fee tiers based on your trading activity.

There are transaction fees involved once you decide to withdraw your BTC from the exchange to a wallet you control yourself. The exchange may eat those for you, or they may charge you for them. Some exchanges may themselves charge a withdrawal fee on top of the BTC network transaction fee. The transaction fee is independent of the amount transferred; it depends on the complexity of the transaction, and that depends on how the exchange chooses to dispatch their withdrawals as Bitcoin transactions.

Once BTC are in your own wallet, and you want to use them, you will be the one to pay transaction fees. Typical transactions are around 150-250 vbytes in size. At 20 sats/vbyte, a 200 vbyte transaction would cost 4000 sats or 0.0004 BTC. Again, this value is largely independent of the amount transacted.

2
  • thank you for the clarification, but knowing what you have told me, any idea how i can get the trading fees from a specific exchange? May 1, 2022 at 7:27
  • 1
    That will depend on the exchange. Usually these numbers are listed on their website. May 1, 2022 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.