From edd8caec6a47fe74e2e280af2e2568763ea7434e Mon Sep 17 00:00:00 2001 From: Ayden Date: Tue, 23 Sep 2025 16:57:23 +0100 Subject: [PATCH 1/2] feat: add quantity_at_time_of param to CargoTimeSeries --- vortexasdk/endpoints/cargo_timeseries.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/vortexasdk/endpoints/cargo_timeseries.py b/vortexasdk/endpoints/cargo_timeseries.py index 4e97258f..68838a93 100644 --- a/vortexasdk/endpoints/cargo_timeseries.py +++ b/vortexasdk/endpoints/cargo_timeseries.py @@ -76,6 +76,7 @@ def search( timeseries_activity_time_span_min: Optional[int] = None, timeseries_activity_time_span_max: Optional[int] = None, timeseries_property: Optional[str] = None, + quantity_at_time_of: str = "load", ) -> TimeSeriesResult: """ @@ -213,6 +214,13 @@ def search( `timeseries_activity_time_span_max=1000 * 60 * 60 * 24 * 14` in conjunction with `filter_activity='storing_state'`. + quantity_at_time_of: This parameter is designed for LNG cargo and gives the user the freedom to + choose whether to create the time series based on the load volume or discharged volumes, + as we consider the discharge quantities to differ from load quantities due to boil-off gas. + Can be `load` or `unload`. Default is `load`. + `load` - represents the quantity of the selected unit at the time of the loading event. + `unload` - represents the quantity of the selected unit at the time of the unloading event. + # Returns `TimeSeriesResult` @@ -329,6 +337,7 @@ def search( "timeseries_unit": timeseries_unit, "timeseries_activity": timeseries_activity or filter_activity, "timeseries_property": timeseries_property, + "quantity_at_time_of": quantity_at_time_of, "size": self._MAX_PAGE_RESULT_SIZE, } From 079a2c4f004e245df76280e1e5f136863b75d650 Mon Sep 17 00:00:00 2001 From: Ayden Date: Wed, 24 Sep 2025 11:35:20 +0100 Subject: [PATCH 2/2] chore: bump version number --- vortexasdk/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vortexasdk/version.py b/vortexasdk/version.py index 66c607f6..b19b12ea 100644 --- a/vortexasdk/version.py +++ b/vortexasdk/version.py @@ -1 +1 @@ -__version__ = "1.0.13" +__version__ = "1.0.14"