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

Empty "orders" field when "best_orders" is called at launch #2228

Open
naezith opened this issue Sep 25, 2024 · 0 comments
Open

Empty "orders" field when "best_orders" is called at launch #2228

naezith opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@naezith
Copy link

naezith commented Sep 25, 2024

We need to parse the URL parameters at the web project to fill out the swap forms. The target/buy coin is selected as an order on the Taker form. That requires a best_orders call with the sell coin.

"coin": "LTC",
"action": "sell",
"request_by": {
    "type": "number",
    "value": 1
}

It's called immediately at launch (mm2 status being 3, rpcIsUp), orders field in the response is empty:

image

I solved the frontend issue by polling KMD orders a few times until it gives a proper response, then initiating the parsing. So this is not urgent at all. I am opening this issue just to note it.

macOS Chrome Web build (wasm)
main 35e9239

@onur-ozkan onur-ozkan added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants