You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projectforge-business/src/main/kotlin/org/projectforge/business/fibu/orderbooksnapshots/OrderbookSnapshotScriptingService.kt
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,4 +73,14 @@ class OrderbookSnapshotScriptingService(private val __service: OrderbookSnapshot
Copy file name to clipboardExpand all lines: projectforge-business/src/main/kotlin/org/projectforge/business/fibu/orderbooksnapshots/OrderbookSnapshotsService.kt
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -290,6 +290,18 @@ class OrderbookSnapshotsService {
290
290
return findEntry(date)?.serializedOrderBook
291
291
}
292
292
293
+
/**
294
+
* Returns the order book snapshot as uncompressed JSON string for a given date.
295
+
* @param date The date of the snapshot.
296
+
* @return The JSON string, or null if not found or empty.
297
+
*/
298
+
fungetSnapshotAsJson(date:LocalDate): String? {
299
+
val entry = findEntry(date) ?:returnnull
300
+
val serialized = entry.serializedOrderBook ?:returnnull
0 commit comments