polygon-io / feature-requests

Feature requests for the Polgon.io Platform. Any bug reports should be opened in polygon-io/issues/issuess
0 stars 0 forks source link

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

Open sergproua opened 1 year ago

sergproua commented 1 year ago

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.