reportify-cli 0.1.37__tar.gz → 0.1.39__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.37 → reportify_cli-0.1.39}/PKG-INFO +2 -2
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/pyproject.toml +2 -2
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/skills/reportify-ai/SKILL.md +7 -4
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/skills/reportify-ai/references/API_REFERENCE.md +10 -6
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/skills/reportify-ai/references/COMMANDS.md +2 -2
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/quant.py +13 -12
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/params.py +10 -6
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/.gitignore +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/Makefile +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/README.md +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/scripts/README.md +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/scripts/bump_version.sh +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/scripts/publish.sh +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/skills/reportify-agent/SKILL.md +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/__init__.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/client.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/__init__.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/agent.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/channels.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/concepts.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/docs.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/following.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/kb.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/macro.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/search.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/stock.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/timeline.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/commands/user.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/main.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/output.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/settings.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/src/utils.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/__init__.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/integration/test_docs_integration.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/integration/test_stock_integration.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/test_commands/__init__.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/test_commands/test_docs.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/test_commands/test_quant.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/tests/test_commands/test_search.py +0 -0
- {reportify_cli-0.1.37 → reportify_cli-0.1.39}/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.39
|
|
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.42
|
|
27
27
|
Requires-Dist: tabulate>=0.9.0
|
|
28
28
|
Requires-Dist: typer>=0.21.1
|
|
29
29
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "reportify-cli"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.39"
|
|
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.42",
|
|
34
34
|
"typer>=0.21.1",
|
|
35
35
|
"pandas>=2.0.0",
|
|
36
36
|
"python-dotenv>=1.2.1",
|
|
@@ -55,11 +55,14 @@ web-search "keywords" [count]
|
|
|
55
55
|
Use minute-level commands for **today's price action, intraday monitoring, and real-time quotes**. Do NOT use `ohlcv` for intraday data.
|
|
56
56
|
|
|
57
57
|
```bash
|
|
58
|
-
# Single stock -
|
|
59
|
-
reportify-cli quant
|
|
58
|
+
# Single stock - 5-minute kline (intraday)
|
|
59
|
+
reportify-cli quant kline --input '{"symbol": "600519", "kline_type": "5M", "start_datetime": "2026-03-12 09:30:00", "end_datetime": "2026-03-12 15:00:00"}' --format json
|
|
60
|
+
|
|
61
|
+
# Multiple stocks - 5-minute kline batch
|
|
62
|
+
reportify-cli quant kline_batch --input '{"symbols": ["600519", "000858"], "kline_type": "5M", "start_datetime": "...", "end_datetime": "..."}' --format csv
|
|
60
63
|
|
|
61
|
-
#
|
|
62
|
-
reportify-cli quant
|
|
64
|
+
# Single stock - 1-minute kline
|
|
65
|
+
reportify-cli quant kline --input '{"symbol": "600519", "kline_type": "1M", "start_datetime": "2026-03-12 09:30:00", "end_datetime": "2026-03-12 15:00:00"}' --format json
|
|
63
66
|
|
|
64
67
|
# Single stock - minute data
|
|
65
68
|
reportify-cli quant minute --input '{"symbol": "600519", "start_datetime": "...", "end_datetime": "..."}'
|
{reportify_cli-0.1.37 → reportify_cli-0.1.39}/skills/reportify-ai/references/API_REFERENCE.md
RENAMED
|
@@ -225,21 +225,25 @@ Stock symbols must use `market:ticker` format:
|
|
|
225
225
|
| `start_date` | str | | 1 month ago | Start date |
|
|
226
226
|
| `end_date` | str | | today | End date |
|
|
227
227
|
|
|
228
|
-
### quant
|
|
228
|
+
### quant kline
|
|
229
229
|
| Parameter | Type | Required | Default | Description |
|
|
230
230
|
|-----------|------|----------|---------|-------------|
|
|
231
231
|
| `symbol` | str | ✓ | - | Stock code (e.g., 600519) |
|
|
232
|
-
| `
|
|
233
|
-
| `end_datetime` | str | ✓ | - | End datetime (YYYY-MM-DD HH:MM:SS) |
|
|
232
|
+
| `kline_type` | str | | 1D | 1M/5M/15M/30M/60M/1D/1W/1MO |
|
|
234
233
|
| `market` | str | | cn | cn / hk / us |
|
|
234
|
+
| `stock_type` | str | | stock | stock / etf / index / sw |
|
|
235
|
+
| `start_datetime` | str | | auto | Start datetime (YYYY-MM-DD HH:MM:SS) |
|
|
236
|
+
| `end_datetime` | str | | now | End datetime (YYYY-MM-DD HH:MM:SS) |
|
|
235
237
|
|
|
236
|
-
### quant
|
|
238
|
+
### quant kline_batch
|
|
237
239
|
| Parameter | Type | Required | Default | Description |
|
|
238
240
|
|-----------|------|----------|---------|-------------|
|
|
239
241
|
| `symbols` | list[str] | ✓ | - | Stock codes (e.g., [600519, 000001]) |
|
|
240
|
-
| `
|
|
241
|
-
| `end_datetime` | str | ✓ | - | End datetime (YYYY-MM-DD HH:MM:SS) |
|
|
242
|
+
| `kline_type` | str | | 1D | 1M/5M/15M/30M/60M/1D/1W/1MO |
|
|
242
243
|
| `market` | str | | cn | cn / hk / us |
|
|
244
|
+
| `stock_type` | str | | stock | stock / etf / index / sw |
|
|
245
|
+
| `start_datetime` | str | | auto | Start datetime (YYYY-MM-DD HH:MM:SS) |
|
|
246
|
+
| `end_datetime` | str | | now | End datetime (YYYY-MM-DD HH:MM:SS) |
|
|
243
247
|
|
|
244
248
|
### quant minute
|
|
245
249
|
| Parameter | Type | Required | Default | Description |
|
|
@@ -61,8 +61,8 @@ Use `reportify-cli <module> --help` to see all commands, or `reportify-cli <modu
|
|
|
61
61
|
|
|
62
62
|
| Command | Description | Required Params |
|
|
63
63
|
|---------|-------------|-----------------|
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
64
|
+
| `kline` | K线数据(单只,支持1M/5M/15M/30M/60M/1D/1W/1MO) | `symbol` |
|
|
65
|
+
| `kline_batch` | K线数据(多只) | `symbols` |
|
|
66
66
|
| `minute` | Minute data (single stock) | `symbol`, `start_datetime`, `end_datetime` |
|
|
67
67
|
| `minute_batch` | Minute data (multiple stocks) | `symbols`, `start_datetime`, `end_datetime` |
|
|
68
68
|
|
|
@@ -151,23 +151,24 @@ def backtest(
|
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
@app.command(
|
|
154
|
-
name="
|
|
154
|
+
name="kline",
|
|
155
155
|
epilog=generate_epilog(
|
|
156
|
-
params.
|
|
156
|
+
params.QUANT_KLINE_PARAMS,
|
|
157
157
|
[
|
|
158
|
-
'reportify-cli quant
|
|
158
|
+
'reportify-cli quant kline --input \'{"symbol": "000001", "kline_type": "1D"}\'',
|
|
159
|
+
'reportify-cli quant kline --input \'{"symbol": "000001", "kline_type": "5M", "start_datetime": "2026-04-09 09:30:00", "end_datetime": "2026-04-09 15:00:00"}\'',
|
|
159
160
|
],
|
|
160
161
|
),
|
|
161
162
|
)
|
|
162
|
-
def
|
|
163
|
+
def kline(
|
|
163
164
|
input: Annotated[str, typer.Option(help="JSON input parameters")] = "{}",
|
|
164
165
|
format: Annotated[str, typer.Option(help="Output format: json, table, csv")] = "json",
|
|
165
166
|
):
|
|
166
|
-
"""Get
|
|
167
|
+
"""Get kline data for a single stock (supports 1M/5M/15M/30M/60M/1D/1W/1MO)"""
|
|
167
168
|
try:
|
|
168
169
|
params_dict = parse_json_input(input)
|
|
169
170
|
client = get_client()
|
|
170
|
-
result = client.quant.
|
|
171
|
+
result = client.quant.kline(**params_dict)
|
|
171
172
|
format_output(result, format)
|
|
172
173
|
except Exception as e:
|
|
173
174
|
typer.echo(f"Error: {e}", err=True)
|
|
@@ -175,23 +176,23 @@ def kline_1m(
|
|
|
175
176
|
|
|
176
177
|
|
|
177
178
|
@app.command(
|
|
178
|
-
name="
|
|
179
|
+
name="kline_batch",
|
|
179
180
|
epilog=generate_epilog(
|
|
180
|
-
params.
|
|
181
|
+
params.QUANT_KLINE_BATCH_PARAMS,
|
|
181
182
|
[
|
|
182
|
-
'reportify-cli quant
|
|
183
|
+
'reportify-cli quant kline_batch --input \'{"symbols": ["000001", "600519"], "kline_type": "1D"}\'',
|
|
183
184
|
],
|
|
184
185
|
),
|
|
185
186
|
)
|
|
186
|
-
def
|
|
187
|
+
def kline_batch(
|
|
187
188
|
input: Annotated[str, typer.Option(help="JSON input parameters")] = "{}",
|
|
188
189
|
format: Annotated[str, typer.Option(help="Output format: json, table, csv")] = "json",
|
|
189
190
|
):
|
|
190
|
-
"""Get
|
|
191
|
+
"""Get kline data for multiple stocks (supports 1M/5M/15M/30M/60M/1D/1W/1MO)"""
|
|
191
192
|
try:
|
|
192
193
|
params_dict = parse_json_input(input)
|
|
193
194
|
client = get_client()
|
|
194
|
-
result = client.quant.
|
|
195
|
+
result = client.quant.kline_batch(**params_dict)
|
|
195
196
|
format_output(result, format)
|
|
196
197
|
except Exception as e:
|
|
197
198
|
typer.echo(f"Error: {e}", err=True)
|
|
@@ -489,18 +489,22 @@ QUANT_BACKTEST_PARAMS = [
|
|
|
489
489
|
ParamDef("signal_factors", "dict[str, str]", "Signal factors dictionary for custom strategy pre-computation"),
|
|
490
490
|
]
|
|
491
491
|
|
|
492
|
-
|
|
492
|
+
QUANT_KLINE_PARAMS = [
|
|
493
493
|
ParamDef("symbol", "str", "Stock symbol", required=True),
|
|
494
|
-
ParamDef("
|
|
495
|
-
ParamDef("end_datetime", "str", "End datetime (YYYY-MM-DD HH:MM:SS)", required=True),
|
|
494
|
+
ParamDef("kline_type", "str", "Kline type: 1M/5M/15M/30M/60M/1D/1W/1MO", default="1D"),
|
|
496
495
|
ParamDef("market", "str", "Market (cn/hk/us)", default="cn"),
|
|
496
|
+
ParamDef("stock_type", "str", "Stock type: stock/etf/index/sw", default="stock"),
|
|
497
|
+
ParamDef("start_datetime", "str", "Start datetime (YYYY-MM-DD HH:MM:SS)"),
|
|
498
|
+
ParamDef("end_datetime", "str", "End datetime (YYYY-MM-DD HH:MM:SS)"),
|
|
497
499
|
]
|
|
498
500
|
|
|
499
|
-
|
|
501
|
+
QUANT_KLINE_BATCH_PARAMS = [
|
|
500
502
|
ParamDef("symbols", "list[str]", "Stock symbol list", required=True),
|
|
501
|
-
ParamDef("
|
|
502
|
-
ParamDef("end_datetime", "str", "End datetime (YYYY-MM-DD HH:MM:SS)", required=True),
|
|
503
|
+
ParamDef("kline_type", "str", "Kline type: 1M/5M/15M/30M/60M/1D/1W/1MO", default="1D"),
|
|
503
504
|
ParamDef("market", "str", "Market (cn/hk/us)", default="cn"),
|
|
505
|
+
ParamDef("stock_type", "str", "Stock type: stock/etf/index/sw", default="stock"),
|
|
506
|
+
ParamDef("start_datetime", "str", "Start datetime (YYYY-MM-DD HH:MM:SS)"),
|
|
507
|
+
ParamDef("end_datetime", "str", "End datetime (YYYY-MM-DD HH:MM:SS)"),
|
|
504
508
|
]
|
|
505
509
|
|
|
506
510
|
QUANT_MINUTE_PARAMS = [
|
|
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
|