-
Notifications
You must be signed in to change notification settings - Fork 25
Generating Intraday Prices for the Assets #577
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
Merged
Aboruhen
merged 4 commits into
investment-service/integration-support-part2
from
investment/asset-intraday
Jan 23, 2026
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
40 changes: 40 additions & 0 deletions
40
...ore/src/main/java/com/backbase/stream/investment/model/AssetWithMarketAndLatestPrice.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package com.backbase.stream.investment.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.util.UUID; | ||
|
|
||
| /** | ||
| * Representation of an asset returned by the List Assets API when the response includes expanded | ||
| * market and latest price details and custom fields. | ||
| * Example JSON: | ||
| * <pre> | ||
| * { | ||
| * "uuid": "123e4567-e89b-12d3-a456-426614174000", | ||
| * "market": { | ||
| * "code": "NYSE", | ||
| * "name": "New York Stock Exchange", | ||
| * "is_open": true, | ||
| * "today_session_starts": "2024-01-01T09:30:00+00:00Z", | ||
| * "today_session_ends": "2024-01-01T16:00:00+00:00Z", | ||
| * "market_reopens": null | ||
| * }, | ||
| * "latest_price": { | ||
| * "amount": 123.45, | ||
| * "datetime": "2024-01-01T15:30:00+00:00Z", | ||
| * "open_price": 120.00, | ||
| * "high_price": 125.00, | ||
| * "low_price": 119.50, | ||
| * "previous_close_price": 121.00 | ||
| * } | ||
| * } | ||
| * </pre> | ||
| * | ||
| * @param uuid Asset identifier (mapped from JSON property `uuid`) | ||
| * @param expandedMarket Expanded market details (mapped from JSON property `market`) | ||
| * @param expandedLatestPrice Expanded latest price details (mapped from JSON property `latest_price`) | ||
| */ | ||
| public record AssetWithMarketAndLatestPrice(@JsonProperty("uuid") UUID uuid, | ||
| @JsonProperty("market") ExpandedMarket expandedMarket, | ||
| @JsonProperty("latest_price") ExpandedLatestPrice expandedLatestPrice) { | ||
|
|
||
| } |
30 changes: 30 additions & 0 deletions
30
...vestment-core/src/main/java/com/backbase/stream/investment/model/ExpandedLatestPrice.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| package com.backbase.stream.investment.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.time.OffsetDateTime; | ||
|
|
||
| /** | ||
| * Representation of an expanded latest price returned by the List Assets API when the response is | ||
| * requested with expansion of latest price details and custom fields. | ||
| * Example JSON: | ||
| * <pre> | ||
| * "latest_price": { | ||
| * "amount": 123.45, | ||
| * "datetime": "2026-01-21T12:58:00.000000Z", | ||
| * "open_price": 120.00, | ||
| * "high_price": 125.00, | ||
| * "low_price": 119.50, | ||
| * "previous_close_price": 121.00 | ||
| * } | ||
| * </pre> | ||
| */ | ||
| public record ExpandedLatestPrice( | ||
| @JsonProperty("amount") Double amount, | ||
| @JsonProperty("datetime") OffsetDateTime datetime, | ||
| @JsonProperty("open_price") Double openPrice, | ||
| @JsonProperty("high_price") Double highPrice, | ||
| @JsonProperty("low_price") Double lowPrice, | ||
| @JsonProperty("previous_close_price") Double previousClosePrice | ||
| ) { | ||
|
|
||
| } |
29 changes: 29 additions & 0 deletions
29
...nt/investment-core/src/main/java/com/backbase/stream/investment/model/ExpandedMarket.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package com.backbase.stream.investment.model; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
| import java.time.OffsetDateTime; | ||
|
|
||
| /** | ||
| * Representation of an expanded market returned by the List Assets API when the response is | ||
| * requested with expansion of market details and custom fields. | ||
| * Example JSON: | ||
| * <pre> | ||
| *"market": { | ||
| * "code": "XETR", | ||
| * "name": "XETRA", | ||
| * "is_open": true, | ||
| * "today_session_starts": "2026-01-22T09:00:00.000000Z", | ||
| * "today_session_ends": "2026-01-22T17:30:00.000000Z", | ||
| * "market_reopens": "2026-01-23T09:00:00.000000Z" | ||
| * } | ||
| * </pre> | ||
| * | ||
| */ | ||
| public record ExpandedMarket(@JsonProperty("code") String code, | ||
| @JsonProperty("name") String name, | ||
| @JsonProperty("is_open") Boolean isOpen, | ||
| @JsonProperty("today_session_starts") OffsetDateTime todaySessionStarts, | ||
| @JsonProperty("today_session_ends") OffsetDateTime todaySessionEnds, | ||
| @JsonProperty("market_reopens") OffsetDateTime marketReopens) { | ||
|
|
||
| } |
27 changes: 27 additions & 0 deletions
27
...t-core/src/main/java/com/backbase/stream/investment/model/PaginatedExpandedAssetList.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package com.backbase.stream.investment.model; | ||
|
|
||
| import java.net.URI; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| import lombok.Builder; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| @EqualsAndHashCode | ||
| @Data | ||
| @Builder | ||
| public class PaginatedExpandedAssetList { | ||
|
|
||
| public static final String JSON_PROPERTY_COUNT = "count"; | ||
| private Integer count; | ||
|
|
||
| public static final String JSON_PROPERTY_NEXT = "next"; | ||
| private URI next; | ||
|
|
||
| public static final String JSON_PROPERTY_PREVIOUS = "previous"; | ||
| private URI previous; | ||
|
|
||
| public static final String JSON_PROPERTY_RESULTS = "results"; | ||
| private List<AssetWithMarketAndLatestPrice> results = new ArrayList<>(); | ||
|
|
||
| } |
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.