Skip to main content
Glama
Rak4n-sa

Crypto API Fixer

by Rak4n-sa

Crypto API Fixer

暗号資産取引ボット向けの自動修復ミドルウェア。
ボットが損失を出す前に、APIエラーを2ms未満でサイレント修正します。

1つのミドルウェア。10種類のエラー対応。ゼロの頭痛。


なぜ存在するのか

暗号資産取引ボットは、以下のような理由で深夜3時に停止します:

  • レート制限 (429/503)

  • 古い/期限切れのデータ

  • 壊れたJSONスキーマ

  • 認証失敗

  • 価格の不一致

  • エンドポイントのダウンタイム

  • その他...

あなたが寝ている間にボットがフリーズし、資金を失います。

Crypto API Fixerが自動的に修正します。


クイックスタート (人間向け)

git clone https://github.com/yourusername/crypto-api-fixer.git
cd crypto-api-fixer
pip install -r requirements.txt

# Train the system (one time)
python main.py --mode train

# Run the MCP server
python main.py --mode server

# Test
python main.py --mode test

サーバーは http://localhost:8080 で実行されます


AIエージェント向け (Claude / Cursor / Windsurf)

MCP設定に以下を追加してください:

{
  "mcpServers": {
    "crypto-api-fixer": {
      "url": "https://your-server-url/mcp"
    }
  }
}

エージェントは自動的に 10種類の専門ツール を検出します。


修正内容

エラータイプ

修正方法

コスト

レイテンシ

レート制限 (429/503)

スマートバックオフ + プロキシローテーション

$0.003

<2ms

古いデータ

バックアップからの最新データ取得

$0.003

<2ms

壊れたJSON

スキーマのリマッピング + 修復

$0.007

<5ms

認証 401/403

キーローテーション + 署名修正

$0.007

<5ms

エンドポイントダウン

ミラーへの自動フェイルオーバー

$0.003

<3ms

価格の不一致

取引所間の中央値算出

$0.007

<4ms

財務リスク

サーキットブレーカー

$0.007

<2ms

WebSocket切断

サイレント再接続

$0.003

<2ms

キー権限の問題

低機能セーフモード

$0.003

<2ms

予期せぬ500

クリーン + スマートリトライ

$0.003

<3ms

修正の 94.9% はClaude API呼び出しを必要としません。


仕組み

API Error
    ↓
Detector — identifies error type
    ↓
Solution DB — seen before? instant fix ($0.003)
    ↓
Rule-based Handlers — fast deterministic fix ($0.003)
    ↓
Agents Loop — fixer_a vs fixer_b + critic + judge ($0.007)
    ↓
Claude API — last resort only (<5% of cases)
    ↓
Archive DB — learns from every fix

すべての修正が、システムを全員にとってより賢くします。


料金 (x402 — マシン間決済)

プラン

価格

条件

無料

$0

最初の100リクエスト/ボット

単純な修正

$0.003 USDC

キャッシュされた解決策

複雑な修正

$0.007 USDC

エージェントループ

支払いはBase上の x402プロトコル (USDC) を使用します。
Stripeや請求書は不要です。マシンがマシンに支払います。


週次レポート

毎週、ボットからメールが届きます:

Your Bot Fixed 47 API Errors This Week
Success rate: 98.2%
Avg fix time: 1.2ms
Estimated losses prevented: $2,350

対応取引所

Binance • Coinbase • Kraken • Bybit • OKX

ミラーへの自動バックアップルーティング付き。


MCPツール (10ツール)

fix_stale_data       fix_rate_limit      fix_endpoint_down
fix_unexpected_error fix_price_mismatch  fix_json_broken
fix_auth_error       fix_financial_risk  fix_websocket_dead
fix_key_permission

ライセンス

MIT


眠らない取引ボットのために作られました。
お金を節約できたら、リポジトリにスターを付けてください。

-
security - not tested
-
license - not tested
-
quality - not tested

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rak4n-sa/crypto-api-fixer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server