compare_total_cost
Compare total crypto trading costs across exchanges, factoring trading fees, funding rates, withdrawal fees, spread, and optional annualized fiat on/off-ramp charges to reveal the all-in cost.
Instructions
当用户要求比较不同交易所的真实总成本(交易手续费+资金费率+提现费+点差,v0.26 起可选年化法币入金/出金费)时使用。Use when the user asks for a total cost comparison across exchanges including trading fees, funding rates for futures positions, withdrawal fees, spread, and (v0.26) optional annualized direct fiat deposit/cash-out fees. This is the most comprehensive comparison tool. Requires purpose, country, and monthly volume. Optionally pass holdingHours for funding cost, useToken for token discount, withdrawal details, and fiatDepositAmountUsd/fiatDepositsPerYear (+cashout equivalents) to fold bank/card on/off-ramping into the ranked total.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | 交易对,如 BTC/USDT、BTC/FDUSD、BTCUSDT 均可。命中币对级费率/0费促销时按促销价计费,未命中则按整所 VIP 档计费 | |
| side | No | 吃单方向,默认 buy;live 模式下 buy 行走卖盘 asks,sell 行走买盘 bids | |
| volume | Yes | 月交易量,USDT | |
| country | Yes | ISO 3166-1 alpha-2 国家代码 | |
| purpose | Yes | 交易类型 | |
| currency | No | 显示币种,默认 USD;汇率仅用于展示 | |
| language | No | 输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响 | |
| useToken | No | 是否使用平台币折扣 | |
| fiatMethod | No | 只按指定法币渠道计价(默认取最便宜):card/ach/sepa/fps/wire/swift/pix | |
| makerShare | No | 挂单(maker)成交占比 0-1,默认 0=纯吃单 | |
| spreadMode | No | 执行成本来源:bundled=内置典型点差基准(默认,半价差、零滑点,离线秒回);live=实时拉取订单簿前100档逐档行走,算出真实半价差+市场冲击滑点(逐所独立请求,单所失败自动回退内置基准并记入 failures,深度不足保留实测值并给 warning)。需配合 tradeSizeUsd 才会计入 | |
| spreadPair | No | 执行成本测算交易对,默认沿用 pair,再默认 BTC/USDT。live 模式现货自动解析现货市场(如 KuCoin 用 kucoin 而非 kucoinfutures),如 ETH/USDT、SOL-USDT | |
| fundingMode | No | 资金费率来源:bundled=内置长期均值(默认,离线稳定);live=实时拉取该合约当前资金费率(逐所独立请求,单所失败自动回退内置值;结果含 funding_source/funding_rate_ts/funding_pair 溯源字段) | |
| fundingPair | No | 资金费率合约对,默认 BTC/USDT 永续;仅 fundingMode=live 时生效,如 ETH/USDT、SOL-USDT | |
| fiatCurrency | No | 法币入金/出金币种,默认 USD(v0.26:可把年化法币通道费并入总成本) | |
| holdingHours | No | 持仓时长(小时),用于资金费率 | |
| tokenBalance | No | 持有的平台币数量(BNB / GT / KCS)。币安现货为 AND 门槛(不足降档);Gate OR GT 持仓、KuCoin OR KCS 持仓均可升档(不降档);同时用于平台币持仓折扣 | |
| tradeSizeUsd | No | 单笔吃单市价单规模(USD),默认不计执行成本。传入后总成本/年化/推荐会加上单边点差穿越成本(半价差);spreadMode=live 时再加上该规模下的订单簿滑点,如 10000=$1万、100000=$10万 | |
| withdrawalAsset | No | 提现资产,如 BTC, ETH, USDT | |
| accountAssetsUsd | No | 账户总资产(USD),适用于 OKX/Bybit/Bitget(30 日交易量 OR 账户资产取高定 VIP 档)与 Kraken(平台资产 AOP:Tier3 需 $20,000、Tier9 需 $100 万、Pro5 需 $1 亿;资产只升档不降档),如 $100,000 即 OKX VIP1 / Kraken Tier 9 | |
| withdrawalNetwork | No | 提现网络,如 TRC-20, ERC-20, Arbitrum | |
| fiatCashoutsPerYear | No | 每年法币出金次数;年化出金费=单次最便宜通道费×次数 | |
| fiatDepositsPerYear | No | 每年法币入金次数;年化入金费=单次最便宜通道费×次数 | |
| fiatCashoutAmountUsd | No | 单次法币出金(提现回银行卡)金额(USD);与 fiatCashoutsPerYear 同时传入时计入年化出金费 | |
| fiatDepositAmountUsd | No | 单次法币入金金额(USD);与 fiatDepositsPerYear 同时传入时,按该所最便宜直连通道计入年化入金费 |