import pyupbit as pu
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from statsmodels.graphics.tsaplots import plot_acf
pu.get_current_price(["KRW-BTC"])
btc = pu.get_ohlcv(ticker="KRW-BTC",interval='minute1',to='2023-04-12 23:59',count=3000).close
plt.figure(figsize=(14,7))
plt.title('Bitcoin')
plt.plot(btc)
fig, ax = plt.subplots(figsize=(12, 5))
plot_acf(btc, ax=ax, lags=200)
plt.xlabel('Lag')
plt.ylabel('Autocorrelation')
plt.title('Autocorrelation Function (ACF) of BTC Data')
plt.show()