quantdb-sdk 0.2.3__tar.gz → 0.2.4__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.
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/CHANGELOG.md +5 -0
- {quantdb_sdk-0.2.3/quantdb_sdk.egg-info → quantdb_sdk-0.2.4}/PKG-INFO +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/pyproject.toml +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/__init__.py +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/__main__.py +2 -2
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/async_client.py +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/client.py +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4/quantdb_sdk.egg-info}/PKG-INFO +1 -1
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/LICENSE +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/MANIFEST.in +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/README.md +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/_utils.py +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/errors.py +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk/py.typed +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk.egg-info/SOURCES.txt +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk.egg-info/dependency_links.txt +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk.egg-info/entry_points.txt +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk.egg-info/requires.txt +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/quantdb_sdk.egg-info/top_level.txt +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/setup.cfg +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/tests/test_async_client.py +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/tests/test_client.py +0 -0
- {quantdb_sdk-0.2.3 → quantdb_sdk-0.2.4}/tests/test_technical_indicators.py +0 -0
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
所有 notable 变更都会记录在此文件。格式基于 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
|
|
4
4
|
版本号遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
|
|
5
5
|
|
|
6
|
+
## [0.2.4] - 2026-07-26
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- **Windows CLI 编码**:移除 `✓/✗` 字符,GBK 控制台可正常执行 `quantdb check`。
|
|
10
|
+
|
|
6
11
|
## [0.2.3] - 2026-07-26
|
|
7
12
|
|
|
8
13
|
### Added
|
|
@@ -56,7 +56,7 @@ def main() -> int:
|
|
|
56
56
|
|
|
57
57
|
if args.command == "check":
|
|
58
58
|
me = client.get_me()
|
|
59
|
-
print(
|
|
59
|
+
print("[OK] API Key 有效")
|
|
60
60
|
print(f" 用户: {me.get('username', 'N/A')}")
|
|
61
61
|
print(f" ID: {me.get('id', 'N/A')}")
|
|
62
62
|
return 0
|
|
@@ -81,7 +81,7 @@ def main() -> int:
|
|
|
81
81
|
return 0
|
|
82
82
|
|
|
83
83
|
except Exception as e:
|
|
84
|
-
print(f"
|
|
84
|
+
print(f"[ERROR] {e}", file=sys.stderr)
|
|
85
85
|
return 1
|
|
86
86
|
|
|
87
87
|
return 0
|
|
@@ -37,7 +37,7 @@ class AsyncQuantDBClient:
|
|
|
37
37
|
):
|
|
38
38
|
self.api_host = api_host.rstrip("/")
|
|
39
39
|
self.timeout = timeout
|
|
40
|
-
headers = {"User-Agent": "QuantDB-Python-SDK/0.2.
|
|
40
|
+
headers = {"User-Agent": "QuantDB-Python-SDK/0.2.4"}
|
|
41
41
|
if api_key:
|
|
42
42
|
headers["X-API-Key"] = api_key
|
|
43
43
|
elif token:
|
|
@@ -48,7 +48,7 @@ class QuantDBClient:
|
|
|
48
48
|
self.session = requests.Session()
|
|
49
49
|
# User-Agent 中的版本与 pyproject.toml 同步,用于服务端日志归因
|
|
50
50
|
# 维护提示:每次版本号变化必须同步改这里(init 里的 __version__ 走 metadata 自动同步)
|
|
51
|
-
self.session.headers.update({"User-Agent": "QuantDB-Python-SDK/0.2.
|
|
51
|
+
self.session.headers.update({"User-Agent": "QuantDB-Python-SDK/0.2.4"})
|
|
52
52
|
|
|
53
53
|
if api_key:
|
|
54
54
|
self.headers = {"X-API-Key": api_key}
|
|
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
|