-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Concept] Handling of trading fees (matching mode) #724
Labels
Comments
kilrau
changed the title
Handling of trading fees (matching mode)
[Concept] Handling of trading fees (matching mode)
Dec 6, 2018
Reviving this. Feedback pls @erkarl @sangaman , I think we need a bit more details. |
Handled by arby & hedgy respectively. Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based on our technical paper, this issue implements handling trading fees for exchanges running
xud
inmatching
mode:taker_fee
&maker_fee
are defined inxud.conf
in % (e.g.taker_fee = 0.25
means taker fee is 0.25%), reminder to store consistent with datatype as per gRPCSubscribeAddedOrders
+SubscribeRemovedOrders
float issue #740xud
calculates and subtractstaker_fee
+maker_fee
when matching & requesting a swap as taker. Maker fee needs to be calculated in base currency (using local last price) and converted into quote currency.xud
calculates and addstaker_fee
+maker_fee
before propagating an order to peers as maker. Taker fee needs to be calculated in quote currency (using local last price) and converted into base currency.trading fee
account withinxud
once swap is successfulThe text was updated successfully, but these errors were encountered: