Transformer for Times Series: an Application to the S&P500