# API & AI

Cập nhật 2026-10-29 16:52 UTC · https://afterfees.xyz/vi/developers

## REST API

Các endpoint JSON chỉ đọc dưới /api/v1 với token Pro cá nhân: bảng cơ hội theo quy mô của bạn, chi tiết từng dòng của mọi cặp, funding rate, giao dịch basis, Boros, lãi vay và vị thế chỉ đọc của bạn. Schema đầy đủ tại /api/openapi.json.

## Máy chủ MCP cho trợ lý AI

27 công cụ chỉ đọc tại /mcp (streamable HTTP) với cùng các con số như trên website. Không công cụ nào có thể giao dịch.

Không cần token để dùng thử: khi không có token, máy chủ trả lời ở cấp ẩn danh, đúng những gì một khách ẩn danh của trang thấy ($10,000 mỗi bên, giữ 7 ngày), 60 yêu cầu mỗi phút cho mỗi địa chỉ IP. Token Pro bổ sung quy mô của riêng bạn, mọi công cụ và 60 lượt gọi mỗi phút. Các công cụ sau cần token Pro: pair_breakdown, dex_scan, my_positions.

## Máy chủ MCP cho trợ lý AI

| Công cụ |   |
|---|---|
| best_opportunities | Best funding-rate arbitrage opportunities |
| coin_overview | One coin across exchanges |
| pair_breakdown | Every number of one pair (Cần token Pro) |
| funding_rates | Funding rates |
| borrow_rates | Margin borrow rates |
| fixed_vs_floating | Fixed vs floating funding (Pendle Boros) |
| execution_cost | Execution cost to enter a position |
| basis_trades | Basis trades against delivery futures |
| transfer_routes | Cross-exchange transfer (spot) arbitrage routes |
| pair_history | Settled-rate replay of one pair (7 to 365 days) |
| term_structure | Futures term structure of one coin |
| venue_execution_cost | Execution cost on one exchange |
| service_status | Service status |
| order_checklist | Order checklist for one pair |
| holding_scenarios | One pair over different holding periods |
| manual_calculator | Funding arbitrage calculator (typed-in legs) |
| boros_lock_calculator | Boros fixed-rate lock calculator |
| transfer_calculator | Cross-exchange transfer calculator |
| boros_market | One Pendle Boros market |
| boros_futures_basis | Boros implied rate vs futures basis |
| exchanges | Exchanges covered |
| exchange_overview | One exchange |
| coins | Coins covered |
| track_record | Public track record |
| dex_scan | CEX ↔ DEX arbitrage scan (Cần token Pro) |
| spread_chart | Price spread of two legs |
| my_positions | My hedged positions (read-only keys) (Cần token Pro) |

_Cách tính mọi con số trên AfterFees đều được công khai; Pro mở từng con số thành phép tính chi tiết từng dòng. Ước tính theo dữ liệu hiện tại, không phải lời khuyên đầu tư. Chúng tôi không bao giờ giữ tiền hay giao dịch thay bạn._
