Skip to content

修改config.py 支持沪深B股 #95

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions efinance/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ class MagicConfig:
# 可转债
'bond': 'b:MK0354',
'可转债': 'b:MK0354',
'stock': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048',
# 沪深AB股
'stockab': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048,m:0 t:7,m:1 t:3',
'沪深AB股': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048,m:0 t:7,m:1 t:3',
# 沪深A股
# 'stock': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23',
'stock': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23',
'沪深A股': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23',
'沪深京A股': 'm:0 t:6,m:0 t:80,m:1 t:2,m:1 t:23,m:0 t:81 s:2048',
'北证A股': 'm:0 t:81 s:2048',
'北A': 'm:0 t:81 s:2048',
# 沪深B股
'沪深B股': 'm:0 t:7,m:1 t:3',
'stockb': 'm:0 t:7,m:1 t:3',

# 期货
'futures': 'm:113,m:114,m:115,m:8,m:142',
'期货': 'm:113,m:114,m:115,m:8,m:142',
Expand All @@ -48,6 +54,13 @@ class MagicConfig:
'深证A股': 'm:0 t:6,m:0 t:80',
'深A': 'm:0 t:6,m:0 t:80',

'上证B股': 'm:1 t:3',
'沪B': 'm:1 t:3',

'深证B股': 'm:0 t:7',
'深B': 'm:0 t:7',


# 沪深新股
'新股': 'm:0 f:8,m:1 f:8',

Expand Down