💰
AutomationPython

T+0 Profit Calculator

by CoderWanFeng

T+0 Profit Calculator is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars299 forkson CoderWanFeng/python-officeAdded 2026/07/20Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install T+0 Profit Calculator
Copy T+0 Profit Calculator into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/finance/t0 ~/.claude/skills/t0

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/finance/t0/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/t0
Collection
One of 50 skills cataloged from this repository
Category
Automation2226 skills

What T+0 Profit Calculator does

Calculates profit of stock T+0 trades considering buy/sell prices, shares, commissions, and stamp tax. Useful for users discussing T+0 or short-term stock trading.

T+0 Profit Calculator is cataloged under Automation on DirSkills. T+0 Profit Calculator comes from a repository tagged office, pip, pypi, python and weixin.

Documentation

README

t0 Skill

计算做 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} 元")

原始函数

This is the opening of the README. Read the full README on GitHub.

Frequently asked about T+0 Profit Calculator

  • What else does CoderWanFeng publish alongside T+0 Profit Calculator?

    T+0 Profit Calculator is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way T+0 Profit Calculator does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does T+0 Profit Calculator compare to other Automation skills?

    T+0 Profit Calculator ranks #678 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of T+0 Profit Calculator against them. Open each page to compare what they document and how they install.