AfterFees
Crypto funding-rate arbitrage across 50 exchanges, net of fees and order-book slippage. Read-only.
我該用這個嗎
品質與安全性
發現項目(4)
- LOW在 venue_execution_cost 中
- LOW在 service_status 中
- LOW在 boros_market 中
- LOW在 spread_chart 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"afterfees": {
"url": "https://afterfees.xyz/mcp"
}
}
}遠端端點
https://afterfees.xyz/mcpstreamable-http它能做什麼
工具清單
工具(27)
🟢best_opportunities(notional, holding_hours, mode, actionable_only, limit, ...)
Ranked funding-rate arbitrage pairs (long one market, short another) with the net result after taker fees and order-book slippage at your size, max size, breakeven, settled 7-day replay, tier (actionable / watch) and reasons.
輸入結構描述
{
"type": "object",
"properties": {
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"holding_hours": {
"type": "number",
"description": "Holding period in hours (default 168 = 7 days)",
"minimum": 1,
"maximum": 2160,
"default": 168
},
"mode": {
"type": "string",
"enum": [
"all",
"perp",
"spot",
"rev"
],
"default": "all",
"description": "perp = perp vs perp, spot = buy spot + short perp, rev = borrow-and-sell spot + long perp"
},
"actionable_only": {
"type": "boolean",
"default": true,
"description": "Only pairs that pass every check right now (live books, positive net, capacity)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
},
"base": {
"type": "string",
"description": "Only this coin (optional)"
}
},
"required": [],
"additionalProperties": false
}🟢coin_overview(base, notional)
Funding rate of one coin on every exchange (rate, interval, APR, predicted, OI, volume, settled 7-day sum) plus its best pairs, net after fees and slippage at your size.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin or ticker, e.g. BTC, ETH, SOL"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
}
},
"required": [
"base"
],
"additionalProperties": false
}🟢pair_breakdown(pair_key, notional, holding_hours)
Full calculation of one pair: funding per leg and settlement count, taker fees, order-book VWAP and slippage per trade, carry, net, net if rates halve, breakeven, capacity, settled 7/30-day replay. pair_key comes from best_opportunities or coin_overview. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.
輸入結構描述
{
"type": "object",
"properties": {
"pair_key": {
"type": "string",
"description": "pair_key from another tool"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"holding_hours": {
"type": "number",
"description": "Holding period in hours (default 168 = 7 days)",
"minimum": 1,
"maximum": 2160,
"default": 168
}
},
"required": [
"pair_key"
],
"additionalProperties": false
}🟢funding_rates(base, limit, min_oi_usd)
Current perpetual funding rates (gross, before costs). With base: that coin on every exchange, highest first. Without: the top N markets by absolute APR (OI filter applies).
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin (optional)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
},
"min_oi_usd": {
"type": "number",
"minimum": 0,
"default": 100000,
"description": "Skip markets with less open interest (top-N mode only)"
}
},
"required": [],
"additionalProperties": false
}🟢borrow_rates(base, limit)
Margin borrow rates per coin and exchange (VIP0, current and 24 h / 7 d averages, limits, inventory) with the most negative perp funding: the two halves of a reverse spot-perp carry.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin (optional)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
}
},
"required": [],
"additionalProperties": false
}🟢fixed_vs_floating(side, base, notional, limit)
Pendle Boros markets: the fixed funding rate you can lock (net of Boros fees and fill at your size) against the term-matched floating benchmark, advantage, win rate, capacity. side=short locks an income, side=long locks a cost.
輸入結構描述
{
"type": "object",
"properties": {
"side": {
"type": "string",
"enum": [
"short",
"long"
],
"default": "short"
},
"base": {
"type": "string",
"description": "Coin (optional)"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [],
"additionalProperties": false
}🟢execution_cost(base, size_usd)
Taker fee + order-book slippage to buy or sell a given USD size of one coin on every exchange (perps and spot), cheapest first.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin or ticker, e.g. BTC, ETH, SOL"
},
"size_usd": {
"type": "number",
"minimum": 100,
"maximum": 50000000,
"default": 100000
}
},
"required": [
"base"
],
"additionalProperties": false
}🟢basis_trades(base, notional, actionable_only, scope, limit)
Spot or perp against a dated future held to delivery, on one exchange or across two (perp on one, future on another), and two same-day futures on different exchanges: net to expiry after fees and slippage at your size, net APR, basis APR, max size, tier and reasons.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin (optional)"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"actionable_only": {
"type": "boolean",
"default": false
},
"scope": {
"type": "string",
"enum": [
"same",
"cross"
],
"description": "same exchange or cross-exchange rows only (optional)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [],
"additionalProperties": false
}🟢transfer_routes(base, notional, include_hedge, view, status, ...)
Buy a coin on one exchange, withdraw it on a network both exchanges share (same chain and contract, never matched by ticker), sell on another: real-transfer net after taker fees, order-book slippage and the withdrawal fee at your size, pre-funded net, capacity at net >= 0 / 0.3% / 1%, arrival estimate, hedge cost on a perp, status and reasons. view=traps lists spreads that exist only because deposits or withdrawals are closed.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin (optional)"
},
"notional": {
"type": "number",
"minimum": 100,
"maximum": 10000000,
"default": 10000,
"description": "Size in USD (Pro; free uses 10000)"
},
"include_hedge": {
"type": "boolean",
"default": false
},
"view": {
"type": "string",
"enum": [
"routes",
"traps"
],
"default": "routes"
},
"status": {
"type": "string",
"enum": [
"executable",
"near",
"closed",
"unverified",
"all"
],
"default": "executable"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [],
"additionalProperties": false
}🟢pair_history(pair_key, range, notional)
Funding actually settled on both legs over 7 / 30 / 90 / 180 / 365 days, applied to today's orientation at your size: net after the four trading costs, max drawdown, negative days, daily sign flips, how far back each exchange's history reaches. Ranges beyond 7 days need Pro.
輸入結構描述
{
"type": "object",
"properties": {
"pair_key": {
"type": "string",
"description": "pair_key from another tool"
},
"range": {
"type": "string",
"enum": [
"7d",
"30d",
"90d",
"180d",
"365d"
],
"default": "30d"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
}
},
"required": [
"pair_key"
],
"additionalProperties": false
}🟢term_structure(base)
Annualised basis of every delivery future of one coin on every exchange we cover, next to perp funding.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Coin or ticker, e.g. BTC, ETH, SOL"
}
},
"required": [
"base"
],
"additionalProperties": false
}🟢venue_execution_cost(venue, limit)
Taker fee plus order-book slippage to enter $10k / $100k / $1M long and short on one exchange's biggest markets, in basis points.
輸入結構描述
{
"type": "object",
"properties": {
"venue": {
"type": "string",
"description": "exchange id, e.g. binance"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 60,
"default": 20
}
},
"required": [
"venue"
],
"additionalProperties": false
}🟢service_status
Whether AfterFees data is live right now, which exchange feeds are down, and availability over 1 / 7 / 30 / 90 days.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢order_checklist(pair_key, notional)
The two orders to place by hand for one pair: action, exchange, symbol, quantity in the exchange's own unit (contracts where one contract is not one coin), notional, assumed leverage and a link to each contract's trading page (no referral parameters). AfterFees never trades.
輸入結構描述
{
"type": "object",
"properties": {
"pair_key": {
"type": "string",
"description": "pair_key from another tool"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
}
},
"required": [
"pair_key"
],
"additionalProperties": false
}🟢holding_scenarios(pair_key, notional, assumed_rates_pct)
Net after fees and slippage of one live pair held 8 h, 1 d, 3 d, 7 d and 30 d, optionally with your own assumed funding rate per leg (percent per funding period, keyed by instrument_id).
輸入結構描述
{
"type": "object",
"properties": {
"pair_key": {
"type": "string"
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"assumed_rates_pct": {
"type": "object",
"additionalProperties": {
"type": "number"
},
"description": "{instrument_id: rate per period in %} (optional)"
}
},
"required": [
"pair_key"
],
"additionalProperties": false
}🟢manual_calculator(legs, notional, holding_hours, slippage_bps, leverage)
Net, net APR, breakeven and funding-halved case for two legs you describe (no live data): each leg {side: long|short, rate_pct per period, interval_hours, taker_bps, first_in_hours?}.
輸入結構描述
{
"type": "object",
"properties": {
"legs": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "object"
}
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"holding_hours": {
"type": "number",
"description": "Holding period in hours (default 168 = 7 days)",
"minimum": 1,
"maximum": 2160,
"default": 168
},
"slippage_bps": {
"type": "number",
"minimum": 0,
"maximum": 500
},
"leverage": {
"type": "number",
"minimum": 1,
"maximum": 100
}
},
"required": [
"legs"
],
"additionalProperties": false
}🟢boros_lock_calculator(side, rate_pct, days, notional, taker_pct, ...)
Locked net (income) or cost APR on Pendle Boros at an implied APR you give, after the taker and settlement fees and the entry cost, its advantage over a floating APR you expect and the break-even floating rate. Percent inputs.
輸入結構描述
{
"type": "object",
"properties": {
"side": {
"type": "string",
"enum": [
"income",
"cost"
],
"default": "income"
},
"rate_pct": {
"type": "number"
},
"days": {
"type": "number",
"minimum": 0.1,
"maximum": 730
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"taker_pct": {
"type": "number",
"default": 0.05
},
"settle_pct": {
"type": "number",
"default": 0.1
},
"entry_usd": {
"type": "number",
"default": 1.5
},
"floating_pct": {
"type": "number"
}
},
"required": [
"rate_pct",
"days"
],
"additionalProperties": false
}🟢transfer_calculator(buy, sell, amount, fee_a_pct, fee_b_pct, ...)
Buy on exchange A, withdraw, sell on exchange B at prices you give: real-transfer and prefunded net, break-even premium. Fees in percent, withdrawal fee in coins.
輸入結構描述
{
"type": "object",
"properties": {
"buy": {
"type": "number"
},
"sell": {
"type": "number"
},
"amount": {
"type": "number",
"default": 10000
},
"fee_a_pct": {
"type": "number",
"default": 0.1
},
"fee_b_pct": {
"type": "number",
"default": 0.1
},
"withdraw_coin": {
"type": "number",
"default": 0
},
"usdt_back": {
"type": "number",
"default": 1
},
"trips": {
"type": "number",
"default": 1
}
},
"required": [
"buy",
"sell"
],
"additionalProperties": false
}🟢boros_market(market_id, side, notional)
Detail of one Boros market (id from fixed_vs_floating): fixed rate at your size net of fees, floating benchmarks, advantage, win rate, capacity, reasons.
輸入結構描述
{
"type": "object",
"properties": {
"market_id": {
"type": "integer"
},
"side": {
"type": "string",
"enum": [
"short",
"long"
]
},
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
}
},
"required": [
"market_id"
],
"additionalProperties": false
}🟢boros_futures_basis(notional, limit)
Lock funding on Boros against a delivery future of the same maturity: implied APR vs basis APR, net after fees and slippage at your size.
輸入結構描述
{
"type": "object",
"properties": {
"notional": {
"type": "number",
"description": "Position size per side in USD (default 10000)",
"minimum": 10,
"maximum": 100000000,
"default": 10000
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [],
"additionalProperties": false
}🟢exchanges
Every exchange AfterFees reads: kind, fully calculated or watch-only, status, markets, taker / maker fee, open interest, 24 h volume.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢exchange_overview(venue)
One exchange: fees and their source, funding intervals, open interest, volume, highest and lowest funding and its best after-fee pairs.
輸入結構描述
{
"type": "object",
"properties": {
"venue": {
"type": "string",
"description": "exchange id, e.g. binance"
}
},
"required": [
"venue"
],
"additionalProperties": false
}🟢coins(group, limit)
Coins with a perp on two or more exchanges: exchange count, open interest, highest and lowest funding APR and the best after-fee pair.
輸入結構描述
{
"type": "object",
"properties": {
"group": {
"type": "string",
"enum": [
"all",
"crypto",
"equity",
"commodity",
"index",
"fx"
],
"default": "all"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 500,
"default": 30
}
},
"required": [],
"additionalProperties": false
}🟢track_record
How AfterFees' daily top picks actually did: predicted net vs net realised from settled funding over the hold, hit rate, mean error, latest picks.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}🟢dex_scan(base, limit)
Tokens our exchanges list with a verified contract on Ethereum, BNB Chain, Base, Arbitrum or Solana whose DEX price is more than 1% away: net at $1k / $5k / $10k after aggregator price impact, swap gas, the token transfer gas and the exchange's withdrawal fee, status and reasons. Pro. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.
輸入結構描述
{
"type": "object",
"properties": {
"base": {
"type": "string",
"description": "Token (optional)"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 10
}
},
"required": [],
"additionalProperties": false
}🟢spread_chart(leg_a, leg_b, candle, days, executable)
Candles of (A − B) / B between any two instruments (book mids where stored, else marks). Free: 1 h candles and longer over up to 7 days; Pro: 1 m and up, up to 365 days.
輸入結構描述
{
"type": "object",
"properties": {
"leg_a": {
"type": "string",
"description": "instrument id, e.g. binance:um:BTCUSDT"
},
"leg_b": {
"type": "string",
"description": "instrument id"
},
"candle": {
"type": "string",
"enum": [
"1m",
"5m",
"15m",
"1h",
"4h",
"1d"
],
"default": "1h"
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 365,
"default": 7
},
"executable": {
"type": "boolean",
"default": false
}
},
"required": [
"leg_a",
"leg_b"
],
"additionalProperties": false
}🟢my_positions
Your positions across the read-only exchange keys connected to your AfterFees account, grouped into hedges: delta drift, distance to liquidation, funding received, issues. Needs a Pro account token; AfterFees only accepts read-only keys. Needs a Pro API token (Authorization: Bearer arb_…); not available on the anonymous tier.
輸入結構描述
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}社群
證據