Skip to content
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

Show price deviation in % for fixed price offers and BSQ #4949

Merged

Conversation

chimp1984
Copy link
Contributor

@chimp1984 chimp1984 commented Dec 14, 2020

Add price deviation in % to fix price offers and BSQ (using 30 day average)
Allow sorting by % price in "show all" mode.

There are performance issues in the offer book as we use the view model for the item value calculations and do not cache the values. With those changes here it got worse. So we need to refactor the handling of the ListItem so that the ListItem caches the data and only updates when needed (e.g. when a market price feed update arrives). There will be follow up commits for that.

UPDATE:
The issue was the 30 day average BSQ price which was calculated too frequently. This is fixed now and the table behaves similar like the master version. Still need for performance improvement in that area, but seems that PR does not make things worse.

@chimp1984
Copy link
Contributor Author

Screen Shot 2020-12-14 at 17 45 42

@chimp1984 chimp1984 marked this pull request as ready for review December 16, 2020 00:53
@chimp1984 chimp1984 changed the title Show pricedeviation for fixed price offers Show price deviation in % for fixed price offers and BSQ Dec 16, 2020
sort according to it
Allow sorting at show all. This helps to spot
good offers with negative % over the whole market.
call and does not change frequently and is only used for
informational purpose as % display.
@chimp1984 chimp1984 force-pushed the show-pricedeviation-for-fixed-price-offers branch from d7690d1 to bb3dbf3 Compare December 16, 2020 04:30
@chimp1984
Copy link
Contributor Author

Travis has problems again...

Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@sqrrm sqrrm merged commit 86d8176 into bisq-network:master Dec 16, 2020
@ripcurlx ripcurlx added this to the v1.5.2 milestone Dec 16, 2020
@chimp1984 chimp1984 deleted the show-pricedeviation-for-fixed-price-offers branch December 16, 2020 16:14
@pazza83
Copy link

pazza83 commented Jan 3, 2021

This is such a good addition 👍

Please can it also be added to the 'Trades' section.

Being able to now export the trades section is great, but it would be even better is the deviation could also be exported.

An option to filter this section by 'payment method' as well as 'currency' would also be really useful.

Add payment method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants