update notebook examples

This commit is contained in:
fasiondog 2021-02-12 17:26:00 +08:00
parent 890b78731f
commit 4f15153b03
6 changed files with 118 additions and 3986 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -11,14 +11,15 @@
"text": [
"std::cout are redirected to python::stdout\n",
"std::cerr are redirected to python::stderr\n",
"2020-08-05 23:41:43.041 [HKU-I] - Loading market information... [loadBaseInfo]\n",
"2020-08-05 23:41:43.042 [HKU-I] - Loading stock type information... [loadBaseInfo]\n",
"2020-08-05 23:41:43.043 [HKU-I] - Loading stock information... [loadBaseInfo]\n",
"2020-08-05 23:41:43.317 [HKU-I] - Loading KData... [init]\n",
"2020-08-05 23:41:43.344 [HKU-I] - Preloading all day kdata to buffer! [setKDataDriver]\n",
"2020-08-05 23:41:48.509 [HKU-I] - 5.19s Loaded Data. [init]\n",
"CPU times: user 5.52 s, sys: 375 ms, total: 5.9 s\n",
"Wall time: 5.9 s\n"
"2021-02-12 17:02:02.409 [HKU-I] - Using SQLITE3 BaseInfoDriver (BaseInfoDriver.cpp:58)\n",
"2021-02-12 17:02:02.411 [HKU-I] - Loading market information... (StockManager.cpp:473)\n",
"2021-02-12 17:02:02.412 [HKU-I] - Loading stock type information... (StockManager.cpp:486)\n",
"2021-02-12 17:02:02.413 [HKU-I] - Loading stock information... (StockManager.cpp:422)\n",
"2021-02-12 17:02:02.501 [HKU-I] - Loading stock weight... (StockManager.cpp:503)\n",
"2021-02-12 17:02:03.904 [HKU-I] - Loading KData... (StockManager.cpp:138)\n",
"2021-02-12 17:02:03.909 [HKU-I] - Preloading all day kdata to buffer! (StockManager.cpp:161)\n",
"2021-02-12 17:02:03.931 [HKU-I] - 0.03s Loaded Data. (StockManager.cpp:149)\n",
"Wall time: 2.78 s\n"
]
}
],
@ -70,7 +71,7 @@
" current borrow_cash: 0.00,\n",
" current borrow_asset: 0.00,\n",
" Position: \n",
" SZ000001 平安银行 2017-01-03 00:00:00 874 100.00 911.00 1376.00 465.00 51.04% 0.47%\n",
" SZ000001 平安银行 2017-01-03 00:00:00 999 100.00 911.00 2493.00 1582.00 173.66% 1.58%\n",
" Short Position: \n",
" Borrow Stock: \n",
"}\n"
@ -140,12 +141,12 @@
" <th>SZ000001</th>\n",
" <td>平安银行</td>\n",
" <td>2017-01-03</td>\n",
" <td>874</td>\n",
" <td>999</td>\n",
" <td>100</td>\n",
" <td>911.0</td>\n",
" <td>1376.0</td>\n",
" <td>465.0</td>\n",
" <td>51.04281</td>\n",
" <td>2493.0</td>\n",
" <td>1582.0</td>\n",
" <td>173.655324</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
@ -154,7 +155,7 @@
"text/plain": [
" 证券名称 买入日期 已持仓天数 持仓数量 投入金额 当前市值 盈亏金额 盈亏比例\n",
"证券代码 \n",
"SZ000001 平安银行 2017-01-03 874 100 911.0 1376.0 465.0 51.04281"
"SZ000001 平安银行 2017-01-03 999 100 911.0 2493.0 1582.0 173.655324"
]
},
"execution_count": 3,
@ -305,7 +306,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.2"
"version": "3.8.3"
}
},
"nbformat": 4,

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff