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

Incorrect native token (XTZ) spot price for TokenBalanceWidget #25

Open
Matehoo opened this issue Nov 10, 2022 · 0 comments
Open

Incorrect native token (XTZ) spot price for TokenBalanceWidget #25

Matehoo opened this issue Nov 10, 2022 · 0 comments

Comments

@Matehoo
Copy link
Contributor

Matehoo commented Nov 10, 2022

Description:
At the 10.11.2022 16:49 the native token price should be $1.14 but the ui shows $1.02

Screenshot 2022-11-10 at 16 50 25

Screenshot 2022-11-10 at 16 51 37

The root of the issue should be that we use date query param in which we send current date (today). Then because there is no daily close price for current date (trading day is not finished) the api responds with last daily close price (yesterday's).

Expected behavior:
Show correct price for native token

Actual behavior:
Shows yesterday's daily close price

Possible solution:
Remove date query param from native token current price query.

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

No branches or pull requests

1 participant