Skip to content
This repository has been archived by the owner on Jan 22, 2020. It is now read-only.

Orderbook details doesn't show bid offers closest to the spread #322

Closed
irisli opened this issue Jan 10, 2017 · 1 comment
Closed

Orderbook details doesn't show bid offers closest to the spread #322

irisli opened this issue Jan 10, 2017 · 1 comment
Assignees

Comments

@irisli
Copy link
Contributor

irisli commented Jan 10, 2017

Maybe I have something inverted? Right now internally, i use base/buying and counter/selling. But I pass it into Horizon Details for Orderbook backwards. Now i'm questioning everything about whether I got the trades correct (there are 16 different ways that the orderbook could be setup and interpreted).

Laboratory link:

https://www.stellar.org/laboratory/#explorer?resource=order_book&endpoint=details&values=eyJzZWxsaW5nX2Fzc2V0Ijp7InR5cGUiOiJuYXRpdmUiLCJjb2RlIjoiVVNEIiwiaXNzdWVyIjoiR0JBVVVBNzRINFhPUVlSU09XMlJaVUE0UUw1UEIzN1UzSlM1TkUzUlRCMkVMSlZNSUY1UkxNQUcifSwiYnV5aW5nX2Fzc2V0Ijp7InR5cGUiOiJjcmVkaXRfYWxwaGFudW00IiwiY29kZSI6IlVTRCIsImlzc3VlciI6IkdCQVVVQTc0SDRYT1FZUlNPVzJSWlVBNFFMNVBCMzdVM0pTNU5FM1JUQjJFTEpWTUlGNVJMTUFHIn19&network=test

My interpretation of this data:

image
https://stellarterm.com/

@nullstyle nullstyle self-assigned this Jan 10, 2017
@nullstyle
Copy link
Contributor

Duplicate of #318, I believe. These assertions (https://github.com/stellar/horizon/blob/master/src/github.com/stellar/horizon/db2/core/order_book_summary_test.go#L33-L56) confirm the behavior at the database level, so if the issue is still occurring, perhaps it is occurring at a higher level.

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

No branches or pull requests

2 participants