Add static-market-hours EA - #5301
Open
dskloetc wants to merge 2 commits into
Open
Conversation
🦋 Changeset detectedLatest commit: 783c8ea The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
dskloetc
force-pushed
the
kloet/static-market-hours
branch
5 times, most recently
from
August 18, 2026 12:55
38a8dea to
395c71a
Compare
dskloetc
force-pushed
the
kloet/static-market-hours
branch
from
August 18, 2026 14:00
395c71a to
783c8ea
Compare
dskloetc
marked this pull request as ready for review
August 18, 2026 14:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://smartcontract-it.atlassian.net/browse/OPDATA-8204
Description
For some markets we only have 1 source for market status while we need 2 sources for reliability.
Currently we have some hardcoded logic in the
market-statusEA to serve as backup.Now we need to add support for 15 more markets and perhaps even more in the future.
Instead of hardcoding more logic into the
market-statusEA, this PR adds a new EA which can be configured with any schedule in environment variables.See this document for why we chose this solution.
The EA supports both
MarketStatusandTwentyfourFiveMarketStatusresults.A follow-up PR will add a script to generate such schedules from Tradinghours data that can be downloaded with the necessary API keys.
Changes
yarn newwith a custom foreground transport as a separate commit.market-statusto serve as a proof of concept. These unit tests mirror equivalent unit tests for themarket-statusEA.Steps to Test
Quality Assurance
infra-k8sconfiguration file.adapter-secretsconfiguration file.test-payload.jsonfile with relevant requests.feature/x,chore/x,release/x,hotfix/x,fix/x) or is created from Jira.