reportify-cli 0.1.34__tar.gz → 0.1.35__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.34 → reportify_cli-0.1.35}/PKG-INFO +1 -1
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/pyproject.toml +1 -1
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/scripts/bump_version.sh +18 -1
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/skills/reportify-ai/references/API_REFERENCE.md +5 -1
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/params.py +5 -1
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/.gitignore +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/Makefile +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/README.md +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/scripts/README.md +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/scripts/publish.sh +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/skills/reportify-agent/SKILL.md +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/skills/reportify-ai/SKILL.md +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/skills/reportify-ai/references/COMMANDS.md +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/__init__.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/client.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/__init__.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/agent.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/channels.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/concepts.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/docs.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/following.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/kb.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/macro.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/quant.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/search.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/stock.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/timeline.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/commands/user.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/main.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/output.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/settings.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/src/utils.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/__init__.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/integration/test_docs_integration.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/integration/test_stock_integration.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/test_commands/__init__.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/test_commands/test_docs.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/test_commands/test_quant.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/tests/test_commands/test_search.py +0 -0
- {reportify_cli-0.1.34 → reportify_cli-0.1.35}/uv.lock +0 -0
|
@@ -83,6 +83,23 @@ fi
|
|
|
83
83
|
echo -e "${GREEN}✓ Updated pyproject.toml${NC}"
|
|
84
84
|
echo ""
|
|
85
85
|
|
|
86
|
+
# Sync reportify-sdk dependency version
|
|
87
|
+
SDK_PYPROJECT="${PROJECT_DIR}/../reportify-sdk/python/pyproject.toml"
|
|
88
|
+
if [ -f "$SDK_PYPROJECT" ]; then
|
|
89
|
+
SDK_VERSION=$(grep '^version = ' "$SDK_PYPROJECT" | sed 's/version = "\(.*\)"/\1/')
|
|
90
|
+
echo -e "${BLUE}同步 reportify-sdk 依赖版本 -> ${SDK_VERSION}${NC}"
|
|
91
|
+
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
92
|
+
sed -i '' "s/\"reportify-sdk>=[^\"]*\"/\"reportify-sdk>=${SDK_VERSION}\"/" pyproject.toml
|
|
93
|
+
else
|
|
94
|
+
sed -i "s/\"reportify-sdk>=[^\"]*\"/\"reportify-sdk>=${SDK_VERSION}\"/" pyproject.toml
|
|
95
|
+
fi
|
|
96
|
+
echo -e "${GREEN}✓ reportify-sdk 依赖已更新为 >=${SDK_VERSION}${NC}"
|
|
97
|
+
echo ""
|
|
98
|
+
else
|
|
99
|
+
echo -e "${YELLOW}Warning: reportify-sdk pyproject.toml not found at ${SDK_PYPROJECT}, skipping SDK version sync${NC}"
|
|
100
|
+
echo ""
|
|
101
|
+
fi
|
|
102
|
+
|
|
86
103
|
# Show the diff
|
|
87
104
|
echo -e "${BLUE}Changes:${NC}"
|
|
88
105
|
git diff pyproject.toml
|
|
@@ -101,7 +118,7 @@ if [ -n "$(git status --porcelain)" ]; then
|
|
|
101
118
|
git pull origin HEAD:${CI_COMMIT_REF_NAME}
|
|
102
119
|
# 提交和推送代码逻辑
|
|
103
120
|
git add pyproject.toml
|
|
104
|
-
git commit -am "chore: bump version to ${NEW_VERSION} [ci skip]"
|
|
121
|
+
git commit -am "chore: bump version to ${NEW_VERSION}, sync reportify-sdk>=${SDK_VERSION} [ci skip]"
|
|
105
122
|
echo -e "${GREEN}✓ Changes committed${NC}"
|
|
106
123
|
echo ""
|
|
107
124
|
git push origin -o ci.skip HEAD:${CI_COMMIT_REF_NAME}
|
{reportify_cli-0.1.34 → reportify_cli-0.1.35}/skills/reportify-ai/references/API_REFERENCE.md
RENAMED
|
@@ -278,7 +278,11 @@ Stock symbols must use `market:ticker` format:
|
|
|
278
278
|
| `exit_formula` | str | | - | Exit signal formula. Both sides of &/\|/AND/OR must be wrapped in () |
|
|
279
279
|
| `market` | str | | cn | Market |
|
|
280
280
|
| `initial_cash` | float | | 100000 | Initial capital |
|
|
281
|
-
| `commission` | float | | 0 | Commission rate |
|
|
281
|
+
| `commission` | float | | 0 | Commission rate (buy and sell) |
|
|
282
|
+
| `buy_commission` | float | | 0 | Buy commission rate, takes priority over commission |
|
|
283
|
+
| `sell_commission` | float | | 0 | Sell commission rate, takes priority over commission |
|
|
284
|
+
| `min_commission_amount` | float | | 0 | Minimum commission per trade in CNY |
|
|
285
|
+
| `slippage` | float | | 0 | Slippage ratio (buy up / sell down) |
|
|
282
286
|
| `stop_loss` | float | | 0 | Stop loss % (0=disabled) |
|
|
283
287
|
| `position_size` | float | | 0.2 | Max position size ratio per stock (based on total assets) |
|
|
284
288
|
| `max_positions` | int | | 5 | Max number of holding stocks |
|
|
@@ -476,7 +476,11 @@ QUANT_BACKTEST_PARAMS = [
|
|
|
476
476
|
"Exit formula (result > 0 triggers sell), logical operators must be wrapped in ()",
|
|
477
477
|
),
|
|
478
478
|
ParamDef("initial_cash", "float", "Initial capital", default=100000),
|
|
479
|
-
ParamDef("commission", "float", "Commission rate", default=0),
|
|
479
|
+
ParamDef("commission", "float", "Commission rate for both buy and sell", default=0),
|
|
480
|
+
ParamDef("buy_commission", "float", "Buy commission rate, takes priority over commission", default=0),
|
|
481
|
+
ParamDef("sell_commission", "float", "Sell commission rate, takes priority over commission", default=0),
|
|
482
|
+
ParamDef("min_commission_amount", "float", "Minimum commission per trade in CNY", default=0),
|
|
483
|
+
ParamDef("slippage", "float", "Slippage ratio, buy price up / sell price down", default=0),
|
|
480
484
|
ParamDef("stop_loss", "float", "Stop loss ratio (0 to disable)", default=0),
|
|
481
485
|
ParamDef("position_size", "float", "Max position size ratio per stock based on total assets", default=0.2),
|
|
482
486
|
ParamDef("max_positions", "int", "Max number of holding stocks", default=5),
|
|
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
|
|
File without changes
|