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

Market data channels - provide cumulative snapshot or last good aggregate(s) upon subscription #35

Open
sergproua opened this issue Jun 21, 2023 · 0 comments

Comments

@sergproua
Copy link

Stitching history with realtime data presents a lot of challenges. e.g. when subscribing to 1-second aggregates I have skip until the next 1-minute period starts, cache newly received 1-sec aggregates for sometime to ensure market data endpoint returns an aggregate for the past minute and only then concatenate history with real-time aggregates. Also, when connection breaks or for whatever reason needs to be reestablished steps above have to be repeated.

Please implement a solution to return cumulative snapshot or emit all aggregates since the start of a minute.

  • When subscribing to 1-second market data channel at 9:30:30am emit either
  1. one aggregate containing OHLC + volume from 9:30:00 to 9:30:30
  2. all 1-second aggregates from 9:30:00 to 9:30:30
  • When subscribing to 1-minute market data channel at 9:30:30am emit an aggregate for period 9:29:00 - 9:30:00
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