You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2882 lines
155 KiB

2 years ago
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "a4ee5431-61a4-45ba-8075-c9bc4981c3d1",
"metadata": {},
"outputs": [],
"source": [
"from pprint import pprint\n",
"from pathlib import Path\n",
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "7e6b5b5d-9556-4e32-97db-598170e51e8f",
"metadata": {},
"outputs": [],
"source": [
"import qlib\n",
"from qlib.constant import REG_CN"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "462a4caa-030b-4c5a-bdaf-6da2e2a7018f",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"[64026:MainThread](2022-06-23 17:30:31,270) INFO - qlib.Initialization - [config.py:413] - default_conf: client.\n",
"[64026:MainThread](2022-06-23 17:30:31,395) INFO - qlib.Initialization - [__init__.py:74] - qlib successfully initialized based on client settings.\n",
"[64026:MainThread](2022-06-23 17:30:31,395) INFO - qlib.Initialization - [__init__.py:76] - data_path={'__DEFAULT_FREQ': PosixPath('/home/guofu/Workspaces/guofu/TslDataFeed/qlib-data/target/market/k-daily')}\n"
]
}
],
"source": [
"provider_uri = 'qlib-data/target/market/k-daily/'\n",
"qlib.init(provider_uri=provider_uri, region=REG_CN)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "d17953b5-f84d-4d07-b348-9f2e3058e09c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([Timestamp('2010-01-04 00:00:00'), Timestamp('2010-01-05 00:00:00')],\n",
" dtype=object)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from qlib.data import D\n",
"D.calendar(start_time='2010-01-01', end_time='2019-12-31', freq='day')[:2]"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "3110bbee-95e5-4077-8bf7-bbf130a8e395",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th></th>\n",
" <th>$close</th>\n",
" <th>$factor</th>\n",
" <th>$volume</th>\n",
" </tr>\n",
" <tr>\n",
" <th>instrument</th>\n",
" <th>datetime</th>\n",
" <th></th>\n",
" <th></th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th rowspan=\"19\" valign=\"top\">SH600519</th>\n",
" <th>2022-05-05</th>\n",
" <td>1837.000000</td>\n",
" <td>0.038907</td>\n",
" <td>3366094.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-06</th>\n",
" <td>1793.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2859618.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-09</th>\n",
" <td>1752.000000</td>\n",
" <td>0.038907</td>\n",
" <td>3035182.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-10</th>\n",
" <td>1766.189941</td>\n",
" <td>0.038907</td>\n",
" <td>4011919.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-11</th>\n",
" <td>1768.000000</td>\n",
" <td>0.038907</td>\n",
" <td>3031267.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-12</th>\n",
" <td>1762.670044</td>\n",
" <td>0.038907</td>\n",
" <td>2203823.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-13</th>\n",
" <td>1778.239990</td>\n",
" <td>0.038907</td>\n",
" <td>2073052.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-16</th>\n",
" <td>1758.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2776531.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-17</th>\n",
" <td>1768.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2014474.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-18</th>\n",
" <td>1761.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2485044.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-19</th>\n",
" <td>1756.000000</td>\n",
" <td>0.038907</td>\n",
" <td>1977626.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-20</th>\n",
" <td>1800.010010</td>\n",
" <td>0.038907</td>\n",
" <td>4194960.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-23</th>\n",
" <td>1781.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2215713.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-24</th>\n",
" <td>1760.000000</td>\n",
" <td>0.038907</td>\n",
" <td>2734222.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-25</th>\n",
" <td>1755.510010</td>\n",
" <td>0.038907</td>\n",
" <td>2238869.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-26</th>\n",
" <td>1742.800049</td>\n",
" <td>0.038907</td>\n",
" <td>2805344.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-27</th>\n",
" <td>1755.160034</td>\n",
" <td>0.038907</td>\n",
" <td>2511958.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-30</th>\n",
" <td>1778.410034</td>\n",
" <td>0.038907</td>\n",
" <td>3446569.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2022-05-31</th>\n",
" <td>1804.030029</td>\n",
" <td>0.038907</td>\n",
" <td>4075082.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" $close $factor $volume\n",
"instrument datetime \n",
"SH600519 2022-05-05 1837.000000 0.038907 3366094.0\n",
" 2022-05-06 1793.000000 0.038907 2859618.0\n",
" 2022-05-09 1752.000000 0.038907 3035182.0\n",
" 2022-05-10 1766.189941 0.038907 4011919.0\n",
" 2022-05-11 1768.000000 0.038907 3031267.0\n",
" 2022-05-12 1762.670044 0.038907 2203823.0\n",
" 2022-05-13 1778.239990 0.038907 2073052.0\n",
" 2022-05-16 1758.000000 0.038907 2776531.0\n",
" 2022-05-17 1768.000000 0.038907 2014474.0\n",
" 2022-05-18 1761.000000 0.038907 2485044.0\n",
" 2022-05-19 1756.000000 0.038907 1977626.0\n",
" 2022-05-20 1800.010010 0.038907 4194960.0\n",
" 2022-05-23 1781.000000 0.038907 2215713.0\n",
" 2022-05-24 1760.000000 0.038907 2734222.0\n",
" 2022-05-25 1755.510010 0.038907 2238869.0\n",
" 2022-05-26 1742.800049 0.038907 2805344.0\n",
" 2022-05-27 1755.160034 0.038907 2511958.0\n",
" 2022-05-30 1778.410034 0.038907 3446569.0\n",
" 2022-05-31 1804.030029 0.038907 4075082.0"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"D.features(['SH600519'], \n",
" ['$close', '$factor', '$volume'], \n",
" start_time='2022-05-01', end_time='2022-05-31'\n",
" )"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "130b595e-1025-44d5-a1a0-e83a5594f026",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" $open $high $low $close $volume $factor\n",
"instrument datetime \n",
"SH601216 2020-05-06 2.85 2.91 2.82 2.89 41379160.0 0.079303\n",
" 2020-05-07 2.89 2.90 2.85 2.86 29762070.0 0.079303\n",
" 2020-05-08 2.87 2.90 2.86 2.87 28355788.0 0.079303\n",
" 2020-05-11 2.88 2.89 2.86 2.87 23293712.0 0.079303\n",
" 2020-05-12 2.87 2.89 2.86 2.87 19887894.0 0.079303\n",
" 2020-05-13 2.87 2.87 2.85 2.87 19220766.0 0.079303\n",
" 2020-05-14 2.86 2.87 2.83 2.83 27414002.0 0.079303\n",
" 2020-05-15 2.84 2.85 2.80 2.81 17712920.0 0.079303\n",
" 2020-05-18 2.83 2.87 2.81 2.83 24515376.0 0.079303\n",
" 2020-05-19 2.84 2.86 2.82 2.83 15435646.0 0.079303\n",
" 2020-05-20 2.88 3.00 2.88 2.96 93234496.0 0.079303\n",
" 2020-05-21 2.98 3.00 2.94 2.96 49795752.0 0.079303\n",
" 2020-05-22 2.96 2.97 2.91 2.96 46242076.0 0.079303\n",
" 2020-05-25 2.99 3.01 2.94 2.99 71138352.0 0.079303\n",
" 2020-05-26 2.63 2.63 2.51 2.55 80402464.0 0.070020\n",
" 2020-05-27 2.53 2.54 2.48 2.49 38057112.0 0.070020\n",
" 2020-05-28 2.47 2.52 2.47 2.49 21264260.0 0.070020\n",
" 2020-05-29 2.49 2.49 2.46 2.48 22057360.0 0.070020\n",
" 2020-06-01 2.49 2.54 2.48 2.53 28091710.0 0.070020\n",
" 2020-06-02 2.55 2.55 2.50 2.53 23823118.0 0.070020\n",
" 2020-06-03 2.53 2.57 2.53 2.53 26374100.0 0.070020\n",
" 2020-06-04 2.53 2.54 2.51 2.52 17998960.0 0.070020\n",
" 2020-06-05 2.53 2.53 2.50 2.52 17636240.0 0.070020\n",
" 2020-06-08 2.52 2.54 2.51 2.53 19058552.0 0.070020\n",
" 2020-06-09 2.53 2.54 2.51 2.53 17052228.0 0.070020\n",
" 2020-06-10 2.53 2.53 2.50 2.51 13044420.0 0.070020\n",
"SH601226 2020-05-06 3.79 3.83 3.76 3.82 1787352.0 0.653196\n",
" 2020-05-07 3.83 3.86 3.80 3.81 1464540.0 0.653196\n",
" 2020-05-08 3.83 3.84 3.81 3.83 1811100.0 0.653196\n",
" 2020-05-11 3.84 3.85 3.80 3.82 1609700.0 0.653196\n",
" 2020-05-12 3.82 3.82 3.74 3.79 2060700.0 0.653196\n",
" 2020-05-13 3.79 3.80 3.75 3.79 1685700.0 0.653196\n",
" 2020-05-14 3.78 3.78 3.75 3.76 1505500.0 0.653196\n",
" 2020-05-15 3.76 3.78 3.76 3.77 1067100.0 0.653196\n",
" 2020-05-18 3.77 3.79 3.73 3.79 1886750.0 0.653196\n",
" 2020-05-19 3.80 3.83 3.77 3.79 1430700.0 0.653196\n",
" 2020-05-20 3.79 3.79 3.73 3.73 2318142.0 0.653196\n",
" 2020-05-21 3.74 3.75 3.72 3.73 1677042.0 0.653196\n",
" 2020-05-22 3.73 3.73 3.65 3.65 2952700.0 0.653196\n",
" 2020-05-25 3.65 3.66 3.60 3.61 2197650.0 0.653196\n",
" 2020-05-26 3.61 3.68 3.61 3.67 1395300.0 0.653196\n",
" 2020-05-27 3.67 3.70 3.64 3.69 1506800.0 0.653196\n",
" 2020-05-28 3.68 3.70 3.62 3.66 1596750.0 0.653196\n",
" 2020-05-29 3.64 3.71 3.63 3.67 1506901.0 0.653196\n",
" 2020-06-01 3.68 3.77 3.68 3.75 2344991.0 0.653196\n",
" 2020-06-02 3.73 3.79 3.73 3.77 1902000.0 0.653196\n",
" 2020-06-03 3.78 3.80 3.75 3.75 1723665.0 0.653196\n",
" 2020-06-04 3.77 3.78 3.74 3.77 1351150.0 0.653196\n",
" 2020-06-05 3.77 3.78 3.75 3.78 1308801.0 0.653196\n",
" 2020-06-08 3.80 3.80 3.75 3.76 1219050.0 0.653196\n",
" 2020-06-09 3.77 3.93 3.74 3.84 3872250.0 0.653196\n",
" 2020-06-10 3.81 3.84 3.74 3.76 2186850.0 0.653196\n"
]
}
],
"source": [
"df = D.features(['SH601216', 'SH601226'], \n",
" ['$open', '$high', '$low', '$close', '$volume', '$factor'], \n",
" start_time='2020-05-01', end_time='2020-06-10'\n",
" )\n",
"pprint(df)"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "09e1e518-0874-4f76-a0e0-591a71935d13",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"close": [
2.890000104904175,
2.859999895095825,
2.869999885559082,
2.869999885559082,
2.869999885559082,
2.869999885559082,
2.8299999237060547,
2.809999942779541,
2.8299999237060547,
2.8299999237060547,
2.9600000381469727,
2.9600000381469727,
2.9600000381469727,
2.990000009536743,
2.549999952316284,
2.490000009536743,
2.490000009536743,
2.4800000190734863,
2.5299999713897705,
2.5299999713897705,
2.5299999713897705,
2.5199999809265137,
2.5199999809265137,
2.5299999713897705,
2.5299999713897705,
2.509999990463257,
3.819999933242798,
3.809999942779541,
3.8299999237060547,
3.819999933242798,
3.7899999618530273,
3.7899999618530273,
3.759999990463257,
3.7699999809265137,
3.7899999618530273,
3.7899999618530273,
3.7300000190734863,
3.7300000190734863,
3.6500000953674316,
3.609999895095825,
3.6700000762939453,
3.690000057220459,
3.6600000858306885,
3.6700000762939453,
3.75,
3.7699999809265137,
3.75,
3.7699999809265137,
3.7799999713897705,
3.759999990463257,
3.8399999141693115,
3.759999990463257
],
"high": [
2.9100000858306885,
2.9000000953674316,
2.9000000953674316,
2.890000104904175,
2.890000104904175,
2.869999885559082,
2.869999885559082,
2.8499999046325684,
2.869999885559082,
2.859999895095825,
3,
3,
2.9700000286102295,
3.009999990463257,
2.630000114440918,
2.5399999618530273,
2.5199999809265137,
2.490000009536743,
2.5399999618530273,
2.549999952316284,
2.569999933242798,
2.5399999618530273,
2.5299999713897705,
2.5399999618530273,
2.5399999618530273,
2.5299999713897705,
3.8299999237060547,
3.859999895095825,
3.8399999141693115,
3.8499999046325684,
3.819999933242798,
3.799999952316284,
3.7799999713897705,
3.7799999713897705,
3.7899999618530273,
3.8299999237060547,
3.7899999618530273,
3.75,
3.7300000190734863,
3.6600000858306885,
3.680000066757202,
3.700000047683716,
3.700000047683716,
3.7100000381469727,
3.7699999809265137,
3.7899999618530273,
3.799999952316284,
3.7799999713897705,
3.7799999713897705,
3.799999952316284,
3.930000066757202,
3.8399999141693115
],
"low": [
2.819999933242798,
2.8499999046325684,
2.859999895095825,
2.859999895095825,
2.859999895095825,
2.8499999046325684,
2.8299999237060547,
2.799999952316284,
2.809999942779541,
2.819999933242798,
2.880000114440918,
2.940000057220459,
2.9100000858306885,
2.940000057220459,
2.509999990463257,
2.4800000190734863,
2.4700000286102295,
2.4600000381469727,
2.4800000190734863,
2.5,
2.5299999713897705,
2.509999990463257,
2.5,
2.509999990463257,
2.509999990463257,
2.5,
3.759999990463257,
3.799999952316284,
3.809999942779541,
3.799999952316284,
3.740000009536743,
3.75,
3.75,
3.759999990463257,
3.7300000190734863,
3.7699999809265137,
3.7300000190734863,
3.7200000286102295,
3.6500000953674316,
3.5999999046325684,
3.609999895095825,
3.640000104904175,
3.619999885559082,
3.630000114440918,
3.680000066757202,
3.7300000190734863,
3.75,
3.740000009536743,
3.75,
3.75,
3.740000009536743,
3.740000009536743
],
"open": [
2.8499999046325684,
2.890000104904175,
2.869999885559082,
2.880000114440918,
2.869999885559082,
2.869999885559082,
2.859999895095825,
2.8399999141693115,
2.8299999237060547,
2.8399999141693115,
2.880000114440918,
2.9800000190734863,
2.9600000381469727,
2.990000009536743,
2.630000114440918,
2.5299999713897705,
2.4700000286102295,
2.490000009536743,
2.490000009536743,
2.549999952316284,
2.5299999713897705,
2.5299999713897705,
2.5299999713897705,
2.5199999809265137,
2.5299999713897705,
2.5299999713897705,
3.7899999618530273,
3.8299999237060547,
3.8299999237060547,
3.8399999141693115,
3.819999933242798,
3.7899999618530273,
3.7799999713897705,
3.759999990463257,
3.7699999809265137,
3.799999952316284,
3.7899999618530273,
3.740000009536743,
3.7300000190734863,
3.6500000953674316,
3.609999895095825,
3.6700000762939453,
3.680000066757202,
3.640000104904175,
3.680000066757202,
3.7300000190734863,
3.7799999713897705,
3.7699999809265137,
3.7699999809265137,
3.799999952316284,
3.7699999809265137,
3.809999942779541
],
"type": "candlestick",
"x": [
"2020-05-06T00:00:00",
"2020-05-07T00:00:00",
"2020-05-08T00:00:00",
"2020-05-11T00:00:00",
"2020-05-12T00:00:00",
"2020-05-13T00:00:00",
"2020-05-14T00:00:00",
"2020-05-15T00:00:00",
"2020-05-18T00:00:00",
"2020-05-19T00:00:00",
"2020-05-20T00:00:00",
"2020-05-21T00:00:00",
"2020-05-22T00:00:00",
"2020-05-25T00:00:00",
"2020-05-26T00:00:00",
"2020-05-27T00:00:00",
"2020-05-28T00:00:00",
"2020-05-29T00:00:00",
"2020-06-01T00:00:00",
"2020-06-02T00:00:00",
"2020-06-03T00:00:00",
"2020-06-04T00:00:00",
"2020-06-05T00:00:00",
"2020-06-08T00:00:00",
"2020-06-09T00:00:00",
"2020-06-10T00:00:00",
"2020-05-06T00:00:00",
"2020-05-07T00:00:00",
"2020-05-08T00:00:00",
"2020-05-11T00:00:00",
"2020-05-12T00:00:00",
"2020-05-13T00:00:00",
"2020-05-14T00:00:00",
"2020-05-15T00:00:00",
"2020-05-18T00:00:00",
"2020-05-19T00:00:00",
"2020-05-20T00:00:00",
"2020-05-21T00:00:00",
"2020-05-22T00:00:00",
"2020-05-25T00:00:00",
"2020-05-26T00:00:00",
"2020-05-27T00:00:00",
"2020-05-28T00:00:00",
"2020-05-29T00:00:00",
"2020-06-01T00:00:00",
"2020-06-02T00:00:00",
"2020-06-03T00:00:00",
"2020-06-04T00:00:00",
"2020-06-05T00:00:00",
"2020-06-08T00:00:00",
"2020-06-09T00:00:00",
"2020-06-10T00:00:00"
]
}
],
"layout": {
"autosize": true,
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"xaxis": {
"autorange": true,
"range": [
"2020-05-05 12:00",
"2020-06-10 12:00"
],
"rangeslider": {
"autorange": true,
"range": [
"2020-05-05 12:00",
"2020-06-10 12:00"
],
"yaxis": {
"_template": null,
"rangemode": "match"
}
},
"type": "date"
},
"yaxis": {
"autorange": true,
"range": [
2.3783333698908486,
4.011666735013326
]
}
}
},
"image/png": "iVBORw0KGgoAAAANSUhEUgAABSAAAAFoCAYAAABHUVUDAAAAAXNSR0IArs4c6QAAIABJREFUeF7t3QmYnVV9P/DfJCRkNZGduCQQQFk04tL618pS6oJF6gKIogJqrAiIIpZFgbDKakHEDWQRFwriVhQRUcQuVquCFrCyJRQIEMBQyDoJ83/eSyeSkJnJ3DPvPffe85nn6fPUzD3vec/nd368M99573t7+vr6+sIXAQIECBAgQIAAAQIECBAgQIAAAQIEahDoEUDWoOqQBAgQIECAAAECBAgQIECAAAECBAg0BASQNgIBAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJDD2APX3vDLOPmcy+Lqy06LKZMnDmOklxIgQIAAAQIECBAgQIAAAQIECBAoU0AAuY51/83vb493H3pKbLrxs+PbF50sgFxHNy8jQIAAAQIECBAgQIAAAQIECBAoW0AAuQ71v+ue+fGm9xwdH5m9V3zlymvdAbkOZl5CgAABAgQIECBAgAABAgQIECBAoBIQQA6xDx5d+Hi85s2HxhdOPzy23vK5sffs4wWQeocAAQIECBAgQIAAAQIECBAgQIDAOgoIIAeBWrxkWex38ElxwNt3j797/avjvgcejn0/eEL86PKzY/y4sY2R9z+yZB2pvYzA6gKTx68X0dMTjy/uRUOAQIsF9F+LwU1H4GkC+s92IJBPQP/lszczAf3X+Xtg2objO38RGVcggBwE/85598ee+x8TB+67e0ycMC7unjc/vn/9L2KvPXaO/fd5Q2z5/M0FkBk3b6dP7QLU6RV0/p0soP86uXrOvdMF9F+nV9D5d7KA/uvk6jn3ThfQf51ewQg
"text/html": [
"<div> <div id=\"a39d3fcd-8584-4c86-b431-1292ea2f3d1a\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"a39d3fcd-8584-4c86-b431-1292ea2f3d1a\")) { Plotly.newPlot( \"a39d3fcd-8584-4c86-b431-1292ea2f3d1a\", [{\"close\":[2.890000104904175,2.859999895095825,2.869999885559082,2.869999885559082,2.869999885559082,2.869999885559082,2.8299999237060547,2.809999942779541,2.8299999237060547,2.8299999237060547,2.9600000381469727,2.9600000381469727,2.9600000381469727,2.990000009536743,2.549999952316284,2.490000009536743,2.490000009536743,2.4800000190734863,2.5299999713897705,2.5299999713897705,2.5299999713897705,2.5199999809265137,2.5199999809265137,2.5299999713897705,2.5299999713897705,2.509999990463257,3.819999933242798,3.809999942779541,3.8299999237060547,3.819999933242798,3.7899999618530273,3.7899999618530273,3.759999990463257,3.7699999809265137,3.7899999618530273,3.7899999618530273,3.7300000190734863,3.7300000190734863,3.6500000953674316,3.609999895095825,3.6700000762939453,3.690000057220459,3.6600000858306885,3.6700000762939453,3.75,3.7699999809265137,3.75,3.7699999809265137,3.7799999713897705,3.759999990463257,3.8399999141693115,3.759999990463257],\"high\":[2.9100000858306885,2.9000000953674316,2.9000000953674316,2.890000104904175,2.890000104904175,2.869999885559082,2.869999885559082,2.8499999046325684,2.869999885559082,2.859999895095825,3.0,3.0,2.9700000286102295,3.009999990463257,2.630000114440918,2.5399999618530273,2.5199999809265137,2.490000009536743,2.5399999618530273,2.549999952316284,2.569999933242798,2.5399999618530273,2.5299999713897705,2.5399999618530273,2.5399999618530273,2.5299999713897705,3.8299999237060547,3.859999895095825,3.8399999141693115,3.8499999046325684,3.819999933242798,3.799999952316284,3.7799999713897705,3.7799999713897705,3.7899999618530273,3.8299999237060547,3.7899999618530273,3.75,3.7300000190734863,3.6600000858306885,3.680000066757202,3.700000047683716,3.700000047683716,3.7100000381469727,3.7699999809265137,3.7899999618530273,3.799999952316284,3.7799999713897705,3.7799999713897705,3.799999952316284,3.930000066757202,3.8399999141693115],\"low\":[2.819999933242798,2.8499999046325684,2.859999895095825,2.859999895095825,2.859999895095825,2.8499999046325684,2.8299999237060547,2.799999952316284,2.809999942779541,2.819999933242798,2.880000114440918,2.940000057220459,2.9100000858306885,2.940000057220459,2.509999990463257,2.4800000190734863,2.4700000286102295,2.4600000381469727,2.4800000190734863,2.5,2.5299999713897705,2.509999990463257,2.5,2.509999990463257,2.509999990463257,2.5,3.759999990463257,3.799999952316284,3.809999942779541,3.799999952316284,3.740000009536743,3.75,3.75,3.759999990463257,3.7300000190734863,3.7699999809265137,3.7300000190734863,3.7200000286102295,3.6500000953674316,3.5999999046325684,3.609999895095825,3.640000104904175,3.619999885559082,3.630000114440918,3.680000066757202,3.7300000190734863,3.75,3.740000009536743,3.75,3.75,3.740000009536743,3.740000009536743],\"open\":[2.8499999046325684,2.890000104904175,2.869999885559082,2.880000114440918,2.869999885559082,2.869999885559082,2.859999895095825,2.8399999141693115,2.8299999237060547,2.8399999141693115,2.880000114440918,2.9800000190734863,2.9600000381469727,2.990000009536743,2.630000114440918,2.5299999713897705,2.4700000286102295,2.490000009536743,2.490000009536743,2.549999952316284,2.5299999713897705,2.5299999713897705,2.5299999713897705,2.5199999809265137,2.5299999713897705,2.5299999713897705,3.7899999618530273,3.8299999237060547,3.8299999237060547,3.8399999141693115,3.819999933242798,3.7899999618530273,3.7799999713897705,3.759999990463257,3.7699999809265137,3.799999952316284,3.7899999618530273,3.740000009536743,3.7300000190734863,3.6500000953674316,3.609999895095825,3.6700000762939453,3.680000
" \n",
"var gd = document.getElementById('a39d3fcd-8584-4c86-b431-1292ea2f3d1a');\n",
"var x = new MutationObserver(function (mutations, observer) {{\n",
" var display = window.getComputedStyle(gd).display;\n",
" if (!display || display === 'none') {{\n",
" console.log([gd, 'removed!']);\n",
" Plotly.purge(gd);\n",
" observer.disconnect();\n",
" }}\n",
"}});\n",
"\n",
"// Listen for the removal of the full notebook cells\n",
"var notebookContainer = gd.closest('#notebook-container');\n",
"if (notebookContainer) {{\n",
" x.observe(notebookContainer, {childList: true});\n",
"}}\n",
"\n",
"// Listen for the clearing of the current output cell\n",
"var outputEl = gd.closest('.output');\n",
"if (outputEl) {{\n",
" x.observe(outputEl, {childList: true});\n",
"}}\n",
"\n",
" }) }; }); </script> </div>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import plotly.graph_objects as go\n",
"fig = go.Figure(data=[go.Candlestick(x=df.index.get_level_values(\"datetime\"),\n",
" open=df['$open'],\n",
" high=df['$high'],\n",
" low=df['$low'],\n",
" close=df['$close'])])\n",
"fig.show()"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "0fd2ef53-4f8a-4633-8625-c37478ce9e53",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"close": [
36.442665100097656,
36.06436538696289,
36.19046401977539,
36.19046401977539,
36.19046401977539,
36.19046401977539,
35.68606948852539,
35.433868408203125,
35.68606948852539,
35.68606948852539,
37.32535934448242,
37.32535934448242,
37.32535934448242,
37.70365524291992,
36.41830062866211,
35.5614013671875,
35.5614013671875,
35.41858673095703,
36.132667541503906,
36.132667541503906,
36.132667541503906,
35.98985290527344,
35.98985290527344,
36.132667541503906,
36.132667541503906,
35.8470344543457,
5.848165035247803,
5.832855701446533,
5.863474369049072,
5.848165035247803,
5.802237033843994,
5.802237033843994,
5.7563090324401855,
5.771618366241455,
5.802237033843994,
5.802237033843994,
5.710381031036377,
5.710381031036377,
5.587906360626221,
5.526669025421143,
5.61852502822876,
5.649143695831299,
5.60321569442749,
5.61852502822876,
5.740999698638916,
5.771618366241455,
5.740999698638916,
5.771618366241455,
5.786927700042725,
5.7563090324401855,
5.878783702850342,
5.7563090324401855
],
"high": [
36.694862365722656,
36.568763732910156,
36.568763732910156,
36.442665100097656,
36.442665100097656,
36.19046401977539,
36.19046401977539,
35.93826675415039,
36.19046401977539,
36.06436538696289,
37.82975387573242,
37.82975387573242,
37.45145797729492,
37.95585632324219,
37.56084060668945,
36.27548599243164,
35.98985290527344,
35.5614013671875,
36.27548599243164,
36.41830062866211,
36.70393753051758,
36.27548599243164,
36.132667541503906,
36.27548599243164,
36.27548599243164,
36.132667541503906,
5.863474369049072,
5.909402370452881,
5.878783702850342,
5.894093036651611,
5.848165035247803,
5.817546367645264,
5.786927700042725,
5.786927700042725,
5.802237033843994,
5.863474369049072,
5.802237033843994,
5.740999698638916,
5.710381031036377,
5.60321569442749,
5.633834362030029,
5.664453029632568,
5.664453029632568,
5.679762363433838,
5.771618366241455,
5.802237033843994,
5.817546367645264,
5.786927700042725,
5.786927700042725,
5.817546367645264,
6.016567707061768,
5.878783702850342
],
"low": [
35.55997085571289,
35.93826675415039,
36.06436538696289,
36.06436538696289,
36.06436538696289,
35.93826675415039,
35.68606948852539,
35.307769775390625,
35.433868408203125,
35.55997085571289,
36.316566467285156,
37.07316207885742,
36.694862365722656,
37.07316207885742,
35.8470344543457,
35.41858673095703,
35.2757682800293,
35.13295364379883,
35.41858673095703,
35.704219818115234,
36.132667541503906,
35.8470344543457,
35.704219818115234,
35.8470344543457,
35.8470344543457,
35.704219818115234,
5.7563090324401855,
5.817546367645264,
5.832855701446533,
5.817546367645264,
5.7256903648376465,
5.740999698638916,
5.740999698638916,
5.7563090324401855,
5.710381031036377,
5.771618366241455,
5.710381031036377,
5.695071697235107,
5.587906360626221,
5.511359691619873,
5.526669025421143,
5.572597026824951,
5.541978359222412,
5.55728816986084,
5.633834362030029,
5.710381031036377,
5.740999698638916,
5.7256903648376465,
5.740999698638916,
5.740999698638916,
5.7256903648376465,
5.7256903648376465
],
"open": [
35.93826675415039,
36.442665100097656,
36.19046401977539,
36.316566467285156,
36.19046401977539,
36.19046401977539,
36.06436538696289,
35.81216812133789,
35.68606948852539,
35.81216812133789,
36.316566467285156,
37.57755661010742,
37.32535934448242,
37.70365524291992,
37.56084060668945,
36.132667541503906,
35.2757682800293,
35.5614013671875,
35.5614013671875,
36.41830062866211,
36.132667541503906,
36.132667541503906,
36.132667541503906,
35.98985290527344,
36.132667541503906,
36.132667541503906,
5.802237033843994,
5.863474369049072,
5.863474369049072,
5.878783702850342,
5.848165035247803,
5.802237033843994,
5.786927700042725,
5.7563090324401855,
5.771618366241455,
5.817546367645264,
5.802237033843994,
5.7256903648376465,
5.710381031036377,
5.587906360626221,
5.526669025421143,
5.61852502822876,
5.633834362030029,
5.572597026824951,
5.633834362030029,
5.710381031036377,
5.786927700042725,
5.771618366241455,
5.771618366241455,
5.817546367645264,
5.771618366241455,
5.832855701446533
],
"type": "candlestick",
"x": [
"2020-05-06T00:00:00",
"2020-05-07T00:00:00",
"2020-05-08T00:00:00",
"2020-05-11T00:00:00",
"2020-05-12T00:00:00",
"2020-05-13T00:00:00",
"2020-05-14T00:00:00",
"2020-05-15T00:00:00",
"2020-05-18T00:00:00",
"2020-05-19T00:00:00",
"2020-05-20T00:00:00",
"2020-05-21T00:00:00",
"2020-05-22T00:00:00",
"2020-05-25T00:00:00",
"2020-05-26T00:00:00",
"2020-05-27T00:00:00",
"2020-05-28T00:00:00",
"2020-05-29T00:00:00",
"2020-06-01T00:00:00",
"2020-06-02T00:00:00",
"2020-06-03T00:00:00",
"2020-06-04T00:00:00",
"2020-06-05T00:00:00",
"2020-06-08T00:00:00",
"2020-06-09T00:00:00",
"2020-06-10T00:00:00",
"2020-05-06T00:00:00",
"2020-05-07T00:00:00",
"2020-05-08T00:00:00",
"2020-05-11T00:00:00",
"2020-05-12T00:00:00",
"2020-05-13T00:00:00",
"2020-05-14T00:00:00",
"2020-05-15T00:00:00",
"2020-05-18T00:00:00",
"2020-05-19T00:00:00",
"2020-05-20T00:00:00",
"2020-05-21T00:00:00",
"2020-05-22T00:00:00",
"2020-05-25T00:00:00",
"2020-05-26T00:00:00",
"2020-05-27T00:00:00",
"2020-05-28T00:00:00",
"2020-05-29T00:00:00",
"2020-06-01T00:00:00",
"2020-06-02T00:00:00",
"2020-06-03T00:00:00",
"2020-06-04T00:00:00",
"2020-06-05T00:00:00",
"2020-06-08T00:00:00",
"2020-06-09T00:00:00",
"2020-06-10T00:00:00"
]
}
],
"layout": {
"autosize": true,
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
},
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"pattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"pie": [
{
"automargin": true,
"type": "pie"
}
],
"scatter": [
{
"fillpattern": {
"fillmode": "overlay",
"size": 10,
"solidity": 0.2
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"autotypenumbers": "strict",
"coloraxis": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"title": {
"standoff": 15
},
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"xaxis": {
"autorange": true,
"range": [
"2020-05-05 12:00",
"2020-06-10 12:00"
],
"rangeslider": {
"autorange": true,
"range": [
"2020-05-05 12:00",
"2020-06-10 12:00"
],
"yaxis": {
"_template": null,
"rangemode": "match"
}
},
"type": "date"
},
"yaxis": {
"autorange": true,
"range": [
3.708887656529744,
39.758328358332314
]
}
}
},
"image/png": "iVBORw0KGgoAAAANSUhEUgAABSAAAAFoCAYAAABHUVUDAAAAAXNSR0IArs4c6QAAIABJREFUeF7t3Qu0XVV5L/AvhARyEpIIRBC0JAIiiFLUai+tAlIUW8CivESUV6OCQSSAaHgkvGKIoAKiUBAIiFWoWARFxUfFe9V6rw/aUnrllVDeEZpcyPMk5I619RxDgAT2PGvPvfb8nTEcw0POXHPN3ze/s/b+n7X3HrZq1apV4YsAAQIECBAgQIAAAQIECBAgQIAAAQI1CAwTQNag6pAECBAgQIAAAQIECBAgQIAAAQIECLQEBJA2AgECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQ9gABAgQIECBAgAABAgQIECBAgAABArUJCCBro3VgAgQIECBAgAABAgQIECBAgAABAgQEkPYAAQIECBAgQIAAAQIECBAgQIAAAQK1CQgga6N1YAIECBAgQIAAAQIECBAgQIAAAQIEBJD2AAECBAgQIECAAAECBAgQIECAAAECtQkIIGujdWACBAgQIECAAAECBAgQIECAAAECBASQiXvgoceXJB7B8FIFNhq1fsSwYfHk4v5SCaybQDYB/ZeN3sQEQv/ZBATyCei/fPZmJqD/mr8HtthkVPMXkXEFAshEfAFkImDBw12ACi6+pWcX0H/ZS+AEChbQfwUX39KzC+i/7CVwAgUL6L/mF18AmVZDAWSaXwggEwELHu4CVHDxLT27gP7LXgInULCA/iu4+JaeXUD/ZS+BEyhYQP81v/gCyLQaCiDT/ASQiX4lD3cBKrn61p5bQP/lroD5SxbQfyVX39pzC+i/3BUwf8kC+q/51RdAptVQAJnmJ4BM9Ct5uAtQydW39twC+i93BcxfsoD+K7n61p5bQP/lroD5SxbQf82vvgAyrYYCyDQ/AWSiX8n
"text/html": [
"<div> <div id=\"bf54627f-ae5b-41df-b29b-5a50db99a8b8\" class=\"plotly-graph-div\" style=\"height:525px; width:100%;\"></div> <script type=\"text/javascript\"> require([\"plotly\"], function(Plotly) { window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById(\"bf54627f-ae5b-41df-b29b-5a50db99a8b8\")) { Plotly.newPlot( \"bf54627f-ae5b-41df-b29b-5a50db99a8b8\", [{\"close\":[36.442665100097656,36.06436538696289,36.19046401977539,36.19046401977539,36.19046401977539,36.19046401977539,35.68606948852539,35.433868408203125,35.68606948852539,35.68606948852539,37.32535934448242,37.32535934448242,37.32535934448242,37.70365524291992,36.41830062866211,35.5614013671875,35.5614013671875,35.41858673095703,36.132667541503906,36.132667541503906,36.132667541503906,35.98985290527344,35.98985290527344,36.132667541503906,36.132667541503906,35.8470344543457,5.848165035247803,5.832855701446533,5.863474369049072,5.848165035247803,5.802237033843994,5.802237033843994,5.7563090324401855,5.771618366241455,5.802237033843994,5.802237033843994,5.710381031036377,5.710381031036377,5.587906360626221,5.526669025421143,5.61852502822876,5.649143695831299,5.60321569442749,5.61852502822876,5.740999698638916,5.771618366241455,5.740999698638916,5.771618366241455,5.786927700042725,5.7563090324401855,5.878783702850342,5.7563090324401855],\"high\":[36.694862365722656,36.568763732910156,36.568763732910156,36.442665100097656,36.442665100097656,36.19046401977539,36.19046401977539,35.93826675415039,36.19046401977539,36.06436538696289,37.82975387573242,37.82975387573242,37.45145797729492,37.95585632324219,37.56084060668945,36.27548599243164,35.98985290527344,35.5614013671875,36.27548599243164,36.41830062866211,36.70393753051758,36.27548599243164,36.132667541503906,36.27548599243164,36.27548599243164,36.132667541503906,5.863474369049072,5.909402370452881,5.878783702850342,5.894093036651611,5.848165035247803,5.817546367645264,5.786927700042725,5.786927700042725,5.802237033843994,5.863474369049072,5.802237033843994,5.740999698638916,5.710381031036377,5.60321569442749,5.633834362030029,5.664453029632568,5.664453029632568,5.679762363433838,5.771618366241455,5.802237033843994,5.817546367645264,5.786927700042725,5.786927700042725,5.817546367645264,6.016567707061768,5.878783702850342],\"low\":[35.55997085571289,35.93826675415039,36.06436538696289,36.06436538696289,36.06436538696289,35.93826675415039,35.68606948852539,35.307769775390625,35.433868408203125,35.55997085571289,36.316566467285156,37.07316207885742,36.694862365722656,37.07316207885742,35.8470344543457,35.41858673095703,35.2757682800293,35.13295364379883,35.41858673095703,35.704219818115234,36.132667541503906,35.8470344543457,35.704219818115234,35.8470344543457,35.8470344543457,35.704219818115234,5.7563090324401855,5.817546367645264,5.832855701446533,5.817546367645264,5.7256903648376465,5.740999698638916,5.740999698638916,5.7563090324401855,5.710381031036377,5.771618366241455,5.710381031036377,5.695071697235107,5.587906360626221,5.511359691619873,5.526669025421143,5.572597026824951,5.541978359222412,5.55728816986084,5.633834362030029,5.710381031036377,5.740999698638916,5.7256903648376465,5.740999698638916,5.740999698638916,5.7256903648376465,5.7256903648376465],\"open\":[35.93826675415039,36.442665100097656,36.19046401977539,36.316566467285156,36.19046401977539,36.19046401977539,36.06436538696289,35.81216812133789,35.68606948852539,35.81216812133789,36.316566467285156,37.57755661010742,37.32535934448242,37.70365524291992,37.56084060668945,36.132667541503906,35.2757682800293,35.5614013671875,35.5614013671875,36.41830062866211,36.132667541503906,36.132667541503906,36.132667541503906,35.98985290527344,36.132667541503906,36.132667541503906,5.802237033843994,5.863474369049072,5.863474369049072,5.878783702850342,5.848165035247803,5.802237033843994,5.786927700042725,5.7563090324401855,5.771618366241455,5.817546367645264,5.802237033843994,
" \n",
"var gd = document.getElementById('bf54627f-ae5b-41df-b29b-5a50db99a8b8');\n",
"var x = new MutationObserver(function (mutations, observer) {{\n",
" var display = window.getComputedStyle(gd).display;\n",
" if (!display || display === 'none') {{\n",
" console.log([gd, 'removed!']);\n",
" Plotly.purge(gd);\n",
" observer.disconnect();\n",
" }}\n",
"}});\n",
"\n",
"// Listen for the removal of the full notebook cells\n",
"var notebookContainer = gd.closest('#notebook-container');\n",
"if (notebookContainer) {{\n",
" x.observe(notebookContainer, {childList: true});\n",
"}}\n",
"\n",
"// Listen for the clearing of the current output cell\n",
"var outputEl = gd.closest('.output');\n",
"if (outputEl) {{\n",
" x.observe(outputEl, {childList: true});\n",
"}}\n",
"\n",
" }) }; }); </script> </div>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import plotly.graph_objects as go\n",
"fig = go.Figure(data=[go.Candlestick(x=df.index.get_level_values(\"datetime\"),\n",
" open=df['$open'] / df['$factor'],\n",
" high=df['$high'] / df['$factor'],\n",
" low=df['$low'] / df['$factor'],\n",
" close=df['$close'] / df['$factor'])])\n",
"fig.show()"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "9dc26721-c180-4346-91c9-d3ce01625825",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'market': 'csi100', 'filter_pipe': []}"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"D.instruments('csi100')"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "d6949cac-2f51-44d9-b3ac-0b73644715cc",
"metadata": {},
"outputs": [],
"source": [
"p = Path('qlib-data/target/financial').expanduser()"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "2f89ccce-1e40-4599-b873-d61944fc5b44",
"metadata": {},
"outputs": [],
"source": [
"instruments = [\"sh600519\", \"sz000725\"]\n",
"data = D.features(instruments, ['P($$roewa_q)'], start_time=\"2019-01-01\", end_time=\"2019-07-19\", freq=\"day\")"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "26a494b1-81fe-4ac3-987a-82f27cc1a21d",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th></th>\n",
" <th>P($$roewa_q)</th>\n",
" </tr>\n",
" <tr>\n",
" <th>instrument</th>\n",
" <th>datetime</th>\n",
" <th></th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th rowspan=\"5\" valign=\"top\">sh600519</th>\n",
" <th>2019-01-02</th>\n",
" <td>0.255220</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-01-03</th>\n",
" <td>0.255220</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-01-04</th>\n",
" <td>0.255220</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-01-07</th>\n",
" <td>0.255220</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-01-08</th>\n",
" <td>0.255220</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th rowspan=\"5\" valign=\"top\">sz000725</th>\n",
" <th>2019-07-15</th>\n",
" <td>0.012164</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-07-16</th>\n",
" <td>0.012164</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-07-17</th>\n",
" <td>0.012164</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-07-18</th>\n",
" <td>0.012164</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2019-07-19</th>\n",
" <td>0.012164</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>266 rows × 1 columns</p>\n",
"</div>"
],
"text/plain": [
" P($$roewa_q)\n",
"instrument datetime \n",
"sh600519 2019-01-02 0.255220\n",
" 2019-01-03 0.255220\n",
" 2019-01-04 0.255220\n",
" 2019-01-07 0.255220\n",
" 2019-01-08 0.255220\n",
"... ...\n",
"sz000725 2019-07-15 0.012164\n",
" 2019-07-16 0.012164\n",
" 2019-07-17 0.012164\n",
" 2019-07-18 0.012164\n",
" 2019-07-19 0.012164\n",
"\n",
"[266 rows x 1 columns]"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"data"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "43aabad1-4718-4a30-a549-5707de7b1e0b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}