ESC
开源 9 分钟阅读

steam-stash-value-report-card:在终端中评估你的Steam库存并打印为分享卡片:按游戏、按市场,显示已售和库存物品。一个Windows便携版本,无需账户。

在终端中评估你的Steam库存价值并打印为分享卡片:按游戏、按市场,显示已售和库存物品。一个Windows便携版本,无需账户。

来源:GitHub

stashcard: 在终端中评估你的Steam库存并打印为可分享的报告卡片

python 3.11+ license MIT tests pytest platforms Windows, macOS, Linux telemetry none price sources free

$ stashcard
  粘贴一个个人资料 -> 选择一张卡片 -> 获取一张值得发布的PNG

Stashcard 评估一个Steam账户及其库存(CS2、Dota 2、TF2、Rust、Steam社区物品或任何自定义应用),从你的终端出发,在Steam和大型现金市场上定价,并将结果打印为可分享的卡片:报告卡片、游戏卡片、库存图片、热敏收据、市场对比,或时间对比/A vs B差异。

每个数字都带有其场所和窗口。LOWEST 是当前的最低挂牌价。AVG 是你在选择的窗口内真实销售的平均值。Steam货币是钱包资金;其他所有都是现金,两者从不静默混合。当某个来源没有数据时,Stashcard会回退并在行、总计和卡片页脚中说明。未定价的物品永远不会被计为零。

免费且开源。无需账户,无需付费API,无遥测。

交互流程的录制:输入'demo',用箭头键选择报告卡片,选择游戏、市场(添加CSFloat)和来自最便宜场所的LOWEST,观察进度步骤,阅读每个游戏和顶级物品表格,并以半块卡片预览结束在保存的卡片上

[!TIP] 在你的家用PC上运行Stashcard。Windows是推荐设置。 Steam对数据中心、VPS和云IP的限制很重,因此从服务器进行实时扫描不可靠。在服务器上,只有演示和缓存数据工作可靠。参见在哪里运行它。


下载

系统文件
Windows 10 和 11Stashcard-1.0.0-portable-x64.exe一个文件。无需安装程序,无需管理员权限

[!NOTE] 该构建尚未进行代码签名,因此SmartScreen可能会在首次运行时警告。选择更多信息,然后仍然运行。

图库

来自捆绑演示的真实卡片(一个带有真实物品名称、图标和定价快照的虚构个人资料)。

卡片布局的幻灯片:报告卡片、市场对比、库存图片、收据、时间对比和完全涂黑的报告卡片,在午夜、纸张和磷光主题中

报告卡片,midnight报告卡片,paper
<img src=“assets/card-summary-midnight.png” alt=“午夜主题中的报告卡片,带有按市场条带”<img src=“assets/card-summary-paper.png” alt=“纸张主题中的报告卡片”
市场收据
<img src=“assets/card-markets.png” alt=“市场对比:每个场所的地板价、费用和净价,最佳现金路线,每个物品的最便宜场所”<img src=“assets/card-receipt.png” alt=“物品化的热敏收据,带有费用、钱包和现金净价,以及市场小计”
游戏卡片,CS2游戏卡片,Dota 2,paper
<img src=“assets/card-game-cs2.png” alt=“CS2游戏卡片,带有稀有度混合和销售天数”<img src=“assets/card-game-dota2-paper.png” alt=“纸张主题中的Dota 2游戏卡片”
库存图片时间对比,phosphor
<img src=“assets/card-grid.png” alt=“物品图标网格,带有价格和稀有度标签”<img src=“assets/card-then-vs-now.png” alt=“时间对比差异,显示赢家、输家、添加和移除的物品”
A vs B,浅红色acted完全红色acted,phosphor
<img src=“assets/card-a-vs-b.png” alt=“两个个人资料并排,名称被屏蔽”<img src=“assets/card-summary-redacted.png” alt=“报告卡片,匿名名称、替换头像和价值区间”

每个PNG都附带一个card.json侧车文件(足以离线重新渲染并检查数字)和一个card.alt.txt,其中包含你可以粘贴在任何发布图片的地方的替代文本。

安装

[!IMPORTANT] 这是Windows构建。 Stashcard在Windows 10/11(x64)上运行,需要Python 3.11+。CLI在其他系统上拒绝启动(此构建仅限Windows。),因为打包的伴随运行时是一个Windows程序。

pipx install git+https://github.com/AssassinCreator/steam-account-value-checker.git

或者从克隆:

git clone https://github.com/AssassinCreator/steam-account-value-checker.git
cd stashcard
pipx install .            # 或者:python -m venv .venv && .venv/bin/pip install -e ".[dev]"

