Financial tech company invests in historic downtown building as headquarters