rquote 0.4.7__tar.gz → 0.4.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. {rquote-0.4.7 → rquote-0.4.8}/PKG-INFO +2 -24
  2. {rquote-0.4.7 → rquote-0.4.8}/README.md +1 -23
  3. {rquote-0.4.7 → rquote-0.4.8}/pyproject.toml +1 -1
  4. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/hk_stock.py +7 -1
  5. {rquote-0.4.7 → rquote-0.4.8}/rquote.egg-info/PKG-INFO +2 -24
  6. {rquote-0.4.7 → rquote-0.4.8}/rquote/__init__.py +0 -0
  7. {rquote-0.4.7 → rquote-0.4.8}/rquote/api/__init__.py +0 -0
  8. {rquote-0.4.7 → rquote-0.4.8}/rquote/api/lists.py +0 -0
  9. {rquote-0.4.7 → rquote-0.4.8}/rquote/api/price.py +0 -0
  10. {rquote-0.4.7 → rquote-0.4.8}/rquote/api/stock_info.py +0 -0
  11. {rquote-0.4.7 → rquote-0.4.8}/rquote/api/tick.py +0 -0
  12. {rquote-0.4.7 → rquote-0.4.8}/rquote/cache/__init__.py +0 -0
  13. {rquote-0.4.7 → rquote-0.4.8}/rquote/cache/base.py +0 -0
  14. {rquote-0.4.7 → rquote-0.4.8}/rquote/cache/memory.py +0 -0
  15. {rquote-0.4.7 → rquote-0.4.8}/rquote/cache/persistent.py +0 -0
  16. {rquote-0.4.7 → rquote-0.4.8}/rquote/config.py +0 -0
  17. {rquote-0.4.7 → rquote-0.4.8}/rquote/data_sources/__init__.py +0 -0
  18. {rquote-0.4.7 → rquote-0.4.8}/rquote/data_sources/base.py +0 -0
  19. {rquote-0.4.7 → rquote-0.4.8}/rquote/data_sources/sina.py +0 -0
  20. {rquote-0.4.7 → rquote-0.4.8}/rquote/data_sources/tencent.py +0 -0
  21. {rquote-0.4.7 → rquote-0.4.8}/rquote/exceptions.py +0 -0
  22. {rquote-0.4.7 → rquote-0.4.8}/rquote/factors/__init__.py +0 -0
  23. {rquote-0.4.7 → rquote-0.4.8}/rquote/factors/technical.py +0 -0
  24. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/__init__.py +0 -0
  25. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/base.py +0 -0
  26. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/cn_stock.py +0 -0
  27. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/factory.py +0 -0
  28. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/future.py +0 -0
  29. {rquote-0.4.7 → rquote-0.4.8}/rquote/markets/us_stock.py +0 -0
  30. {rquote-0.4.7 → rquote-0.4.8}/rquote/parsers/__init__.py +0 -0
  31. {rquote-0.4.7 → rquote-0.4.8}/rquote/parsers/kline.py +0 -0
  32. {rquote-0.4.7 → rquote-0.4.8}/rquote/plots.py +0 -0
  33. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/__init__.py +0 -0
  34. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/date.py +0 -0
  35. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/helpers.py +0 -0
  36. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/http.py +0 -0
  37. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/logging.py +0 -0
  38. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils/web.py +0 -0
  39. {rquote-0.4.7 → rquote-0.4.8}/rquote/utils.py +0 -0
  40. {rquote-0.4.7 → rquote-0.4.8}/rquote.egg-info/SOURCES.txt +0 -0
  41. {rquote-0.4.7 → rquote-0.4.8}/rquote.egg-info/dependency_links.txt +0 -0
  42. {rquote-0.4.7 → rquote-0.4.8}/rquote.egg-info/requires.txt +0 -0
  43. {rquote-0.4.7 → rquote-0.4.8}/rquote.egg-info/top_level.txt +0 -0
  44. {rquote-0.4.7 → rquote-0.4.8}/setup.cfg +0 -0
  45. {rquote-0.4.7 → rquote-0.4.8}/tests/test_api.py +0 -0
  46. {rquote-0.4.7 → rquote-0.4.8}/tests/test_cache.py +0 -0
  47. {rquote-0.4.7 → rquote-0.4.8}/tests/test_config.py +0 -0
  48. {rquote-0.4.7 → rquote-0.4.8}/tests/test_exceptions.py +0 -0
  49. {rquote-0.4.7 → rquote-0.4.8}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rquote
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch
5
5
  Requires-Python: >=3.9.0
6
6
  Description-Content-Type: text/markdown
@@ -18,7 +18,7 @@ Requires-Dist: duckdb>=0.9.0; extra == "persistent"
18
18
 
19
19
  ## 版本信息
20
20
 
21
- 当前版本:**0.4.7**
21
+ 当前版本:**0.4.8**
22
22
 
23
23
  ## 主要特性
24
24
 
@@ -575,30 +575,8 @@ python -m pytest tests/test_api.py
575
575
  4. **网络要求**: 部分功能需要网络连接,请确保网络畅通
