t0 Skill
SkillCommerce & financeCalculates the profit of T+0 stock trading, taking into account buy price, sell price, lot size, commission, and stamp tax. Use when the user mentions 做T, T+0, 股票做T, or 短线做T.
Use t0 Skill in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add t0 Skill and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the t0 Skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by coderwanfeng/python-office in skills/finance/t0/SKILL.md and read by ahel’s review.
计算做 T 的收益
功能描述
计算股票 T+0 交易的收益,考虑买入价、卖出价、手数、佣金、印花税等因素。
所属分类
office/skills/finance/t0/
调用方式
from skills.finance import t0
profit = t0(
buy_price=11.99,
sale_price=12.26,
shares=700
)
print(profit)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
buy_price | float | 是 | - | 买入成本 |
sale_price | float | 是 | - | 卖出价格 |
shares | int | 是 | - | 单笔数量(手数) |
w_rate | float | 否 | 2.5/10000 | 佣金费率(万 0.25) |
min_rate | int | 否 | 5 | 单笔最低手续费(元) |
stamp_tax | float | 否 | 1/1000 | 印花税(千分之一) |
返回值
float:做 T 后的收益金额
使用示例
from skills.finance import t0
# 买 11.99 卖 12.26,700 股
profit = t0(buy_price=11.99, sale_price=12.26, shares=700)
print(f"本次做T收益: {profit} 元")
原始函数
office.api.finance.t0
Signals
- GitHub stars
- 1k
- Forks
- 303
- Last commit
- Aug 2026
Advanced
- Item type
- skill
- Key
t0- Source
- github.com/coderwanfeng/python-office
github.com/coderwanfeng/python-office
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythonchurn-prevention
Skill · coreyhaines31
More in Commerce & financeagent-payment-x402
Skill · affaan-m
More in Commerce & financecustomer-billing-ops
Skill · affaan-m
More in Commerce & financereview
Skill · thedaviddias
More in Commerce & finance