Implement cursor-based query pagination | Coinbase Coding Question