Tata Consultancy Services, which controls over 40 per cent of the capital markets infrastructure solutions, has won a contract from Singapore Stock Exchange to run trading and settlement platforms for the upcoming SGX Nifty Exchange at International Financial Services Centre in Gandhinagar.