CtrlK
BlogDocsLog inGet started
Tessl Logo

t0

计算股票 T+0 交易的收益,考虑买入价、卖出价、手数、佣金、印花税。当用户提到做 T、T+0、股票做 T、短线做 T 时使用。

75

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

t0 Skill

计算做 T 的收益

功能描述

计算股票 T+0 交易的收益,考虑买入价、卖出价、手数、佣金、印花税等因素。

所属分类

office/skills/finance/t0/

调用方式

from office.skills.finance import t0

profit = t0(
    buy_price=11.99,
    sale_price=12.26,
    shares=700
)
print(profit)

参数说明

参数类型必填默认值说明
buy_pricefloat-买入成本
sale_pricefloat-卖出价格
sharesint-单笔数量(手数)
w_ratefloat2.5/10000佣金费率(万 0.25)
min_rateint5单笔最低手续费(元)
stamp_taxfloat1/1000印花税(千分之一)

返回值

float:做 T 后的收益金额

使用示例

from office.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

Repository
CoderWanFeng/python-office
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.