Skip to content
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

迅投期权代码的正则表达式匹配 #16

Open
vnpy opened this issue Dec 12, 2023 · 0 comments
Open

迅投期权代码的正则表达式匹配 #16

vnpy opened this issue Dec 12, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@vnpy
Copy link
Owner

vnpy commented Dec 12, 2023

# 中金所
# MO2409-C-5200.IF
ZJ = r"^[a-zA-Z]+[0-9]{4}-(P|C)-[0-9]+\.IF$"

# 上期所
# zn2403P20400.SF
SQ = r"^[a-zA-Z]+[0-9]{4}(P|C)[0-9]+\.SF$"

# 上期所
# zn2403P20400.SF
DS = r"^[a-zA-Z]+[0-9]{4}-(P|C)-[0-9]+\.DF$"

# 郑商所
# ZC402P830.ZF
ZS = r"^[a-zA-Z]+[0-9]{3}(P|C)[0-9]+\.ZF$"

# 能源
# sc2403P630.INE
NY = r"^[a-zA-Z]+[0-9]{4}(P|C)[0-9]+\.INE$"

# 深证期权
# 90002990.SZO
SZO = r"^9[0-9]{7}\.SZO$"

# 上证期权
# 10006468.SHO
SHO = r"^1[0-9]{7}\.SHO$"
@vnpy vnpy added the enhancement New feature or request label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant