Whenever you're ready, walk me through how you'd approach this.
Tell me about how you would compute the top k trades in a sequence.
Explain how you would define the ranking metric, handle ties and duplicate records, and choose between batch and streaming implementations. Describe how the pipeline would recover state after failure and how you would validate its results.