2024-11-18 16:55:14 +08:00
|
|
|
|
{
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2024-12-27 14:15:20 +08:00
|
|
|
|
"execution_count": 6,
|
|
|
|
|
"id": "b3cde8ea",
|
2024-11-18 16:55:14 +08:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
2024-12-27 14:15:20 +08:00
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"{'ovx index': '原油波动率', 'dxy curncy': '美元指数', 'C2403128043': 'Brent连1合约价格拟合残差/美元指数', 'C2403150124': 'Brent连1合约价格拟合残差/Brent 连2-连3', 'DOESCRUD Index': '美国商业原油库存', 'FVHCM1 INDEX': '美国取暖油裂解C1', 'doedtprd index': '美国成品油表需', 'CFFDQMMN INDEX': 'WTI管理资金净多持仓', 'C2403083739': 'WTI基金多空持仓比', 'C2404167878': 'WTI基金净持仓COT指标(代码运算)', 'lmcads03 lme comdty': 'LME铜价', 'GC1 COMB Comdty': '黄金连1合约', 'C2404167855': '金油比'}\n"
|
|
|
|
|
]
|
2024-11-18 16:55:14 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
2024-12-27 14:15:20 +08:00
|
|
|
|
"data = \"\"\"\n",
|
|
|
|
|
"ovx index 原油波动率\n",
|
|
|
|
|
"dxy curncy 美元指数\n",
|
|
|
|
|
"C2403128043 Brent连1合约价格拟合残差/美元指数\n",
|
|
|
|
|
"C2403150124 Brent连1合约价格拟合残差/Brent 连2-连3\n",
|
|
|
|
|
"DOESCRUD Index 美国商业原油库存\n",
|
|
|
|
|
"FVHCM1 INDEX 美国取暖油裂解C1\n",
|
|
|
|
|
"doedtprd index 美国成品油表需\n",
|
|
|
|
|
"CFFDQMMN INDEX WTI管理资金净多持仓\n",
|
|
|
|
|
"C2403083739 WTI基金多空持仓比\n",
|
|
|
|
|
"C2404167878 WTI基金净持仓COT指标(代码运算)\n",
|
|
|
|
|
"lmcads03 lme comdty LME铜价\n",
|
|
|
|
|
"GC1 COMB Comdty 黄金连1合约\n",
|
|
|
|
|
"C2404167855 金油比\n",
|
|
|
|
|
"\"\"\"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"result_dict = {}\n",
|
|
|
|
|
"lines = data.strip().split('\\n')\n",
|
|
|
|
|
"for line in lines:\n",
|
|
|
|
|
" key, value = line.strip().split(' ')\n",
|
|
|
|
|
" result_dict[key] = value\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"print(result_dict)"
|
2024-11-18 16:55:14 +08:00
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"metadata": {
|
|
|
|
|
"kernelspec": {
|
2024-12-27 14:15:20 +08:00
|
|
|
|
"display_name": "base",
|
2024-11-18 16:55:14 +08:00
|
|
|
|
"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.11.7"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 5
|
|
|
|
|
}
|