Skip to content

Conversation

@jayantk
Copy link
Contributor

@jayantk jayantk commented Sep 29, 2022

The API endpoint was using the publishTime of the price on pythnet and not the time that the last price attestation was received. The former check catches cases where a price feed isn't updating on pythnet, which is not good for this alert because we have some feeds that shouldn't update on pythnet (e.g., equities outside of trading hours). However, the feeds are continuously attested, so checking attestationTimestamp should be sufficient.

@thmzlt thmzlt requested review from thmzlt and tompntn and removed request for tompntn September 29, 2022 20:22
@jayantk jayantk merged commit 0d3f030 into main Sep 29, 2022
@jayantk jayantk deleted the update_stale_check branch September 29, 2022 20:36
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

Successfully merging this pull request may close these issues.

3 participants