mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 13:24:18 +08:00
- Package directory: src/xmtdx/ -> src/easy_tdx/ - Import path: from easy_tdx import ... - pip install easy-tdx - Add LICENSE (MIT) with upstream attribution (pytdx, xmtdx) - Add NOTICE with detailed attribution - Update all examples, tests, scripts, docs - Bump version to 1.0.0 BREAKING CHANGE: import path changed from `xmtdx` to `easy_tdx` Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
399 B
Python
25 lines
399 B
Python
"""市场代码与 K 线周期枚举"""
|
|
|
|
from enum import IntEnum
|
|
|
|
|
|
class Market(IntEnum):
|
|
SZ = 0 # 深圳
|
|
SH = 1 # 上海
|
|
BJ = 2 # 北京
|
|
|
|
|
|
class KlineCategory(IntEnum):
|
|
MIN_5 = 0
|
|
MIN_15 = 1
|
|
MIN_30 = 2
|
|
MIN_60 = 3
|
|
DAY = 4
|
|
WEEK = 5
|
|
MONTH = 6
|
|
MIN_1 = 7
|
|
MIN_3 = 8 # 通达信内部用,实际同 MIN_1
|
|
YEAR = 9
|
|
SEASON = 10
|
|
YEAR_ALT = 11
|