reportify-cli 0.1.39__tar.gz → 0.1.41__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.
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/PKG-INFO +5 -5
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/README.md +3 -3
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/pyproject.toml +2 -2
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/skills/reportify-ai/SKILL.md +1 -1
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/skills/reportify-ai/references/API_REFERENCE.md +11 -1
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/skills/reportify-ai/references/COMMANDS.md +1 -3
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/.gitignore +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/Makefile +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/scripts/README.md +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/scripts/bump_version.sh +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/scripts/publish.sh +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/skills/reportify-agent/SKILL.md +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/__init__.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/client.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/__init__.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/agent.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/channels.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/concepts.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/docs.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/following.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/kb.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/macro.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/quant.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/search.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/stock.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/timeline.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/commands/user.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/main.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/output.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/params.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/settings.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/src/utils.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/__init__.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/integration/test_docs_integration.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/integration/test_stock_integration.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/test_commands/__init__.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/test_commands/test_docs.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/test_commands/test_quant.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/tests/test_commands/test_search.py +0 -0
- {reportify_cli-0.1.39 → reportify_cli-0.1.41}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: reportify-cli
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.41
|
|
4
4
|
Summary: CLI wrapper for Reportify SDK - Access Reportify API through command line
|
|
5
5
|
Project-URL: Homepage, https://reportify.ai
|
|
6
6
|
Project-URL: Documentation, https://docs.reportify.ai
|
|
@@ -23,7 +23,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
23
23
|
Requires-Python: >=3.10
|
|
24
24
|
Requires-Dist: pandas>=2.0.0
|
|
25
25
|
Requires-Dist: python-dotenv>=1.2.1
|
|
26
|
-
Requires-Dist: reportify-sdk>=0.3.
|
|
26
|
+
Requires-Dist: reportify-sdk>=0.3.45
|
|
27
27
|
Requires-Dist: tabulate>=0.9.0
|
|
28
28
|
Requires-Dist: typer>=0.21.1
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
@@ -183,8 +183,8 @@ reportify-cli stock prices \
|
|
|
183
183
|
### Quantitative Analysis
|
|
184
184
|
|
|
185
185
|
```bash
|
|
186
|
-
# Compute
|
|
187
|
-
reportify-cli quant
|
|
188
|
-
--input '{"symbols": ["600519"], "formula": "RSI(14)"}' \
|
|
186
|
+
# Compute factor values
|
|
187
|
+
reportify-cli quant compute_factors \
|
|
188
|
+
--input '{"symbols": ["600519"], "formula": "RSI(14)", "market": "cn"}' \
|
|
189
189
|
--format table
|
|
190
190
|
```
|
|
@@ -153,8 +153,8 @@ reportify-cli stock prices \
|
|
|
153
153
|
### Quantitative Analysis
|
|
154
154
|
|
|
155
155
|
```bash
|
|
156
|
-
# Compute
|
|
157
|
-
reportify-cli quant
|
|
158
|
-
--input '{"symbols": ["600519"], "formula": "RSI(14)"}' \
|
|
156
|
+
# Compute factor values
|
|
157
|
+
reportify-cli quant compute_factors \
|
|
158
|
+
--input '{"symbols": ["600519"], "formula": "RSI(14)", "market": "cn"}' \
|
|
159
159
|
--format table
|
|
160
160
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "reportify-cli"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.41"
|
|
4
4
|
description = "CLI wrapper for Reportify SDK - Access Reportify API through command line"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -30,7 +30,7 @@ classifiers = [
|
|
|
30
30
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
31
31
|
]
|
|
32
32
|
dependencies = [
|
|
33
|
-
"reportify-sdk>=0.3.
|
|
33
|
+
"reportify-sdk>=0.3.45",
|
|
34
34
|
"typer>=0.21.1",
|
|
35
35
|
"pandas>=2.0.0",
|
|
36
36
|
"python-dotenv>=1.2.1",
|
|
@@ -154,7 +154,7 @@ reportify-cli stock cashflow_statement --input '{"symbol": "AAPL"}'
|
|
|
154
154
|
### Quantitative Analysis
|
|
155
155
|
```bash
|
|
156
156
|
# Compute technical indicators
|
|
157
|
-
reportify-cli quant
|
|
157
|
+
reportify-cli quant compute_factors --input '{"symbols": ["600519"], "formula": "RSI(14)", "market": "cn"}'
|
|
158
158
|
|
|
159
159
|
# Stock screening
|
|
160
160
|
reportify-cli quant factors_screen --input '{"formula": "(PE_TTM() < 20) & (ROE() > 0.15)", "market": "cn"}'
|
{reportify_cli-0.1.39 → reportify_cli-0.1.41}/skills/reportify-ai/references/API_REFERENCE.md
RENAMED
|
@@ -261,7 +261,7 @@ Stock symbols must use `market:ticker` format:
|
|
|
261
261
|
| `end_datetime` | str | ✓ | - | End datetime (YYYY-MM-DD HH:MM:SS) |
|
|
262
262
|
| `market` | str | | cn | cn / hk / us |
|
|
263
263
|
|
|
264
|
-
### quant
|
|
264
|
+
### quant factors_compute
|
|
265
265
|
| Parameter | Type | Required | Default | Description |
|
|
266
266
|
|-----------|------|----------|---------|-------------|
|
|
267
267
|
| `symbols` | list[str] | ✓ | - | Stock codes (e.g., 600519 for CN market) |
|
|
@@ -294,6 +294,16 @@ Stock symbols must use `market:ticker` format:
|
|
|
294
294
|
| `auto_close` | bool | | true | Auto close positions |
|
|
295
295
|
| `indicator` | dict | | - | Indicator dict for returning values |
|
|
296
296
|
|
|
297
|
+
Backtest 常见返回字段(新增):
|
|
298
|
+
- `benchmark_return_pct`: 基准总收益率(小数)
|
|
299
|
+
- `sharpe_ratio`: 夏普比率(年化,无风险利率=0)
|
|
300
|
+
- `alpha`: 阿尔法(年化,CAPM Jensen's Alpha)
|
|
301
|
+
- `beta`: 贝塔(相对基准系统性风险)
|
|
302
|
+
- `max_drawdown_start`: 最大回撤起始日期(峰值日)
|
|
303
|
+
- `max_drawdown_end`: 最大回撤结束日期(谷值日)
|
|
304
|
+
- `daily_returns`: 日收益率序列(date -> return)
|
|
305
|
+
- `drawdown_series`: 每日回撤序列(date -> drawdown)
|
|
306
|
+
|
|
297
307
|
### quant factors_screen
|
|
298
308
|
| Parameter | Type | Required | Default | Description |
|
|
299
309
|
|-----------|------|----------|---------|-------------|
|
|
@@ -77,9 +77,7 @@ Use `reportify-cli <module> --help` to see all commands, or `reportify-cli <modu
|
|
|
77
77
|
|
|
78
78
|
| Command | Description | Required Params |
|
|
79
79
|
|---------|-------------|-----------------|
|
|
80
|
-
| `
|
|
81
|
-
| `indicators_compute` | Compute technical indicators | `symbols`, `formula` |
|
|
82
|
-
| `factors` | List available factors | (none) |
|
|
80
|
+
| `factors` | List available factors | `market` |
|
|
83
81
|
| `factors_compute` | Compute factor values | `symbols`, `formula` |
|
|
84
82
|
| `factors_screen` | Stock screening | `formula` |
|
|
85
83
|
| `backtest` | Strategy backtesting | `symbol`, `start_date`, `end_date`, `entry_formula` |
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|