Код: Выделить всё
import yfinance as yf
from statsmodels.tsa.vector_ar.vecm import coint_johansen
symbols = ['AMZN', 'AAPL']
start = '2020-01-01'
end = '2024-01-16'
data = yf.download(symbols, start=start, end=end)['Adj Close']
specified_number = 0
coint_test_result = coint_johansen(data, specified_number, 1)
print("End")
Код: Выделить всё
symbols = ['BTCUSD', 'ETHUSD']
Код: Выделить всё
coint_test_result = coint_johansen(data, specified_number, 1)
Почему возникает ошибка с парами криптовалют, как символы?
У меня версия Python 3.12.3.
Подробнее здесь: https://stackoverflow.com/questions/786 ... ency-pairs