compare_countries
Run one trader profile through annual all-in costs across multiple countries to find the cheapest residency, showing cost gaps, blocked venues, and per-country winners.
Instructions
当用户问"同样的交易习惯在哪个国家最便宜/我要搬家或换居住地(美国/日本/德国/新加坡…)手续费和可用交易所有什么不同/哪些所在我国被封锁/同一画像跨国对比"时使用。Use to run ONE trader persona/profile through the FULL annual all-in stack (trading fees + funding + spread + withdrawals + fiat rails) across SEVERAL countries in a single call and see how residency changes the result: per-country winner + realistic best_complete pick, annual cost and the extra vs the cheapest country (USD and %), the venues blocked by compliance and the venues that simply do not offer the profile's product (e.g. spot-only Coinbase for a futures trader), a venue×country availability matrix, cross-country venue win counts, the cheapest/costliest country and the annual cost gap, and bilingual narrative advice. Defaults to the active_spot_trader persona across 7 representative countries (US, GB, DE, JP, SG, BR, CN); pick any of the 7 personas via persona and pass an explicit countries list (up to 12). Every persona parameter can be overridden (volume, maker share, token, assets, holding hours, clip). Live funding/depth overrides are resolved once over the union of venues allowed in ANY selected country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | No | 特定交易对费率活动,如 BTC/USDT | |
| side | No | 吃单方向,默认 buy;live 模式下 buy 行走卖盘 asks,sell 行走买盘 bids | |
| format | No | 矩阵渲染格式:json=仅结构化 JSON(默认,行为不变);markdown=在结果中额外附 rendered.markdown 可直接粘贴的表格;csv=附 rendered.csv(CRLF、RFC4180 转义,可导入 Excel);both=两者都附 | |
| persona | No | 交易者画像,默认 active_spot_trader:casual_buyer/hodler_accumulator/active_spot_trader/swing_futures_trader/day_scalper/vip_institutional/dex_native | |
| currency | No | 显示币种,默认 USD | |
| language | No | 输出语言:en=英文(默认),zh=中文。仅影响 advice/warnings/tradeoffs/reasons 等叙述性文字,数值、字段名与错误码不受影响 | |
| useToken | No | 覆盖画像默认的平台币折扣开关 | |
| countries | No | ISO 3166-1 alpha-2 国家代码列表(最多 12 个,去重),默认 US/GB/DE/JP/SG/BR/CN 七国对比 | |
| makerShare | No | 覆盖画像默认的 Maker 占比 0-1 | |
| 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 | |
| tableMetric | No | format 非 json 时表格内容:availability=交易所×国家可用性(✓/⛔/–,默认) / cost=交易所×国家年化总成本 | |
| holdingHours | No | 每次合约持仓小时数(资金费成本) | |
| tokenBalance | No | 平台币持仓数量(BNB/GT/KCS 等) | |
| tradeSizeUsd | No | 单笔下单规模 USD(执行成本) | |
| accountAssetsUsd | No | 账户总资产 USD | |
| monthlyVolumeUsd | No | 覆盖画像默认的月成交量(USD) |