Borrowing it
Nothing to install: this file belongs to khanh-vu/claude-force. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/khanh-vu/claude-force/main/.claude/skills/exchange-api-integration/SKILL.mdgit clone --depth 1 https://github.com/khanh-vu/claude-forceWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/khanh-vu/claude-force/exchange-api-integration)<a href="https://agentmods.dev/skills/khanh-vu/claude-force/exchange-api-integration"><img src="https://agentmods.dev/badge/skills/khanh-vu/claude-force/exchange-api-integration/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/khanh-vu/claude-force/exchange-api-integration"><img src="https://agentmods.dev/badge/skills/khanh-vu/claude-force/exchange-api-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00465 |
| Opus 5.5 | $0.00000 | $0.00186 |
| Sonnet 5.5 | $0.00000 | $0.00093 |
| Haiku 4.5 | $0.00000 | $0.00047 |
Grade A, and why
exchange-api-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Exchange API Integration
Best practices for robust CCXT-based exchange integrations.
Robust Exchange Connector
import ccxt
from tenacity import retry, stop_after_attempt, wait_exponential
class ExchangeConnector:
def __init__(self, exchange_id: str, api_key: str, secret: str):
exchange_class = getattr(ccxt, exchange_id)
self.exchange = exchange_class({
'apiKey': api_key,
'secret': secret,
'enableRateLimit': True, # CRITICAL!
'options': {'adjustForTimeDifference': True}
})
@retry(
stop=stop_after_attempt(3),
wait=wait_exponential(multiplier=1, min=2, max=10)
)
async def fetch_ticker(self, symbol: str):
"""Fetch ticker with automatic retries"""
try:
return await self.exchange.fetch_ticker(symbol)
except ccxt.NetworkError as e:
logger.error(f"Network error: {e}")
raise
except ccxt.ExchangeError as e:
logger.error(f"Exchange error: {e}")
raise
WebSocket Reconnection
async def websocket_with_reconnection(exchange_id: str, symbol: str):
"""WebSocket connection with exponential backoff reconnection"""
exchange = getattr(ccxt.pro, exchange_id)()
attempt = 0
while True:
try:
while True:
ticker = await exchange.watch_ticker(symbol)
attempt = 0 # Reset on success
yield ticker
except Exception as e:
wait_time = min(2 ** attempt, 60)
logger.warning(f"WebSocket error, reconnecting in {wait_time}s: {e}")
await asyncio.sleep(wait_time)
attempt += 1
Rate Limiting
# ✅ CORRECT - CCXT handles rate limiting
exchange = ccxt.binance({
'enableRateLimit': True # ALWAYS enable this!
})
# ❌ WRONG - No rate limiting
exchange = ccxt.binance() # Will get banned!
Always use enableRateLimit: True to prevent exchange bans.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 72 lines · 0 tokens per session scan A 4825469a7ef2
exchange-api-integration is a skill published in the GitHub repository khanh-vu/claude-force (6 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 465 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
x402
Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…
tushare
A Python interface for Tushare, a financial data service that provides market and company information for stocks, funds, futures, and digital assets. It returns queried data as pandas tables.
stripe-best-practices
Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, tax and registrations (Stripe Tax…
hyperliquid-websocket
Subscribe to live Hyperliquid data over WebSocket from the desk computer - mids, order book, trades, candles, best bid/offer, and per-account fills, order updates and events - with raw JSON, Python SDK and TypeScript examples, plus how to run a supervised watch that logs to a file and alerts. Read-only. Use for…
crypto-market-data-service-guide
Guide to the Crypto Market Data TypeScript service — clean market data APIs for token prices, candles, market cap, and volume across multiple chains. Features caching, rate limiting, fallback sources, and WebSocket subscriptions. Built for production DeFi applications.
wechatpay-payment-integration
A Chinese-language guide for WeChat Pay, Tencent's payment service, covering product selection, integration, troubleshooting, and payment operations.