The adaptive Fourier decomposition for financial time series. (May 2023)