Nasdaq will pay for the acquisition with cash.