Based on https://polygon.io/glossary/conditions-indicators, trade condition P (22, Prior Reference Price) should be used to update high/low price. But here is the example that it does not follow: the trade is: but interval does not show this price (59.00) as high. Note that I define BAR_TIME as end of bar time. A similar problem happens to condition O. For CTS, it is defined as "Market Center Opening Trade" and UTP is defined as Opening Prints. https://polygon.io/glossary/trade-conditions define 17 as CTS O condition "Market Center Opening Trade". And https://polygon.io/glossary/conditions-indicators define 25 as O with UTP definition. What I see is, this price is not used for open price or for volume update (the documents says yes to volume at least). For CTS, in this doc https://www.ctaplan.com/publicdocs/ctaplan/CTS_Pillar_Output_Specification.pdf page 82, it defines "O" as Market Center Opening Trade", which means 17 at Polygonio, and it should be used to update all bar fields. Here is the bar data. And the last column is the end of bar time. with trades at that time: Can anyone shed any light on these issues?
Your bar time (set as 24 hour time sequencing) in first two instances are showing -04:00 as close - shouldn't it be 16:00? Anyway this is "all greek to me".
What does the “correction” field mean? I used to work for a major market data provider and I can tell you that it is not straight forward. Ticks get corrected which makes keeping track of daily high/low a bit tricky. Fortunately, most systems don’t care about infra-day high/low or they just calculate them based upon “last eligible” trades. To report daily high/low correctly, we had to have logic to search for previous eligible tick, which some vendors might not bother doing. Thankfully, most professional data consumers only cared about daily values.
the correction code of 12 trade is as below. It is a price correction not volume correction. Even if it is point of time and polygon didn't go back to fix the data error, the volume should be there. But if you look at all trades at that intervals, the interval says volume 2600 and trades 6. So clearly the first trade is not included.