Python 3.11或更新版本。依赖项:httpx、brotli、rich、questionary、Pillow、platformdirs。 Inter和JetBrains Mono捆绑(SIL开源字体许可)。Windows步骤如下。

在哪里运行它

使用你的家用PC。Windows推荐;家用Linux和macOS也可以正常工作。

Steam限制每个IP的库存和市场请求,数据中心、VPS和云范围的限制比家用连接更严格。在我们的测试中,数据中心中的Linux服务器在第一次库存请求时得到了HTTP 429,因此实时扫描不可靠。在服务器上,只有离线演示和你已经缓存的数据工作可靠。Stashcard不捆绑代理或其他解决方法,并且当Steam拒绝时,它会如实告诉你。

Windows安装

  1. 从python.org安装Python 3.12(勾选将python.exe添加到PATH),或运行winget install Python.Python.3.12。

  2. 在PowerShell中:

    py -m pip install --user pipx
    py -m pipx ensurepath
    # 打开一个新的终端,然后:
    pipx install git+https://github.com/AssassinCreator/steam-account-value-checker.git
    stashcard demo
    
  3. 使用Windows Terminal(Windows 11上的默认终端)。它显示颜色、箭头键菜单和半块卡片预览。经典控制台仍然有效;Stashcard然后打印PNG的路径而不是预览,--open在你的图片查看器中打开卡片。Windows Terminal 1.22+还可以显示六像素图像:设置STASHCARD_PREVIEW=sixel(TODO(verify):尚未在真实硬件上测试)。

设置、缓存和历史记录转到%LOCALAPPDATA%\stashcard(stashcard config path打印确切的文件夹)。CI在Windows以及Linux上运行测试套件和演示。

快速入门

stashcard                                   # 交互式:粘贴一个个人资料,箭头键用于其余操作
stashcard demo                              # 离线演示,写入stashcard-demo-summary.png
stashcard demo --mode all --out-dir cards   # 一次性所有布局

stashcard card https://steamcommunity.com/id/yourname --mode grid --game cs2 -c EUR -o stash.png
stashcard markets yourname -c EUR           # 每个场所的地板价、费用后净价,在哪里出售
stashcard value 76561197960287930 --lowest-from best --json valuation.json --csv items.csv
stashcard diff yourname@last yourname       # 时间对比,从本地历史
stashcard diff yourname theirname           # A vs B,默认红色acted
stashcard render stash.json --theme paper   # 离线重新渲染侧车文件

个人资料可以以任何形式粘贴:steamcommunity.com/id/<name>、/profiles/<steamid64>、纯SteamID64、STEAM_0:X:Y、[U:1:N]、数字好友代码、s.team/p/<code>邀请链接,或自定义URL名称。

录制的`stashcard demo`会话:STASHCARD字标、步骤刻度、每个游戏的价值表、每个市场的地板价、带有LOWEST、AVG和中位数的顶级物品、诚实性检查和自上次扫描以来的差异

模式

模式命令你得到什么
报告卡片card P --mode summaryLOWEST、AVG和净价的总计,按游戏价值,顶级物品,按市场条带,诚实性芯片,差异,流动性等级
游戏库存卡片card P --mode game --for-game dota2一个游戏:稀有度混合(带有文本标签),物品表带有中位数和销售天数
库存图片card P --mode grid [--limit 36] [--paginate]带有价格的图标网格;"+N更多"图块或每页一个PNG
收据card P --mode receipt物品化的热敏收据:小计,Steam和游戏费用,钱包与现金净价,场所小计,条形码
市场markets P(或card P --mode markets)每个场所的地板总价、费用和净价以及覆盖范围;最佳现金路线;每个物品的最便宜购买和最佳现金出售
快速价值value P仅终端。表格,警告,--json / --csv
对比diff A B时间对比(同一个人资料)或A vs B(两个个人资料,并排)
演示demo [--mode ...]在捆绑的虚构个人资料上的相同管道。无需网络

实用工具:history P、config show | me | api-key | cookie | forget-secrets | reset | path、cache info | clear、currencies。

选项