576
576
  5. **缓存使用**: 建议使用缓存机制减少网络请求,提升性能
577
577
 
578
- ## 更新日志
579
-
580
- ### v0.3.5 (2024)
581
- - 修复Critical Bugs
582
- - 新增配置管理模块
583
- - 新增异常处理体系
584
- - 新增缓存抽象层
585
- - 改进HTTP客户端
586
- - 新增单元测试
587
- - 完善文档
588
-
589
- ### v0.3.4
590
- - 初始版本
591
578
 
592
579
  ## 贡献
593
580
 
594
581
  欢迎提交Issue和Pull Request!
595
582
 
596
- ## 许可证
597
-
598
- Copyright (c) 2021 Roi ZHAO
599
-
600
- ## 相关文档
601
-
602
- - [架构改进建议](ARCHITECTURE_IMPROVEMENTS.md)
603
- - [重构代码示例](REFACTORING_EXAMPLES.md)
604
- - [快速修复清单](QUICK_FIXES.md)
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## 版本信息
6
6
 
7
- 当前版本:**0.4.7**
7
+ 当前版本:**0.4.8**
8
8
 
9
9
  ## 主要特性
10
10
 
@@ -561,30 +561,8 @@ python -m pytest tests/test_api.py
561
561
  4. **网络要求**: 部分功能需要网络连接,请确保网络畅通
562
562
  5. **缓存使用**: 建议使用缓存机制减少网络请求,提升性能
563
563
 
564
- ## 更新日志
565
-
566
- ### v0.3.5 (2024)
567
- - 修复Critical Bugs
568
- - 新增配置管理模块
569
- - 新增异常处理体系
570
- - 新增缓存抽象层
571
- - 改进HTTP客户端
572
- - 新增单元测试
573
- - 完善文档
574
-
575
- ### v0.3.4
576
- - 初始版本
577
564
 
578
565
  ## 贡献
579
566
 
580
567
  欢迎提交Issue和Pull Request!
581
568
 
582
- ## 许可证
583
-
584
- Copyright (c) 2021 Roi ZHAO
585
-
586
- ## 相关文档
587
-
588
- - [架构改进建议](ARCHITECTURE_IMPROVEMENTS.md)
589
- - [重构代码示例](REFACTORING_EXAMPLES.md)
590
- - [快速修复清单](QUICK_FIXES.md)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rquote"
7
- version = "0.4.7"
7
+ version = "0.4.8"
8
8
  description = "Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch"
9
9
  readme = "README.md"
10
10
  # requires-python = ">=3.6.1" # duckdb requires higher python version
@@ -16,7 +16,13 @@ class HKStockMarket(Market):
16
16
  def normalize_symbol(self, symbol: str) -> str:
17
17
  """标准化港股代码"""
18
18
  if not symbol.startswith('hk'):
19
- return 'hk' + symbol
19
+ symbol = 'hk' + symbol
20
+
21
+ # 如果hk后面只有4位数字,则添加一个0
22
+ if symbol.startswith('hk') and len(symbol) == 6:
23
+ # hk + 4位数字 = 6位,需要补0变成 hk + 0 + 4位数字
24
+ return 'hk0' + symbol[2:]
25
+
20
26
  return symbol
21
27
 
22
28
  def _fetch_price_data(self, symbol: str, sdate: str = '', edate: str = '',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rquote
3
- Version: 0.4.7
3
+ Version: 0.4.8
4
4
  Summary: Mostly day quotes of cn/hk/us/fund/future markets, side with quote list fetch
5
5
  Requires-Python: >=3.9.0
6
6
  Description-Content-Type: text/markdown
@@ -18,7 +18,7 @@ Requires-Dist: duckdb>=0.9.0; extra == "persistent"
18
18
 
19
19
  ## 版本信息
20
20
 
21
- 当前版本:**0.4.7**
21
+ 当前版本:**0.4.8**
22
22
 
23
23
  ## 主要特性
24
24
 
@@ -575,30 +575,8 @@ python -m pytest tests/test_api.py
575
575
  4. **网络要求**: 部分功能需要网络连接,请确保网络畅通
576
576
  5. **缓存使用**: 建议使用缓存机制减少网络请求,提升性能
577
577
 
578
- ## 更新日志
579
-
580
- ### v0.3.5 (2024)
581
- - 修复Critical Bugs
582
- - 新增配置管理模块
583
- - 新增异常处理体系
584
- - 新增缓存抽象层
585
- - 改进HTTP客户端
586
- - 新增单元测试
587
- - 完善文档
588
-
589
- ### v0.3.4
590
- - 初始版本
591
578
 
592
579
  ## 贡献
593
580
 
594
581
  欢迎提交Issue和Pull Request!
595
582
 
596
- ## 许可证
597
-
598
- Copyright (c) 2021 Roi ZHAO
599
-
600
- ## 相关文档
601
-
602
- - [架构改进建议](ARCHITECTURE_IMPROVEMENTS.md)
603
- - [重构代码示例](REFACTORING_EXAMPLES.md)
604
- - [快速修复清单](QUICK_FIXES.md)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes