I have data in a table with the following schema: date, time, sym, book, pnl
This is a timeseries. sym/book as columns define the timeseries.
I have a special usecase where I need to come up with another timeseries that combines two books together.
If this wasn't a timeseries, this would be fairly easy, just sum by book/sym, filter on the books I Want to combine, and sum again with the the new book name (constant)
But I'm not sure how to create a timeseries with one book value (which is the combination of two at any given in time e.g the distinct times of the combination of both books). It's important to say that the timeseries isn't even/uniform and that the times are "random" for a bookId/sym combination.
t: ([] date: 4#.z.D; time: (07:00; 07:00; 07:01; 07:02); sym: `x`x`x`x; book: `book1`book2`book2`book1; v: (100; 0; 200; 200))
c: ([] date: 3#.z.D; time: (07:00; 07:01; 07:02); sym: `x`x`x; book: `newbook; v: (100; 300; 400))