选项默认意义
-g, --gamecs2,dota2,steamcs2、dota2、tf2、rust、steam,或自定义appid/contextid。重复或逗号分隔
-c, --currencyUSD任何Steam市场货币;Skinport覆盖16种;仅USD的场所会转换(`stashcard curr

encies) | | –source|both|both= LOWEST from Steam, AVG from Skinport;steam; skinport| |–markets|steam,skinport,waxpeer,csgotm,lisskins| Venues to price on; addcsfloat(experimental) or useall| |–lowest-from|steam| Where LOWEST comes from:steam, best(cheapest floor anywhere) or a venue key | |–fee VENUE=RATE| see table below | Override a seller fee, e.g.–fee waxpeer=0.05or–fee skinport=6%(repeatable) | |–csfloat-top|10| CSFloat history lookups per scan whencsfloatis enabled | |-w, –window|7d| AVG window:24h, 7d, 30d, 90d| |–min-price|0| Hide stacks cheaper than this per unit (hidden count and value are reported) | |–tradable-only| off | Ignore copies that cannot be traded right now | |–trimmed-avg| off | Opt-in AVG without the extreme sales, always labelledtrimmed avg| |–capture|0.10| Share of daily sales you could realistically take (days to sell) | |–steam-budget|60| Max live Steam price lookups per scan; cache hits are free | |-m, –mode|summary|summary, game, grid, receipt, markets (difffordiff, allfordemo) | | –theme|midnight|midnight, paper, phosphor| |–redact|auto|none, light, full; autodecides from your saved "me" profile | |-o, –output|./stashcard--.png| Card path; sidecars go next to it | |–open| off | Open the PNG with your system viewer | |–preview|auto| Inline preview:kitty, iterm, sixel, blocks, none| |–json, –csv| | Full valuation as JSON; one row per stack as CSV, with every venue's floor and net | |–plain| off | No colour, ASCII tables, no animation (also honoursNO_COLOR) | | –offline| off | Cache only; never touch the network | |–max-wait|20| LongestRetry-Afterto sit through before falling back | |–no-history, –no-sidecar, -q| | Skip local history; skipcard.json/alt.txt`; print paths only |

The interactive flow asks for the same things with arrow keys (including a multi-select for marketplaces) and remembers your last choices.

How prices work

Two numbers, never mixed up.

MeansDefault sourceFallback (labelled)
LOWESTThe current floor: the cheapest listing right nowSteam Community Market lowest_price (--lowest-from changes it)Skinport, then the cheapest other venue
AVGThe mean of actual sales over the windowSkinport sales history (avg for 24h / 7d / 30d / 90d)Steam sales history if you add your own login cookie, CSFloat (experimental), else Steam’s 24 h median

Steam’s public API only exposes a 24 hour median without a login, so for Steam community items (appid 753), which no cash venue covers, AVG falls back to Steam median · 24h. The card says exactly that, and so does every table row (*) and the footer (+7 Steam median · 24h).

Price sources

All free, no keys, verified live on 2026-10-29. Whole-catalog feeds are fetched once per game, cached for an hour and looked up locally. Stashcard sends an honest User-Agent and paces every host.

VenueAccessGamesWhat we useMoneyDefault seller feeCaveats
Steam Community Marketno keyanypriceoverview: floor, 24 h median and volume, per itemwallet5 % + 10 % game fee, Valve’s exact rounding~20 requests/min; datacenter IPs get 429
Skinportno keyCS2, Dota 2, TF2, Rust/v1/items floor, /v1/sales/history mean, median, min, maxcash8 %8 requests per 5 min; brotli required
Waxpeerno keyCS2, Dota 2, Rust, TF2 (tiny)/v1/prices lowest offer (in 1/1000 USD) and countcash6 %USD only, converted
Market.CSGOno keyCS2, Dota 2 (market.dota2.net), TF2 (tf2.tm), Rust (rust.tm)/api/v2/prices/USD.json lowest offercash5 %USD only; meaning of volume undocumented
Lis-skinsno keyCS2, Dota 2, Rust (no TF2 export)market_export_json/<game>.json lowest price and countcash5 %USD only; never the 140 MB api_csgo_full.json
CSFloat (experimental, opt-in)no key, undocumentedCS2/api/v1/history/<name>/graph daily average and count, top N items onlycash2 %Includes float and sticker premiums; skew guard applies
open.er-api.comno keyUSD exchange rates (incl. RUB, UAH, KZT), cached 12 hEvery converted number shows the rate and its date

Seller fees are defaults from fee pages and review sites as of 2026-10-29. Venues change and tier them, so they are marked TODO(verify) in markets.py; override them with --fee.

Wallet vs cash. Steam money can only be spent on Steam. The cards, tables and exports keep a WALLET or CASH tag on every venue. The best cash route adds up each stack sold at its best cash venue after fees; Steam’s net is shown next to it, never summed into it. Venue totals cover only what that venue lists, so each comes with its coverage of your value.

Outlier guard. AVG stays the mean, as promised, but the window median and max ride along. An item is badged skewed when the mean and median differ by more than 25 % or the max sale is above 5x the median. A real example: AK-47 | Redline (FT) once showed a 30 day mean of $39.85 against a median of $26.65 because of a single $2,114 sale. The median sits next to AVG in tables and on cards, skewed items are counted in the totals, and --trimmed-avg drops the extremes (labelled trimmed avg).

Fees and the two kinds of net.

  • Net on Steam (wallet): what you would receive listing at the Steam floor, after the 5 % Steam fee and the 10 % game fee, using Valve’s exact rounding (ported from the market’s own economy_common.js and tested so seller_receives(buyer_pays(x)) == x for every amount up to $200).
  • Net at a cash venue: that venue’s floor x (1 - seller fee).

Honesty checks run on every scan and show up in the terminal, on the cards and in the sidecar:

CheckFires when
unpricedNo floor and no sales anywhere. Counted separately, never as zero
not marketableMedals, coins, gems: listed, not valued
illiquidYou hold more than one day of sales volume
days to sellquantity / (daily volume x capture). “Sellable within 7 days: X % of value” drives the grade
skewedMean vs median > 25 %, or max > 5x median
wide spreadFloor and average disagree by more than 50 %
lockedTrade hold or CS2 trade protection: “locked now: $X, unlocks in N days”
fallbackA number came from a secondary source or metric
rate limitedA source said slow down; what was skipped and why

Rate limits. Steam rate-limits inventories hard (see Where to run it). Stashcard caches inventories for 10 minutes, Steam prices for 3 hours and venue catalogs for an hour, paces requests per host, backs off with jitter, honours Retry-After, and asks Steam about the most valuable items first so a 429 hurts least. When blocked it uses stale cache (and says how old) or tells you plainly: Steam is rate-limiting this connection; retry in N min, use cached data, or try the demo.

Privacy

  • Local only. Settings, cache and scan history live in your user folders (stashcard config path). Nothing is uploaded anywhere. No telemetry, no analytics, no accounts.
  • Redaction presets. --redact light masks the name (K•••••l) and SteamID64 (last 4 digits), blurs the avatar and drops the profile link and location. --redact full also replaces the avatar, shows “Anonymous collector” and turns totals into value bands ($2.5k–5k). By default your own profile (stashcard config me <profile>) is unredacted, anyone else’s is full, and until you set “me” the default is light. A-vs-B cards are at least light on both sides. Demo profiles are fictional.
  • Clean files. PNGs are written without text chunks or metadata. Sidecars respect the same redaction (value bands hide totals on the image; item rows stay in card.json so others can verify it, so skip it with --no-sidecar if you need the totals hidden).
  • Secrets. The optional API key and cookie are stored in secrets.json with mode 0600, or read from STASHCARD_STEAM_API_KEY / STASHCARD_STEAM_LOGIN_SECURE. They are never printed in full (set (…a1b2)), never written to cache keys or sidecars, and the cookie is only sent to steamcommunity.com. The cookie is a full Steam session: only add it if you understand that, and remove it with stashcard config cookie.

Accessibility

Rarity is always shown as text next to its colour, and WALLET/CASH as text next to theirs. --plain and NO_COLOR give colourless ASCII output. Every card gets alt text. Theme text colours are checked for contrast in the test suite.

Roadmap

  • stashcard watch --once with exit codes for cron, plus an optional self-hosted ntfy webhook.
  • “Household” roll-up cards across several profiles.
  • Instant-sell value from Steam buy orders for the top items, next to LOWEST and AVG.
  • A source cross-check that flags venues far from the consensus floor.
  • “Premium possible” flags from inventory data only: StatTrak, applied stickers, name tags, Doppler phases (“priced at the base name; real value may be higher”).
  • Library value at current store prices (with a Web API key), shown as replacement cost, never summed into a sale value.
  • history sparklines in the terminal and a value-over-time card.
  • Animated WebP cards for socials.

Regenerating the README assets

python scripts/make_assets.py            # PNG cards, banner, terminal.svg
pip install -e ".[gifs]"                 # pyte + pexpect, dev-only
python scripts/make_gifs.py              # assets/demo.gif (real pty recording) and assets/cards.gif

Disclaimer

Stashcard is not affiliated with, endorsed by or sponsored by Valve Corporation or Steam, or by any of the marketplaces it reads. Steam, the Steam logo, Counter-Strike, Dota and Team Fortress are trademarks of Valve Corporation. Item names and images belong to their owners. Prices are informational estimates from public market data, not offers, appraisals or financial advice, and can be stale or wrong. Steam accounts cannot be sold under the Steam Subscriber Agreement; nothing here is an “account value”.

License

MIT, see LICENSE. Bundled fonts: Inter and JetBrains Mono, SIL Open Font License 1.1 (src/stashcard/fonts/*.txt).