# -*- coding: utf-8 -*-
import pandas.io.data as web
import datetime
import numpy as np
start = datetime.datetime(2015,1,2)
end = datetime.datetime(2016,7,25)
f1 = web.DataReader("^DJI",'yahoo',start,end)
f2 = web.DataReader("^N225",'yahoo',start,end)
f3 = web.DataReader("^KS11",'yahoo',start,end)
def daterange(start_date, end_date):
for n in range(int ((end_date - start_date).days)):
yield start_date + datetime.timedelta(n)
x_dow_data = []
x_n225_data = []
y_data = []
print("date_str", "DJI_close", "N225_close", "KOSPI_close")
for single_date in daterange(start, end):
date_str = single_date.strftime('%Y-%m-%d')
try:
f1_close = f1.ix[date_str]['Close']
except:
continue
try:
f2_close = f2.ix[date_str]['Close']
except:
continue
try:
f3_close = f3.ix[date_str]['Close']
except:
continue
try:
print(date_str, f1_close, f2_close, f3_close)
x_dow_data.append(f1_close)
x_n225_data.append(f2_close)
y_data.append(f3_close)
except:
pass
ones = [ 1 for y in y_data ]
x_datas = [ones, x_dow_data, x_n225_data]
X = np.matrix(x_datas).transpose()
Xt = np.matrix(x_datas)
Y = np.matrix(y_data).transpose()
theta = np.dot(np.dot(np.linalg.pinv(np.dot(Xt, X)), Xt), Y)
C:\Users\RyanShin\Anaconda3\lib\site-packages\pandas\io\data.py:35: FutureWarning: The pandas.io.data module is moved to a separate package (pandas-datareader) and will be removed from pandas in a future version. After installing the pandas-datareader package (https://github.com/pydata/pandas-datareader), you can change the import ``from pandas.io import data, wb`` to ``from pandas_datareader import data, wb``. FutureWarning)
date_str DJI_close N225_close KOSPI_close 2015-01-02 17832.990234 17450.769531 1926.439941 2015-01-05 17501.650391 17408.710938 1915.75 2015-01-06 17371.640625 16883.189453 1882.449951 2015-01-07 17584.519531 16885.330078 1883.829956 2015-01-08 17907.869141 17167.099609 1904.650024 2015-01-09 17737.369141 17197.730469 1924.699951 2015-01-13 17613.679688 17087.710938 1917.140015 2015-01-14 17427.089844 16795.960938 1913.660034 2015-01-15 17320.710938 17108.699219 1914.140015 2015-01-16 17511.570312 16864.160156 1888.130005 2015-01-20 17515.230469 17366.300781 1918.310059 2015-01-21 17554.279297 17280.480469 1921.22998 2015-01-22 17813.980469 17329.019531 1920.819946 2015-01-23 17672.599609 17511.75 1936.089966 2015-01-26 17678.699219 17468.519531 1935.680054 2015-01-27 17387.210938 17768.300781 1952.400024 2015-01-28 17191.369141 17795.730469 1961.579956 2015-01-29 17416.849609 17606.220703 1951.02002 2015-01-30 17164.949219 17674.390625 1949.26001 2015-02-02 17361.039062 17558.039062 1952.680054 2015-02-03 17666.400391 17335.849609 1951.959961 2015-02-04 17673.019531 17678.740234 1962.790039 2015-02-05 17884.880859 17504.619141 1952.839966 2015-02-06 17824.289062 17648.5 1955.52002 2015-02-09 17729.210938 17711.929688 1947.0 2015-02-10 17868.759766 17652.679688 1935.859985 2015-02-11 17862.140625 17652.679688 1945.699951 2015-02-12 17972.380859 17979.720703 1941.630005 2015-02-13 18019.349609 17913.359375 1957.5 2015-02-17 18047.580078 18123.009766 1961.449951 2015-02-18 18029.849609 18199.169922 1961.449951 2015-02-20 18140.439453 18332.300781 1961.449951 2015-02-23 18116.839844 18466.919922 1968.390015 2015-02-24 18209.189453 18603.480469 1976.119995 2015-02-25 18224.570312 18585.199219 1990.469971 2015-02-26 18214.419922 18785.789062 1993.079956 2015-02-27 18132.699219 18797.939453 1985.800049 2015-03-02 18288.630859 18826.880859 1996.810059 2015-03-03 18203.369141 18815.160156 2001.380005 2015-03-04 18096.900391 18703.599609 1998.290039 2015-03-05 18135.720703 18751.839844 1998.380005 2015-03-06 17856.779297 18971.0 2012.939941 2015-03-09 17995.720703 18790.550781 1992.819946 2015-03-10 17662.939453 18665.109375 1984.77002 2015-03-11 17635.390625 18723.519531 1980.829956 2015-03-12 17895.220703 18991.109375 1970.589966 2015-03-13 17749.310547 19254.25 1985.790039 2015-03-16 17977.419922 19246.060547 1987.329956 2015-03-17 17849.080078 19437.0 2029.910034 2015-03-18 18076.189453 19544.480469 2028.449951 2015-03-19 17959.029297 19476.560547 2037.890015 2015-03-20 18127.650391 19560.220703 2037.23999 2015-03-23 18116.039062 19560.220703 2036.589966 2015-03-24 18011.140625 19713.449219 2041.369995 2015-03-25 17718.539062 19746.199219 2042.810059 2015-03-26 17678.230469 19471.119141 2022.560059 2015-03-27 17712.660156 19285.630859 2019.800049 2015-03-30 17976.310547 19411.400391 2030.040039 2015-03-31 17776.119141 19206.990234 2041.030029 2015-04-01 17698.179688 19034.839844 2028.449951 2015-04-02 17763.240234 19312.789062 2029.069946 2015-04-06 17880.849609 19397.980469 2046.430054 2015-04-07 17875.419922 19640.539062 2047.030029 2015-04-08 17902.509766 19789.810547 2059.26001 2015-04-09 17958.730469 19937.720703 2058.870117 2015-04-10 18057.650391 19907.630859 2087.76001 2015-04-13 17977.039062 19905.460938 2098.919922 2015-04-14 18036.699219 19908.679688 2111.719971 2015-04-15 18112.609375 19869.759766 2119.959961 2015-04-16 18105.769531 19885.769531 2139.899902 2015-04-17 17826.300781 19652.880859 2143.5 2015-04-20 18034.929688 19634.490234 2146.709961 2015-04-21 17949.589844 19909.089844 2144.790039 2015-04-22 18038.269531 20133.900391 2143.889893 2015-04-23 18058.689453 20187.650391 2173.409912 2015-04-24 18080.140625 20020.039062 2159.800049 2015-04-27 18037.970703 19983.320312 2157.540039 2015-04-28 18110.140625 20058.949219 2147.669922 2015-04-30 17840.519531 19520.009766 2127.169922 2015-05-01 18024.060547 19531.630859 2127.169922 2015-05-06 17841.980469 19531.630859 2104.580078 2015-05-07 17924.060547 19291.990234 2091.0 2015-05-08 18191.109375 19379.189453 2085.52002 2015-05-11 18105.169922 19620.910156 2097.379883 2015-05-12 18068.230469 19624.839844 2096.77002 2015-05-13 18060.490234 19764.720703 2114.159912 2015-05-14 18252.240234 19570.240234 2120.330078 2015-05-15 18272.560547 19732.919922 2106.5 2015-05-18 18298.880859 19890.269531 2113.719971 2015-05-19 18312.390625 20026.380859 2120.850098 2015-05-20 18285.400391 20196.560547 2139.540039 2015-05-21 18285.740234 20202.869141 2122.810059 2015-05-22 18232.019531 20264.410156 2146.100098 2015-05-26 18041.539062 20437.480469 2143.5 2015-05-27 18162.990234 20472.580078 2107.5 2015-05-28 18126.119141 20551.460938 2110.889893 2015-05-29 18010.679688 20563.150391 2114.800049 2015-06-01 18040.369141 20569.869141 2102.370117 2015-06-02 18011.939453 20543.189453 2078.639893 2015-06-03 18076.269531 20473.509766 2063.159912 2015-06-04 17905.580078 20488.189453 2072.860107 2015-06-05 17849.460938 20460.900391 2068.100098 2015-06-08 17766.550781 20457.189453 2065.189941 2015-06-09 17764.039062 20096.300781 2064.030029 2015-06-10 18000.400391 20046.359375 2051.320068 2015-06-11 18039.369141 20382.970703 2056.610107 2015-06-12 17898.839844 20407.080078 2052.169922 2015-06-15 17791.169922 20387.789062 2042.319946 2015-06-16 17904.480469 20257.939453 2028.719971 2015-06-17 17935.740234 20219.269531 2034.859985 2015-06-18 18115.839844 19990.820312 2041.880005 2015-06-19 18015.949219 20174.240234 2046.959961 2015-06-22 18119.779297 20428.189453 2055.159912 2015-06-23 18144.070312 20809.419922 2081.199951 2015-06-24 17966.070312 20868.029297 2085.530029 2015-06-25 17890.359375 20771.400391 2085.060059 2015-06-26 17946.679688 20706.150391 2090.26001 2015-06-29 17596.349609 20109.949219 2060.48999 2015-06-30 17619.509766 20235.730469 2074.199951 2015-07-01 17757.910156 20329.320312 2097.889893 2015-07-02 17730.109375 20522.5 2107.330078 2015-07-06 17683.580078 20112.119141 2053.929932 2015-07-07 17776.910156 20376.589844 2040.290039 2015-07-08 17515.419922 19737.640625 2016.209961 2015-07-09 17548.619141 19855.5 2027.810059 2015-07-10 17760.410156 19779.830078 2031.170044 2015-07-13 17977.679688 20089.769531 2061.52002 2015-07-14 18053.580078 20385.330078 2059.22998 2015-07-15 18050.169922 20463.330078 2072.909912 2015-07-16 18120.25 20600.119141 2087.889893 2015-07-17 18086.449219 20650.919922 2076.790039 2015-07-21 17919.289062 20841.970703 2083.620117 2015-07-22 17851.039062 20593.669922 2064.72998 2015-07-23 17731.919922 20683.949219 2065.070068 2015-07-24 17568.529297 20544.529297 2045.959961 2015-07-27 17440.589844 20350.099609 2038.810059 2015-07-28 17630.269531 20328.890625 2039.099976 2015-07-29 17751.390625 20302.910156 2037.619995 2015-07-30 17745.980469 20522.830078 2019.030029 2015-07-31 17689.859375 20585.240234 2030.160034 2015-08-03 17598.199219 20548.109375 2008.48999 2015-08-04 17550.689453 20520.359375 2027.98999 2015-08-05 17540.470703 20614.060547 2029.76001 2015-08-06 17419.75 20664.439453 2013.290039 2015-08-07 17373.380859 20724.560547 2010.22998 2015-08-10 17615.169922 20808.689453 2003.170044 2015-08-11 17402.839844 20720.75 1986.650024 2015-08-12 17402.509766 20392.769531 1975.469971 2015-08-13 17408.25 20595.550781 1983.459961 2015-08-17 17545.179688 20620.259766 1968.52002 2015-08-18 17511.339844 20554.470703 1956.26001 2015-08-19 17348.730469 20222.630859 1939.380005 2015-08-20 16990.689453 20033.519531 1914.550049 2015-08-21 16459.75 19435.830078 1876.069946 2015-08-24 15871.349609 18540.679688 1829.810059 2015-08-25 15666.44043 17806.699219 1846.630005 2015-08-26 16285.509766 18376.830078 1894.089966 2015-08-27 16654.769531 18574.439453 1908.0 2015-08-28 16643.009766 19136.320312 1937.670044 2015-08-31 16528.029297 18890.480469 1941.48999 2015-09-01 16058.349609 18165.689453 1914.22998 2015-09-02 16351.379883 18095.400391 1915.219971 2015-09-03 16374.759766 18182.390625 1915.530029 2015-09-04 16102.379883 17792.160156 1886.040039 2015-09-08 16492.679688 17427.080078 1878.680054 2015-09-09 16253.570312 18770.509766 1934.199951 2015-09-10 16330.400391 18299.619141 1962.109985 2015-09-11 16433.089844 18264.220703 1941.369995 2015-09-14 16370.959961 17965.699219 1931.459961 2015-09-15 16599.849609 18026.480469 1937.560059 2015-09-16 16739.949219 18171.599609 1975.449951 2015-09-17 16674.740234 18432.269531 1976.48999 2015-09-18 16384.580078 18070.210938 1995.949951 2015-09-24 16201.320312 17571.830078 1947.099976 2015-09-25 16314.669922 17880.509766 1942.849976 2015-09-30 16284.700195 17388.150391 1962.810059 2015-10-01 16272.009766 17722.419922 1979.319946 2015-10-02 16472.369141 17725.130859 1969.680054 2015-10-05 16776.429688 18005.490234 1978.25 2015-10-06 16790.189453 18186.099609 1990.650024 2015-10-07 16912.289062 18322.980469 2005.839966 2015-10-08 17050.75 18141.169922 2019.530029 2015-10-13 17081.890625 18234.740234 2019.050049 2015-10-14 16924.75 17891.0 2009.550049 2015-10-15 17141.75 18096.900391 2033.27002 2015-10-16 17215.970703 18291.800781 2030.26001 2015-10-19 17230.539062 18131.230469 2030.27002 2015-10-20 17217.109375 18207.150391 2039.359985 2015-10-21 17168.609375 18554.279297 2042.97998 2015-10-22 17489.160156 18435.869141 2023.0 2015-10-23 17646.699219 18825.300781 2040.400024 2015-10-26 17623.050781 18947.119141 2048.080078 2015-10-27 17581.429688 18777.039062 2044.650024 2015-10-28 17779.519531 18903.019531 2042.51001 2015-10-29 17755.800781 18935.710938 2034.160034 2015-10-30 17663.539062 19083.099609 2029.469971 2015-11-02 17828.759766 18683.240234 2035.23999 2015-11-04 17867.580078 18926.910156 2052.77002 2015-11-05 17863.429688 19116.410156 2049.409912 2015-11-06 17910.330078 19265.599609 2041.069946 2015-11-09 17730.480469 19642.740234 2025.699951 2015-11-10 17758.210938 19671.259766 1996.589966 2015-11-11 17702.220703 19691.390625 1997.27002 2015-11-12 17448.070312 19697.769531 1993.359985 2015-11-13 17245.240234 19596.910156 1973.290039 2015-11-16 17483.009766 19393.689453 1943.02002 2015-11-17 17489.5 19630.630859 1963.579956 2015-11-18 17737.160156 19649.179688 1962.880005 2015-11-19 17732.75 19859.810547 1988.910034 2015-11-20 17823.810547 19879.810547 1989.859985 2015-11-24 17812.189453 19924.890625 2016.290039 2015-11-25 17813.390625 19847.580078 2009.420044 2015-11-27 17813.390625 19883.939453 2028.98999 2015-11-30 17719.919922 19747.470703 1991.969971 2015-12-01 17888.349609 20012.400391 2023.930054 2015-12-02 17729.679688 19938.130859 2009.290039 2015-12-03 17477.669922 19939.900391 1994.069946 2015-12-04 17847.630859 19504.480469 1974.400024 2015-12-07 17730.509766 19698.150391 1963.670044 2015-12-08 17568.0 19492.599609 1949.040039 2015-12-09 17492.300781 19301.070312 1948.23999 2015-12-10 17574.75 19046.550781 1952.069946 2015-12-11 17265.210938 19230.480469 1948.619995 2015-12-14 17368.5 18883.419922 1927.819946 2015-12-15 17524.910156 18565.900391 1932.969971 2015-12-16 17749.089844 19049.910156 1969.400024 2015-12-17 17495.839844 19353.560547 1977.959961 2015-12-18 17128.550781 18986.800781 1975.319946 2015-12-21 17251.619141 18916.019531 1981.189941 2015-12-22 17417.269531 18886.699219 1992.560059 2015-12-24 17552.169922 18789.689453 1990.650024 2015-12-28 17528.269531 18873.349609 1964.060059 2015-12-29 17720.980469 18982.230469 1966.310059 2015-12-30 17603.869141 19033.710938 1961.310059 2016-01-04 17148.939453 18450.980469 1918.76001 2016-01-05 17158.660156 18374.0 1930.530029 2016-01-06 16906.509766 18191.320312 1925.430054 2016-01-07 16514.099609 17767.339844 1904.329956 2016-01-08 16346.450195 17697.960938 1917.619995 2016-01-12 16516.220703 17218.960938 1890.859985 2016-01-13 16151.410156 17715.630859 1916.280029 2016-01-14 16379.049805 17240.949219 1900.01001 2016-01-15 15988.080078 17147.109375 1878.869995 2016-01-19 16016.019531 17048.369141 1889.640015 2016-01-20 15766.740234 16416.189453 1845.449951 2016-01-21 15882.679688 16017.259766 1840.530029 2016-01-22 16093.509766 16958.529297 1879.430054 2016-01-25 15885.219727 17110.910156 1893.430054 2016-01-26 16167.230469 16708.900391 1871.689941 2016-01-27 15944.459961 17163.919922 1897.869995 2016-01-28 16069.639648 17041.449219 1906.939941 2016-01-29 16466.300781 17518.300781 1912.060059 2016-02-01 16449.179688 17865.230469 1924.819946 2016-02-02 16153.540039 17750.679688 1906.599976 2016-02-03 16336.660156 17191.25 1890.670044 2016-02-04 16416.580078 17044.990234 1916.26001 2016-02-05 16204.969727 16819.589844 1917.790039 2016-02-12 15973.839844 14952.610352 1835.280029 2016-02-16 16196.410156 16054.429688 1888.300049 2016-02-17 16453.830078 15836.360352 1883.939941 2016-02-18 16413.429688 16196.799805 1908.839966 2016-02-19 16391.990234 15967.169922 1916.23999 2016-02-22 16620.660156 16111.049805 1916.359985 2016-02-23 16431.779297 16052.049805 1914.219971 2016-02-24 16484.990234 15915.790039 1912.530029 2016-02-25 16697.289062 16140.339844 1918.569946 2016-02-26 16639.970703 16188.410156 1920.160034 2016-02-29 16516.5 16026.759766 1916.660034 2016-03-02 16899.320312 16746.550781 1947.420044 2016-03-03 16943.900391 16960.160156 1958.170044 2016-03-04 17006.769531 17014.779297 1955.630005 2016-03-07 17073.949219 16911.320312 1957.869995 2016-03-08 16964.099609 16783.150391 1946.119995 2016-03-09 17000.359375 16642.199219 1952.949951 2016-03-10 16995.130859 16852.349609 1969.329956 2016-03-11 17213.310547 16938.869141 1971.410034 2016-03-14 17229.130859 17233.75 1972.27002 2016-03-15 17251.529297 17117.070312 1969.969971 2016-03-16 17325.759766 16974.449219 1974.900024 2016-03-17 17481.490234 16936.380859 1987.98999 2016-03-18 17602.300781 16724.810547 1992.119995 2016-03-22 17582.570312 17048.550781 1996.810059 2016-03-23 17502.589844 17000.980469 1995.119995 2016-03-24 17515.730469 16892.330078 1985.969971 2016-03-28 17535.390625 17134.369141 1982.540039 2016-03-29 17633.109375 17103.529297 1994.910034 2016-03-30 17716.660156 16878.960938 2002.140015 2016-03-31 17685.089844 16758.669922 1995.849976 2016-04-01 17792.75 16164.160156 1973.569946 2016-04-04 17737.0 16123.269531 1978.969971 2016-04-05 17603.320312 15732.820312 1962.73999 2016-04-06 17716.050781 15715.360352 1971.319946 2016-04-07 17541.960938 15749.839844 1973.890015 2016-04-08 17576.960938 15821.519531 1972.050049 2016-04-11 17556.410156 15751.129883 1970.369995 2016-04-12 17721.25 15928.790039 1981.319946 2016-04-14 17926.429688 16911.050781 2015.930054 2016-04-15 17897.460938 16848.029297 2014.709961 2016-04-18 18004.160156 16275.950195 2009.099976 2016-04-19 18053.599609 16874.439453 2011.359985 2016-04-20 18096.269531 16906.539062 2005.829956 2016-04-21 17982.519531 17363.619141 2022.099976 2016-04-22 18003.75 17572.490234 2015.48999 2016-04-25 17977.240234 17439.300781 2014.550049 2016-04-26 17990.320312 17353.279297 2019.630005 2016-04-27 18041.550781 17290.490234 2015.400024 2016-04-28 17830.759766 16666.050781 2000.930054 2016-05-02 17891.160156 16147.379883 1978.150024 2016-05-09 17705.910156 16216.030273 1967.810059 2016-05-10 17928.349609 16565.189453 1982.5 2016-05-11 17711.119141 16579.009766 1980.099976 2016-05-12 17720.5 16646.339844 1977.48999 2016-05-13 17535.320312 16412.210938 1966.98999 2016-05-16 17710.710938 16466.400391 1967.910034 2016-05-17 17529.980469 16652.800781 1968.060059 2016-05-18 17526.619141 16644.689453 1956.72998 2016-05-19 17435.400391 16646.660156 1946.780029 2016-05-20 17500.939453 16736.349609 1947.670044 2016-05-23 17492.929688 16654.599609 1955.25 2016-05-24 17706.050781 16498.759766 1937.680054 2016-05-25 17851.509766 16757.349609 1960.51001 2016-05-26 17828.289062 16772.460938 1957.060059 2016-05-27 17873.220703 16834.839844 1969.170044 2016-05-31 17787.199219 17234.980469 1983.400024 2016-06-01 17789.669922 16955.730469 1982.719971 2016-06-02 17838.560547 16562.550781 1985.109985 2016-06-03 17807.060547 16642.230469 1985.839966 2016-06-07 17938.279297 16675.449219 2011.630005 2016-06-08 18005.050781 16830.919922 2027.079956 2016-06-09 17985.189453 16668.410156 2024.170044 2016-06-10 17865.339844 16601.359375 2017.630005 2016-06-13 17732.480469 16019.179688 1979.060059 2016-06-14 17674.820312 15859.0 1972.030029 2016-06-15 17640.169922 15919.580078 1968.829956 2016-06-16 17733.099609 15434.139648 1951.98999 2016-06-17 17675.160156 15599.660156 1953.400024 2016-06-20 17804.869141 15965.299805 1981.119995 2016-06-21 17829.730469 16169.110352 1982.699951 2016-06-22 17780.830078 16065.719727 1992.579956 2016-06-23 18011.070312 16238.349609 1986.709961 2016-06-24 17400.75 14952.019531 1925.23999 2016-06-27 17140.240234 15309.209961 1926.849976 2016-06-28 17409.720703 15323.139648 1936.219971 2016-06-29 17694.679688 15566.830078 1956.359985 2016-06-30 17929.990234 15575.919922 1970.349976 2016-07-01 17949.369141 15682.480469 1987.319946 2016-07-05 17840.619141 15669.330078 1989.849976 2016-07-06 17918.619141 15378.990234 1953.119995 2016-07-07 17895.880859 15276.240234 1974.079956 2016-07-08 18146.740234 15106.980469 1963.099976 2016-07-11 18226.929688 15708.820312 1988.540039 2016-07-12 18347.669922 16095.650391 1991.22998 2016-07-13 18372.119141 16231.429688 2005.550049 2016-07-14 18506.410156 16385.890625 2008.77002 2016-07-15 18516.550781 16497.849609 2017.26001 2016-07-19 18559.009766 16723.310547 2016.890015 2016-07-20 18595.029297 16681.890625 2015.459961 2016-07-21 18517.230469 16810.220703 2012.219971 2016-07-22 18570.849609 16627.25 2010.339966
print()
print('h(X) = ', theta[1], 'x1(DOW) + ', theta[2], 'x2(N225) + ', theta[0])
print()
x1_test = 18313.77
x2_test = 16391.45
y_test = theta[2] * x2_test + theta[1] * x1_test + theta[0]
print('2016-08-02 DOW30 : ', x1_test)
print('2016-08-02 N225 : ', x2_test)
print('2016-08-02 estimated KOSPI : ', y_test)
print('2016-08-02 KOSPI : ', 2019.03)
print()
x1_test = 18570.849609
x2_test = 16627.25
y_test = theta[2] * x2_test + theta[1] * x1_test + theta[0]
print('2016-07-22 DOW30 : ', x1_test)
print('2016-07-22 N225 : ', x2_test)
print('2016-07-22 estimated KOSPI : ', y_test)
print('2016-07-22 KOSPI : ', 2010.339966)
h(X) = [[ 0.05802067]] x1(DOW) + [[ 0.01919701]] x2(N225) + [[ 625.74535141]] 2016-08-02 DOW30 : 18313.77 2016-08-02 N225 : 16391.45 2016-08-02 estimated KOSPI : [[ 2002.98924126]] 2016-08-02 KOSPI : 2019.03 2016-07-22 DOW30 : 18570.849609 2016-07-22 N225 : 16627.25 2016-07-22 estimated KOSPI : [[ 2022.43182531]] 2016-07-22 KOSPI : 2010.339966