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

Indexing logic to parse order book changes and write to db #17

Open
2 tasks
R-K-H opened this issue Apr 2, 2024 · 1 comment
Open
2 tasks

Indexing logic to parse order book changes and write to db #17

R-K-H opened this issue Apr 2, 2024 · 1 comment
Assignees

Comments

@R-K-H
Copy link
Member

R-K-H commented Apr 2, 2024

So we really only care about the current state here, historical is nice, but not necessary (unless you want to build a trading strategy with simulation capacity).

So we need a data structure and some mechanism to account for last update etc. Likely joined / keyed to a market and then in theory we can monitor any and all markets.

You can do the same thing for swaps and liquidity for monitoring price and various other things.

My idea would be a jsonb with some information like slot updated, date updated, market id etc.

  • Openbookv2 Order Books
  • Liquidity in markets (base / quote)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants