Open extra topbar

fees

If you are new here, please see some information on how to ask for support. Thank you!

fees

This topic contains 4 replies, has 2 voices, and was last updated by  alexg 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5041

    1apayment
    Participant

    We See only at the exchange the btc fees on the adapter but not on the other coins

    Attachments:
    You must be logged in to view attached files.
    #5046

    alexg
    Keymaster

    Hello,

    This is intentional. The fees are always charged on the base coin, not the quote coin of the market.

    Suppose that user 1 is a buyer and user 2 is a seller. Then, the four transactions that you see are:

    one tx for removing the base coin from user 1 (fees are charged in this tx)
    one tx for adding the base coin to user 2 (fees are charged in this tx)
    one tx for removing the quote coin from user 2 (no fees)
    one tx for adding the quote coin to user 1 (no fees)

    Hope this helps.

    #5347

    1apayment
    Participant

    can you read the fees?
    and display it on another page?

    #5348

    1apayment
    Participant

    show fees when trading extra field

    #5349

    alexg
    Keymaster

    Hello,

    There is no shortcode to display the fees.

    The maker and taker fee percentages are in the following JavaScript fields:

    walletsExchangeUserData.makerFee
    walletsExchangeUserData.takerFee

    So you can use these to display fees. The amounts that the user enters into the limit buy / limit sell forms are in wp.wallets.viewModels.walletsExchange.exchangeBuyAmount() and wp.wallets.viewModels.walletsExchange.exchangeSellAmount(). So you could do the multiplication and display fees.

    But until the order is executed, you do not know how much of it is going to be charged with maker fees and how much with taker fees. For that you would have to run the algorithm through a snapshot of the order book. So it is much easier to give a low and a high estimate for the fees.

    Hope this helps.

    with regards

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.