I am not very much a GUI person and was looking for a quick way to check offers on Bisq that may be interesting to me. I sometimes connect remotely to a Bisq instance running in another country and desktop sharing can be painfully slow.
I wrote a Python script that prints the offers like the following:
In case someone is interested in quickly checking the same fiats/coins I am interested in, as well as removing offers > 5% away from market price, I have this running every 10 minutes at:
Hm, this doesn’t look like it is available in the API at https://market.bisq.io/api/. Perhaps you only get it when connecting to the peer and taking the offer.
Ah sorry forget to tell you that the taker does not has the factor with the sqrt of the market price distance. In your calculation the total % was not based on 1 BTC.
With a 1 BTC trade at 1% distance:
Maker fee = max(0.0002,0.002 * 1 * sqrt(1)) = 0.002 -> 0.2% of trade amount
Taker fee = max(0.0002,0.003 * 1) = 0,003 -> 0.3% of trade amount
The Maker pays 1 times the mining fee (maker fee tx), the taker 3 times (taker fee tx, deposit tx and payout tx). That is because we use dynamic fees and at offer creation time the fee could not be estimated for the time when the deposit and payout is done (can take days or weeks), so we cannot split the tx fee payment as it was before 0.5. But as we want to incentivize makers with cheaper overall fees it is not a real issue.
Depending on the current tx fee and tx size it might be about
0.0003 BTC for one tx fee (150 sat/byte * 200 bytes).
So for the
With a 1 BTC trade at 1% distance and an average tx fee:
Maker fee + tx fee = max(0.0002,0.002 * 1 * sqrt(1)) + 0.0003 = 0.0023 -> 0.23% of trade amount
Taker fee + 3tx fee= max(0.0002,0.003 * 1) + 30.0003 = 0,0039 -> 0.39% of trade amount