I have a tz1 address and created multiple KT1 addresses to be able to delegate my XTZ to multiple delegation services. I can query the tzscan.io API to automatically get the rewards I receive via /operations
and filter out only transactions with funds sent to my KT1 address.
But since every delegation service has their own payout schedule I am unable to successfully group the rewards per cycle. Is this even possible to group them per cycle? Currently I group the results per day. But this is a complete mess, because of the change of day over midnight.
The result should be how many XTZ a tz1 address received per cycle, regardless of how many KT1 address are associated and regardless of when each KT1 address started delegating.