# Listing offers without the GUI

**URL:** <https://bisq.community/t/listing-offers-without-the-gui/2743>\
**Category:** Trading\
**Created:** [August 22, 2017, 2:24pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743 "2017-08-22T14:24:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 22, 2017, 2:24pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/1 "2017-08-22T14:24:35Z")

</div>

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:

[https://pastebin.com/raw/dFMFSUqg](https://pastebin.com/raw/dFMFSUqg)

If anyone has a use for it I can put it up publicly. What I’d really love to see is an API to take/make offers so I can script everything :).

---

<div class="post-metadata">

**Author:** ![alexej996](https://bisq.community/user_avatar/bisq.community/alexej996/32/491_2.png) [@alexej996](https://bisq.community/u/alexej996)\
**Post date:** [August 22, 2017, 2:27pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/2 "2017-08-22T14:27:22Z")

</div>

Great job!  
It would be awesome if we had a python command line client 😃  
Maybe this could be a start of a new client one day!

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 22, 2017, 2:42pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/3 "2017-08-22T14:42:41Z")

</div>

Ah cool. Are you using the markets page and/or API?  
We are working on APIs but still not completed.

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 22, 2017, 2:54pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/4 "2017-08-22T14:54:34Z")

</div>

Yep I’m using the [market.bisq.io](http://market.bisq.io) API and [bitcoinaverage.com](http://bitcoinaverage.com) API to get the fiat prices.

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 22, 2017, 2:56pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/5 "2017-08-22T14:56:21Z")

</div>

@danda might help…

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 22, 2017, 4:21pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/6 "2017-08-22T16:21:32Z")

</div>

My sad and ugly code in case it is useful to anyone heh:

> **[valankar/arviraj](https://github.com/valankar/arviraj)**
>
> Command line client to show interesting offers on Bisq - valankar/arviraj

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 23, 2017, 12:55am UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/7 "2017-08-23T00:55:34Z")

</div>

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:

[https://steropes.feralhosting.com/valankar/bisq.txt](https://steropes.feralhosting.com/valankar/bisq.txt)

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 23, 2017, 7:18am UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/8 "2017-08-23T07:18:24Z")

</div>

Very fine, great job!

Can you parameterize the distance to the market price in the url?

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 23, 2017, 5:22pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/9 "2017-08-23T17:22:41Z")

</div>

Not quite a parameter heh, but you can now get the maximum market distance offers by adding \_N to the URL, such as:

[https://steropes.feralhosting.com/valankar/bisq\_50.txt](https://steropes.feralhosting.com/valankar/bisq_50.txt)

Have fun!

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 23, 2017, 5:36pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/10 "2017-08-23T17:36:37Z")

</div>

Thanks, very nice! 👍

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 27, 2017, 7:24am UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/11 "2017-08-27T07:24:56Z")

</div>

I already ask for a lot, but it would be very interesting to include Bisq’s fees (%) in the information of each offer. it’s possible?

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 27, 2017, 12:41pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/12 "2017-08-27T12:41:37Z")

</div>

Hm, this doesn’t look like it is available in the API at [https://market.bisq.io/api/](https://market.bisq.io/api/). Perhaps you only get it when connecting to the peer and taking the offer.

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 27, 2017, 2:27pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/13 "2017-08-27T14:27:41Z")

</div>

The calculation of fees is not in the API, it’s a formula, that’s here: [https://bisq.io/faq/](https://bisq.io/faq/)

How much does it cost to trade on Bisq?

Trading fees are based on trade amount and distance to market price. Min. fee (MF) = 0.0002 BTC, default fee (DF) = 0.002 BTC, amount factor (AF) = 1/BTC, market price factor (MF) = square root of percent value (e.g. 1% -\> 1, 9% 0 -\> 3, 0.01% -\> 0.1). Tradeing fee = max(MF, DF \* amount \* AF \* MF). E.g. 0.002 BTC for 1 BTC trade at 1% market price distance.

---

<div class="post-metadata">

**Author:** ![valankar](https://bisq.community/letter_avatar/valankar/32/5_5575768a8748004e209b776fc1b2916d.png) [@valankar](https://bisq.community/u/valankar)\
**Post date:** [August 27, 2017, 4:30pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/14 "2017-08-27T16:30:59Z")

</div>

Cool. Added it. May or may not be correct heh.

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 27, 2017, 9:09pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/15 "2017-08-27T21:09:13Z")

</div>

Good job, but something seems to go wrong, for example in this offer:

Payment method: CLEAR\_X\_CHANGE  
Offer ID: 4526551  
Amount in BTC: 0.30000000 - 0.30000000  
Price for 1: 4630.49  
Maximum: 1389.15  
Fee: **6.39** - 6.39  
Distance from market: 5.93%

fee= max(0.0002, 0.002 \* amount \* sqrt(abs(distance)))  
fee = max(0.0002,0.002 \* 0.3 \* sqrt(5.93)) = **0.0014**

I’d better check this formule Manfred, I can not find more information on calculating fees

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 27, 2017, 10:14pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/16 "2017-08-27T22:14:10Z")

</div>

Maker and taker have different default fee (for 1 BTC at 1%):  
Maker: 0.002 BTC (0.2%)  
Taker: 0.003 BTC (0.3%)

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 28, 2017, 6:37am UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/17 "2017-08-28T06:37:52Z")

</div>

Maker fee = max(0.0002,0.002 \* 0.3 \* sqrt(5.93)) = 0.0014 **0.14%**  
Taker fee = max(0.0002,0.003 \* 0.3 \* sqrt(5.93)) = 0.0022 **0.22%**

Is it correct for the example above?

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 28, 2017, 12:41pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/18 "2017-08-28T12:41:43Z")

</div>

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.

Maker fee = max(0.0002,0.002 \* 0.3 \* sqrt(5.93)) = 0.0014 **-\> 0.42% of trade amount**  
Taker fee = max(0.0002,0.003 \* 0.3) = 0,0009 **-\> 0.27% of trade amount**

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 + 3_tx fee= max(0.0002,0.003 \* 1) + 3_0.0003 = 0,0039 **-\> 0.39% of trade amount**

Current tx fee you can see here:  
[http://37.139.14.34:8080/getFees](http://37.139.14.34:8080/getFees) (atm 150 sat/byte).

When creating the offer you can see the fees when you rollover the “info” symbol at the summary screen before you do the payment.

---

<div class="post-metadata">

**Author:** ![erizo](https://bisq.community/user_avatar/bisq.community/erizo/32/742_2.png) [@erizo](https://bisq.community/u/erizo)\
**Post date:** [August 28, 2017, 12:52pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/19 "2017-08-28T12:52:29Z")

</div>

Thank you. At least for me those calculations were not obvious. It would be nice to include them in the FAQ.

Ehem … Valankar could you update the script?🎶

---

<div class="post-metadata">

**Author:** ![ManfredKarrer](https://bisq.community/user_avatar/bisq.community/manfredkarrer/32/26_2.png) [@ManfredKarrer](https://bisq.community/u/ManfredKarrer)\
**Post date:** [August 28, 2017, 1:18pm UTC](https://bisq.community/t/listing-offers-without-the-gui/2743/20 "2017-08-28T13:18:19Z")

</div>

Yes I agree. The FAQ and webpage will get some updates soon…

[Next page](https://bisq.community/t/listing-offers-without-the-gui/2743.md?page=2)
