{"protocol":"x402","version":"1.0.0","provider":"Central Command","description":"AI-native trading intelligence MCP — pay-per-use (Base USDC x402) or prepaid plans. Derivatives data, counter-trade alpha, AI agents, backtesting, and strategy console.","base_url":"https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway","authentication":{"type":"api_key","header":"X-Api-Key","obtain":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/register","optional":"Omit the key and pay with X-PAYMENT (canonical x402) instead"},"payment_models":{"pay_per_use":{"protocol":"x402","currency":"USDC","network":"eip155:8453","network_name":"Base","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","pay_to":"0x4562679A63C7Fc3569cF505D9a1Ac9dB06fADb3d","how":"Call any slug without a key → HTTP 402 with accepts[] → settle Base USDC → retry with X-PAYMENT (or MCP __x_payment). No account required.","well_known":"https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/well-known-x402"},"prepaid_plans":{"currency":"USDC","topup":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/topup","balance":"GET https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/balance","how":"Register an X-Api-Key, top up USDC balance (and optional token credits for AI). Data endpoints charge fixed per-call; AI charges per-token.","plans":{"free":{"topup_usdc":0,"unlocks":["free"],"trial":"100 standard data calls","description":"Register only — free endpoints + trial of standard market data"},"standard":{"topup_usdc":5,"unlocks":["free","standard"],"description":"All market-data / analytics endpoints (fixed USDC per call)"},"premium":{"topup_usdc":20,"unlocks":["free","standard","premium"],"description":"Signals, trade-builder, backtests, indicator tools, AI (per-token)"},"enterprise":{"topup_usdc":100,"unlocks":["free","standard","premium","enterprise"],"description":"Full catalog + highest limits"}}},"linked_connect":{"price_usdc":0,"how":"Mint while signed in (Account → Connect Claude / Tasks → Connect). linked_user_id keys are free for the entire catalog."}},"payment":{"currency":"USDC","networks":["base"],"x402_network":"eip155:8453","model":"pay_per_use_or_prepaid","minimum_topup":"1.00","how_to_pay":"Pay-per-use: X-PAYMENT on Base. Prepaid: register + POST /topup. Linked Connect: free."},"tiers":{"free":{"topup_usdc":0,"unlocks":"free endpoints + 100 standard trial calls","rate_limit":"10/min"},"standard":{"topup_usdc":5,"unlocks":"free + standard","rate_limit":"60/min","price_band":"$0.0005–0.004/call"},"premium":{"topup_usdc":20,"unlocks":"free + standard + premium (+ AI per-token)","rate_limit":"30/min","price_band":"$0.002–0.012/call"},"enterprise":{"topup_usdc":100,"unlocks":"full catalog","rate_limit":"60/min","price_band":"same + highest limits"}},"endpoints":[{"slug":"squirrel-chat","name":"AI Trading Chat","category":"ai","description":"Full AI trading assistant with real-time market data, position analysis, chart drawing commands, and multi-tool execution. Supports 60+ data actions including candles, funding rates, open interest, liquidations, order book, and more. Returns structured analysis with optional chart annotations.","returns":"AI response with market analysis, trade suggestions, and optional draw_commands for chart annotations. Token usage included for billing.","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_token_prepaid_or_x402_flat","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"10/min","cache_ttl":"real-time","tags":["chat","ai","analysis","trading","market-data"],"parameters":[{"name":"message","type":"string","required":true,"description":"User message / question / instruction"},{"name":"conversation_id","type":"string","required":false,"description":"Existing conversation UUID for context continuity"},{"name":"positions","type":"array","required":false,"description":"Current open positions for context"},{"name":"symbol","type":"string","required":false,"description":"Active chart symbol (e.g. BTC-USDT)"},{"name":"timeframe","type":"string","required":false,"description":"Active chart timeframe (e.g. 4H)"}],"example_request":{"symbol":"BTC-USDT","message":"What is BTC funding rate across exchanges?"},"example_response":{"usage":{"prompt_tokens":1200,"completion_tokens":800},"response":"BTC funding is currently 0.0045% (annualized 4.9%)...","draw_commands":[]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/squirrel-chat"},{"slug":"indicator-generator","name":"AI Indicator Creator","category":"ai","description":"AI-powered indicator workshop. Actions: generate (prompt→code), list_library (user saved indicators), get_indicator (by id), delete_indicator, get_draft (poll generation status), save (persist to library). Returns full indicator code, params, and metadata.","returns":"For generation: {success, processing, generation_id}. For list_library: {indicators:[{id, name, description, code, color, is_overlay, params}]}. For get_draft: {draft, status, generation_id}.","price_usdc":0.02,"price_per_call":"$0.02 USDC","price_model":"per_token_prepaid_or_x402_flat","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"10/min","cache_ttl":"real-time","tags":["indicator","code-generation","ai","custom","technical-analysis","charting"],"parameters":[{"name":"action","type":"string","required":false,"description":"list_library | get_indicator | delete_indicator | get_draft | save. Omit for generation."},{"name":"prompt","type":"string","required":false,"description":"Natural language description of indicator to generate (required for generation)"},{"name":"indicator_id","type":"string","required":false,"description":"UUID of indicator (for get/delete actions)"},{"name":"save","type":"boolean","required":false,"description":"Set true with indicator_data to persist to library"},{"name":"indicator_data","type":"object","required":false,"description":"Full indicator object to save: {name, description, code, color, is_overlay, params}"},{"name":"history","type":"array","required":false,"description":"Conversation history for refinement"},{"name":"timeframe","type":"string","required":false,"description":"Chart timeframe context (e.g. 4H, 1D)"}],"example_request":{"action":"list_library"},"example_response":{"count":3,"action":"list_library","success":true,"indicators":[{"id":"...","code":"...","name":"RSI Divergence"}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/indicator-generator"},{"slug":"openclaw-chat","name":"OpenClaw Strategy Agent","category":"ai","description":"Autonomous AI agent specialized in strategy development, backtesting, and continuous market monitoring. Uses indicator libraries, pattern recognition, and instrument specifications.","returns":"Structured AI analysis with computed indicators, detected patterns, strategy recommendations, and task management for autonomous execution.","price_usdc":0.025,"price_per_call":"$0.025 USDC","price_model":"per_token_prepaid_or_x402_flat","monthly_option":null,"plan":"enterprise","tier":"enterprise","requires_credentials":true,"rate_limit":"10/min","cache_ttl":"real-time","tags":["ai","strategy","autonomous","backtesting","patterns","indicators"],"parameters":[{"name":"message","type":"string","required":true},{"name":"conversation_id","type":"string","required":false}],"example_request":{"message":"Create a mean-reversion strategy for ETH using Bollinger Bands and RSI"},"example_response":{"message":"Strategy created: ETH Mean Reversion v1. Entry: RSI < 30 AND price touches lower BB. Exit: RSI > 50 OR price hits middle BB. Backtested 90 days: 68% win rate, 1.8 Sharpe, max DD 4.2%.","task_proposal":{"goal":"Monitor ETH for BB+RSI entry conditions","title":"ETH Mean Reversion Monitor"}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/openclaw-chat"},{"slug":"squirrel-chat-v2","name":"Autonomous Trading Agent","category":"ai","description":"Full AI trading assistant powered by GPT that can analyze markets, compute indicators, fetch live data, place orders, manage positions, and provide strategic advice.","returns":"Conversational AI response with embedded trade execution, market analysis, indicator computations, and chart drawing commands.","price_usdc":0.03,"price_per_call":"$0.03 USDC","price_model":"per_token_prepaid_or_x402_flat","monthly_option":null,"plan":"enterprise","tier":"enterprise","requires_credentials":true,"rate_limit":"10/min","cache_ttl":"real-time","tags":["ai","agent","autonomous","trading","analysis","execution","conversational"],"parameters":[{"name":"message","type":"string","required":true,"description":"Natural language message to the AI agent"},{"name":"conversation_id","type":"string","required":false,"description":"Continue existing conversation"}],"example_request":{"message":"Analyze BTC and tell me if I should be long or short right now"},"example_response":{"message":"BTC is currently at $67,500 showing bullish divergence on the 4H RSI (42 -> 48 while price made equal lows). Funding is slightly negative (-0.002%) suggesting shorts are paying. I lean long here with entry at current, SL at $66,200 (below the range low), TP1 at $69,000. Risk/reward: 2.3:1.","actions_executed":[{"action":"get_price","result":{"price":67500}}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/squirrel-chat-v2"},{"slug":"trade-builder","name":"AI Trade Constructor","category":"execution","description":"Takes natural language or structured trade ideas, fetches live market context, and generates fully executable order parameters with AI reasoning.","returns":"Complete trade specification: symbol, side, size, leverage, entry type, TP levels, SL level, AI reasoning for each parameter.","price_usdc":0.02,"price_per_call":"$0.02 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"10/min","cache_ttl":"real-time","tags":["ai","trade-planning","order-generation","risk-management","automation"],"parameters":[{"name":"idea","type":"string","required":true,"description":"Natural language trade idea or structured params"},{"name":"risk_pct","type":"number","required":false,"description":"Max risk as % of account"}],"example_request":{"idea":"Long ETH if it breaks above 3500 with tight stop","risk_pct":1.5},"example_response":{"sl":3450,"tp":[3600,3700],"side":"buy","symbol":"ETH-USDT","leverage":10,"reasoning":"Breakout setup above key resistance with defined risk.","entry_type":"limit","entry_price":3505,"size_contracts":15},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/trade-builder"},{"slug":"twap-executor","name":"TWAP Order Executor","category":"execution","description":"Time-Weighted Average Price execution engine — splits large orders into smaller randomized slices over configurable time windows to minimize market impact.","returns":"Execution status: filled slices, average fill price, remaining quantity, estimated completion time.","price_usdc":0.015,"price_per_call":"$0.015 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":true,"rate_limit":"10/min","cache_ttl":"real-time","tags":["execution","twap","smart-order","market-impact","slippage"],"parameters":[{"name":"symbol","type":"string","required":true},{"name":"side","type":"string","required":true},{"name":"total_size","type":"number","required":true},{"name":"duration_minutes","type":"number","required":true},{"name":"slices","type":"number","required":false}],"example_request":{"side":"buy","slices":10,"symbol":"BTC-USDT","total_size":1.5,"duration_minutes":30},"example_response":{"status":"executing","avg_fill":67480,"remaining":0.9,"filled_slices":4,"est_completion":"2024-01-15T14:30:00Z"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/twap-executor"},{"slug":"blofin-public","name":"BloFin Public Market Data","category":"execution","description":"Proxy to BloFin public API (tickers, instruments, orderbook, trades, candles) bypassing CORS restrictions.","returns":"Raw BloFin public API response for any public endpoint: real-time tickers, full orderbook depth, recent trades, OHLCV candles.","price_usdc":0.0005,"price_per_call":"$0.0005 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"120/min","cache_ttl":"60s","tags":["blofin","orderbook","tickers","candles","exchange-data"],"parameters":[{"name":"path","type":"string","required":true,"description":"BloFin API path e.g. /api/v1/market/tickers"},{"name":"params","type":"object","required":false}],"example_request":{"path":"/api/v1/market/tickers","params":{"instId":"BTC-USDT"}},"example_response":{"code":"0","data":[{"ask":"67500.9","bid":"67499.8","last":"67500.5","instId":"BTC-USDT","vol24h":"45000"}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/blofin-public"},{"slug":"etf-flows","name":"Bitcoin ETF Flow Tracker","category":"market_data","description":"Real-time Bitcoin/crypto ETF inflow and outflow data tracking institutional positioning (GBTC, IBIT, FBTC, etc). 60-min cache.","returns":"Per-ETF daily flow in USD with cumulative totals, showing institutional demand/supply dynamics.","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"3600s","tags":["etf","institutional","flows","bitcoin","blackrock","grayscale"],"parameters":[],"example_request":{},"example_response":{"date":"2024-01-15","etfs":[{"flow":180000000,"ticker":"IBIT"},{"flow":-45000000,"ticker":"GBTC"}],"total_flow_usd":250000000},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/etf-flows"},{"slug":"economic-calendar","name":"Macroeconomic Event Calendar","category":"market_data","description":"Upcoming high-impact macroeconomic events (CPI, FOMC, NFP, etc.) with forecast vs previous values. 60-min cache.","returns":"Array of events with dates, countries, impact level, forecast/actual/previous values.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"3600s","tags":["macro","calendar","fomc","cpi","nfp","economic"],"parameters":[],"example_request":{},"example_response":{"events":[{"date":"2024-01-15T13:30:00Z","name":"US CPI YoY","impact":"high","country":"US","forecast":"3.2%","previous":"3.4%"}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/economic-calendar"},{"slug":"cme-gap","name":"CME Futures Gap Detector","category":"market_data","description":"Detects and tracks CME Bitcoin futures gaps (Friday close vs Monday open) with fill status monitoring. Unique signal.","returns":"Array of detected gaps: direction, size, fill status, and dates. Gaps act as price magnets.","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"1800s","tags":["cme","gaps","futures","price-magnets","institutional"],"parameters":[],"example_request":{},"example_response":{"gaps":[{"status":"OPEN","gap_pct":0.89,"gap_size":600,"direction":"up","filled_at":null,"monday_open":67800,"friday_close":67200}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/cme-gap"},{"slug":"traditional-markets","name":"Traditional Markets Dashboard","category":"market_data","description":"Live quotes for S&P 500, Nasdaq, Dow, VIX, Gold, Oil, US Bonds, DXY, and major forex pairs. 15-min cache.","returns":"Multi-category quotes: indices, metals, energy, bonds, forex with price and change percentages.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"900s","tags":["tradfi","spx","nasdaq","gold","dxy","vix","correlation"],"parameters":[],"example_request":{},"example_response":{"forex":{"DXY":{"price":104.2,"change_pct":0.08}},"metals":{"GOLD":{"price":2650,"change_pct":-0.12}},"indices":{"SPX":{"price":5850,"change_pct":0.45}}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/traditional-markets"},{"slug":"hyperliquid-data","name":"Hyperliquid Whale Intelligence","category":"market_data","description":"Whale positions and activity alerts from Hyperliquid DEX showing large trader positioning. 30-min cache.","returns":"Large positions (size, entry, PnL, leverage) plus recent whale open/close alerts.","price_usdc":0.003,"price_per_call":"$0.003 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"1800s","tags":["whales","hyperliquid","dex","smart-money","positioning"],"parameters":[],"example_request":{},"example_response":{"alerts":[{"size":2000000,"type":"open","symbol":"ETH"}],"whale_positions":[{"side":"long","entry":66800,"symbol":"BTC","trader":"0xabc...def","pnl_pct":2.3,"size_usd":5000000}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/hyperliquid-data"},{"slug":"market-news","name":"AI-Curated Market News","category":"market_data","description":"Aggregated crypto and macro market news from multiple sources with relevance scoring and categorization.","returns":"Categorized news articles: title, source, URL, relevance score, AI summary per category.","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"1800s","tags":["news","sentiment","narrative","catalyst","headlines"],"parameters":[{"name":"category","type":"string","required":false,"description":"Filter: btc, eth, sol, macro, all"}],"example_request":{"category":"btc"},"example_response":{"articles":[{"score":0.92,"title":"Bitcoin ETF sees record inflows","source":"CoinDesk","summary":"BlackRock IBIT saw $500M single-day inflow..."}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/market-news"},{"slug":"ma-fetch","name":"Moving Average Data","category":"market_data","description":"Multi-period moving average values (SMA/EMA at various lengths) via Coinglass with 30-min cache.","returns":"MA values at 7, 25, 50, 99, 200 periods across multiple timeframes for trend analysis.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"1800s","tags":["moving-averages","trend","sma","ema","technical"],"parameters":[{"name":"symbol","type":"string","required":true}],"example_request":{"symbol":"BTC"},"example_response":{"ma_7":67200,"ma_25":66500,"ma_50":64800,"ma_99":62100,"ma_200":58400,"symbol":"BTC"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/ma-fetch"},{"slug":"asset-scanner","name":"Multi-Asset Technical Scanner","category":"market_data","description":"Scans 36 major crypto assets across BTC, ETH, SOL, alts, and memes for multi-timeframe technical signals including RSI, MACD, Bollinger Bands, ATR, and composite scores.","returns":"Array of per-symbol objects with indicator values, directional scores, and signal strength ratings. Cached 30 minutes.","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"1800s","tags":["crypto","technical-analysis","scanner","multi-asset","signals"],"parameters":[],"example_request":{},"example_response":{"data":[{"price":67500,"rsi_1h":48.7,"symbol":"BTC-USDT","atr_pct":1.8,"rsi_15m":55.2,"bb_position":0.62,"macd_signal":"bullish","composite_score":72}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/asset-scanner"},{"slug":"coinglass-data","name":"Aggregated Derivatives Intelligence","category":"market_data","description":"Comprehensive Coinglass derivatives data including open interest, liquidations, funding rates, and long/short ratios with 45-min caching and gzip compression.","returns":"Normalized market microstructure data across top crypto perpetual futures.","price_usdc":0.003,"price_per_call":"$0.003 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"2700s","tags":["derivatives","open-interest","liquidations","funding","coinglass"],"parameters":[{"name":"symbol","type":"string","required":false,"description":"Specific symbol to query (default: top 20)"}],"example_request":{"symbol":"BTC"},"example_response":{"oi":{"BTC":{"total":18500000000,"change_24h":2.3}},"funding":{"BTC":0.0045},"liquidations_24h":{"long":45000000,"short":23000000}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/coinglass-data"},{"slug":"coinglass-footprint","name":"Orderflow Footprint Data","category":"market_data","description":"Fetches footprint/orderflow data showing buy vs sell volume imbalance at each price level. 5-minute cache.","returns":"Orderflow footprint matrix: buy/sell volume at discrete price levels revealing absorption, exhaustion, and imbalance.","price_usdc":0.005,"price_per_call":"$0.005 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"300s","tags":["orderflow","footprint","volume-profile","microstructure"],"parameters":[{"name":"symbol","type":"string","required":true,"description":"Trading pair e.g. BTC"}],"example_request":{"symbol":"BTC"},"example_response":{"levels":[{"delta":360000,"price":67500,"buy_vol":1250000,"sell_vol":890000,"imbalance":"buy_dominant"}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/coinglass-footprint"},{"slug":"funding-rates","name":"Perpetual Funding Rates","category":"market_data","description":"Current and predicted perpetual futures funding rates across all major exchanges via Coinglass with 30-min cache.","returns":"Per-symbol funding rate data with exchange-level breakdowns and predicted next funding.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"1800s","tags":["funding","perpetuals","carry-trade","sentiment"],"parameters":[{"name":"symbol","type":"string","required":false,"description":"Specific symbol (default: all major)"}],"example_request":{"symbol":"BTC"},"example_response":{"BTC":{"current":0.0045,"exchanges":{"Bybit":0.0048,"BloFin":0.0044,"Binance":0.0042},"predicted":0.0038}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/funding-rates"},{"slug":"open-interest","name":"Aggregated Open Interest","category":"market_data","description":"Historical and current aggregated open interest across all major exchanges with 30-min cache.","returns":"Time-series OI data plus current OI breakdown per exchange for requested symbol.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"1800s","tags":["open-interest","derivatives","positioning","leverage"],"parameters":[{"name":"symbol","type":"string","required":true,"description":"Symbol to query e.g. BTC"},{"name":"interval","type":"string","required":false,"description":"Time interval: 1h, 4h, 1d"}],"example_request":{"symbol":"BTC","interval":"4h"},"example_response":{"history":[{"oi":18200000000,"time":1700000000}],"change_1h":1.2,"change_24h":-3.5,"current_oi":18500000000},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/open-interest"},{"slug":"long-short-account-ratio","name":"Long/Short Account Ratio","category":"market_data","description":"Global long vs short account positioning ratio from Coinglass showing retail sentiment with 60-min cache.","returns":"Time-series of long_percent, short_percent, and ratio showing crowd positioning shifts.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"60/min","cache_ttl":"3600s","tags":["sentiment","positioning","retail","long-short","contrarian"],"parameters":[{"name":"symbol","type":"string","required":true}],"example_request":{"symbol":"BTC"},"example_response":{"current":{"ratio":1.096,"long_pct":52.3,"short_pct":47.7},"history":[{"time":1700000000,"long_pct":55.1,"short_pct":44.9}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/long-short-account-ratio"},{"slug":"liquidation-heatmap","name":"Liquidation Heatmap","category":"market_data","description":"Liquidation cluster visualization data showing where leveraged positions would be force-closed at each price level.","returns":"3D matrix: price levels x leverage tiers x liquidation volume. Identifies magnetic price targets.","price_usdc":0.005,"price_per_call":"$0.005 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"20/min","cache_ttl":"1800s","tags":["liquidations","heatmap","leverage","magnetic-levels","risk"],"parameters":[{"name":"symbol","type":"string","required":true},{"name":"range","type":"string","required":false,"description":"Price range: 5%, 10%, 20%"}],"example_request":{"range":"10%","symbol":"BTC"},"example_response":{"price_levels":[67000,67500,68000],"leverage_data":[[{"volume":5000000,"leverage":"10x"},{"volume":12000000,"leverage":"25x"}]]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/liquidation-heatmap"},{"slug":"liquidation-max-pain","name":"Max Pain Liquidation Levels","category":"market_data","description":"Identifies the exact price levels where maximum liquidation cascades would trigger for both longs and shorts.","returns":"Per-symbol: long_max_pain_price, short_max_pain_price, current_price, distance_to_each.","price_usdc":0.003,"price_per_call":"$0.003 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"1800s","tags":["liquidations","max-pain","cascade","risk-levels"],"parameters":[{"name":"symbol","type":"string","required":true}],"example_request":{"symbol":"BTC"},"example_response":{"symbol":"BTC","current_price":67500,"long_max_pain":64200,"short_max_pain":71800,"long_distance_pct":-4.9,"short_distance_pct":6.4},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/liquidation-max-pain"},{"slug":"fear-greed","name":"Crypto Fear & Greed Index","category":"market_data","description":"Crypto market Fear & Greed composite index (0-100) with historical values and trend direction. 30-min cache.","returns":"Current index value (0=extreme fear, 100=extreme greed) plus 7/30/90 day history.","price_usdc":0.0005,"price_per_call":"$0.0005 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"120/min","cache_ttl":"1800s","tags":["sentiment","fear-greed","market-cycle","contrarian"],"parameters":[],"example_request":{},"example_response":{"value":72,"history":[{"date":"2024-01-15","value":72}],"previous_day":68,"previous_week":55,"classification":"Greed"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/fear-greed"},{"slug":"central-signal","name":"Universal Signal Router","category":"signals","description":"Unified signal ingestion endpoint that normalizes symbols from any exchange format (Binance, Bybit, TradingView) to executable format and routes to execution.","returns":"Signal confirmation with execution status, order ID, fill price, and routing metadata.","price_usdc":0.01,"price_per_call":"$0.01 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":true,"rate_limit":"30/min","cache_ttl":"real-time","tags":["signals","execution","routing","tradingview","webhook","automation"],"parameters":[{"name":"symbol","type":"string","required":true,"description":"Any format: BTCUSDT, BTC/USDT, BTC-USDT"},{"name":"side","type":"string","required":true,"description":"buy or sell"},{"name":"size","type":"number","required":true},{"name":"leverage","type":"number","required":false}],"example_request":{"side":"buy","size":0.1,"symbol":"BTCUSDT","leverage":10},"example_response":{"success":true,"order_id":"123456","routed_to":"blofin","normalized_symbol":"BTC-USDT"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/central-signal"},{"slug":"external-signal","name":"External Signal Webhook","category":"signals","description":"Public-facing webhook endpoint for TradingView alerts, custom bots, and third-party signal providers. Normalizes and forwards to execution.","returns":"Proxied execution response: signal received, validated, normalized, and forwarded to trade engine.","price_usdc":0.005,"price_per_call":"$0.005 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":true,"rate_limit":"60/min","cache_ttl":"real-time","tags":["webhook","tradingview","alerts","automation","signals"],"parameters":[{"name":"symbol","type":"string","required":true},{"name":"action","type":"string","required":true,"description":"buy, sell, close"},{"name":"size","type":"number","required":false}],"example_request":{"size":2,"action":"buy","symbol":"ETHUSDT"},"example_response":{"received":true,"forwarded":true,"execution_id":"sig_abc123"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/external-signal"},{"slug":"strategy-data-parser","name":"Strategy Language Parser","category":"strategy","description":"Parses natural language strategy descriptions into structured executable specifications: timeframes, indicators, patterns, risk parameters, and entry/exit rules.","returns":"Structured strategy object: TimeframeReq[], IndicatorReq[], PatternReq[], RiskParams, entry_conditions, exit_conditions — ready for backtesting or live execution.","price_usdc":0.01,"price_per_call":"$0.01 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"20/min","cache_ttl":"real-time","tags":["parser","nlp","strategy","structured-data","automation"],"parameters":[{"name":"description","type":"string","required":true,"description":"Natural language strategy description"}],"example_request":{"description":"Swing trade BTC on 4H: enter long when price bounces off 50 EMA with RSI > 40, take profit at 2R, stop below EMA"},"example_response":{"risk":{"max_risk_pct":1},"exit_rules":{"tp_ratio":2,"sl_reference":"below_ema_50"},"indicators":[{"type":"EMA","period":50},{"type":"RSI","period":14}],"timeframes":["4h"],"entry_rules":[{"condition":"price_bounce_off","reference":"EMA_50"},{"value":40,"condition":"rsi_above"}]},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/strategy-data-parser"},{"slug":"strategy-backtest","name":"AI Strategy Backtester","category":"strategy","description":"Takes a natural language strategy description, generates executable code, and runs it against historical OHLCV data with full TP/SL/trailing stop simulation.","returns":"Complete backtest results: total trades, win rate, net PnL, max drawdown, Sharpe ratio, profit factor, and individual trade log with entry/exit details.","price_usdc":0.05,"price_per_call":"$0.05 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"5/min","cache_ttl":"real-time","tags":["backtest","strategy","simulation","performance","sharpe","drawdown"],"parameters":[{"name":"strategy","type":"string","required":true,"description":"Natural language strategy description"},{"name":"symbol","type":"string","required":true},{"name":"timeframe","type":"string","required":false,"description":"1h, 4h, 1d"},{"name":"days","type":"number","required":false,"description":"History lookback (default: 90)"}],"example_request":{"days":90,"symbol":"BTC-USDT","strategy":"Buy when RSI crosses above 30 from below and MACD histogram turns positive. Sell at RSI > 70 or -2% stop loss.","timeframe":"4h"},"example_response":{"trades":[{"exit":44100,"side":"long","entry":43200,"pnl_pct":2.08,"exit_time":"2024-01-06T12:00:00Z","entry_time":"2024-01-05T08:00:00Z"}],"summary":{"win_rate":0.65,"net_pnl_pct":18.4,"max_drawdown":-4.2,"sharpe_ratio":1.82,"total_trades":23,"profit_factor":2.1}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/strategy-backtest"},{"slug":"data-tools","name":"Technical Analysis Toolbox","category":"strategy","description":"Comprehensive TA computation engine: 25+ indicators (SMA, EMA, RSI, MACD, ATR, Bollinger, Stochastic, ADX, CCI, Ichimoku, VWAP, Volume Profile, Fibonacci, Pivots, etc.) on any OHLCV data.","returns":"Full indicator suite output for all requested tools: computed values, signals, divergences, and crossovers at every data point.","price_usdc":0.005,"price_per_call":"$0.005 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"30/min","cache_ttl":"real-time","tags":["indicators","technical-analysis","computation","rsi","macd","bollinger","ichimoku","fibonacci"],"parameters":[{"name":"symbol","type":"string","required":true},{"name":"timeframe","type":"string","required":true},{"name":"indicators","type":"array","required":true,"description":"List of indicators to compute"},{"name":"candles","type":"array","required":false,"description":"Provide your own OHLCV data instead of fetching"}],"example_request":{"symbol":"ETH-USDT","timeframe":"1h","indicators":["RSI","MACD","BB","ATR","ADX"]},"example_response":{"BB":{"lower":3440,"upper":3520,"width":2.3,"middle":3480},"ADX":{"trend":"moderate","value":28},"ATR":{"pct":1.3,"value":45.2},"RSI":{"value":55.2,"signal":"neutral","divergence":null},"MACD":{"line":12.5,"signal":10.2,"crossover":"bullish","histogram":2.3}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/data-tools"},{"slug":"auto-fetch-market-data","name":"Comprehensive Market Context","category":"strategy","description":"All-in-one market intelligence: OHLCV candles + computed indicators + Coinglass OI + news via Tavily. Everything an agent needs in one call.","returns":"Multi-section response: technical indicators, OHLCV data, market microstructure (OI/funding), and relevant news summaries.","price_usdc":0.008,"price_per_call":"$0.008 USDC","price_model":"per_call","monthly_option":null,"plan":"premium","tier":"premium","requires_credentials":false,"rate_limit":"15/min","cache_ttl":"300s","tags":["comprehensive","market-data","indicators","news","context","all-in-one"],"parameters":[{"name":"symbol","type":"string","required":true},{"name":"timeframe","type":"string","required":false,"description":"default: 1h"}],"example_request":{"symbol":"BTC-USDT","timeframe":"4h"},"example_response":{"news":[{"title":"BTC ETF record inflows","relevance":0.9}],"candles":[{"c":67500,"h":67800,"l":66900,"o":67000,"t":1700000000,"v":1200}],"technical":{"rsi":55,"macd":"bullish","trend":"up"},"microstructure":{"funding":0.004,"oi_change_4h":2.1}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/auto-fetch-market-data"},{"slug":"solana-rpc","name":"Solana Multi-RPC Proxy","category":"web3","description":"Multi-endpoint Solana RPC proxy with automatic failover (Alchemy, public, Ankr) for any JSON-RPC method. Reliable Solana access.","returns":"Standard Solana JSON-RPC response for any method: getBalance, getTokenAccounts, getTransaction, etc.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"120/min","cache_ttl":"real-time","tags":["solana","rpc","blockchain","web3","defi"],"parameters":[{"name":"method","type":"string","required":true,"description":"Solana RPC method"},{"name":"params","type":"array","required":true}],"example_request":{"method":"getBalance","params":["DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy"]},"example_response":{"id":1,"result":{"value":1500000000},"jsonrpc":"2.0"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/solana-rpc"},{"slug":"wallet-browser-proxy","name":"Multi-Chain EVM RPC Gateway","category":"web3","description":"Multi-chain EVM RPC forwarder supporting Ethereum, Base, Arbitrum, Optimism, Polygon, and BSC. One endpoint, six chains.","returns":"Standard EVM JSON-RPC response for any method on any supported chain.","price_usdc":0.001,"price_per_call":"$0.001 USDC","price_model":"per_call","monthly_option":null,"plan":"standard","tier":"standard","requires_credentials":false,"rate_limit":"120/min","cache_ttl":"real-time","tags":["evm","ethereum","base","arbitrum","polygon","rpc","multi-chain"],"parameters":[{"name":"chain","type":"string","required":true,"description":"ethereum, base, arbitrum, optimism, polygon, bsc"},{"name":"method","type":"string","required":true},{"name":"params","type":"array","required":true}],"example_request":{"chain":"base","method":"eth_getBalance","params":["0xabc...","latest"]},"example_response":{"id":1,"result":"0x1234567890","jsonrpc":"2.0"},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/wallet-browser-proxy"},{"slug":"agent-strategy","name":"Agent Strategy Console","category":"strategy","description":"Full agent console (Tasks→Connect / Deploy via LLM): mint/link keys, connect BloFin, create/backtest/update, deploy STOPPED (no money moved), paper execute (force_paper), and full account actions (portfolio/positions/orders/place_order with confirm_live). Prefer paper if refusing live money. Linked keys FREE. Agents must follow guide + x402-docs hard_rules.","returns":"JSON: {ok, guide|created|deployed|stopped|money_moved|backtest|strategies|strategy|logs|trades|api_key}","price_usdc":0.002,"price_per_call":"$0.002 USDC","price_model":"per_call","monthly_option":null,"plan":"free","tier":"free","requires_credentials":true,"rate_limit":"60/min","cache_ttl":"real-time","tags":["agent","strategy","blofin","backtest","deploy","paper","execute","llm","claude","x402"],"parameters":[{"name":"action","type":"string","required":true,"description":"guide|whoami|mint_key|link_account|connect_strategy|connect_blofin|balance|portfolio|positions|orders|place_order|close_position|cancel_order|strategies|get_strategy|create_strategy|update_strategy|deploy|pause|execute|run_once|backtest|get_backtest|results|logs"}],"example_request":{"action":"guide"},"example_response":{"ok":true,"guide":{"hard_rules":["deploy ALWAYS STOPPED","prefer paper / force_paper","full actions open"],"actions":["guide","create_strategy","deploy","execute","portfolio","place_order"]}},"call_url":"POST https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/x402-gateway/agent-strategy"}],"total_endpoints":32,"categories":["ai","execution","market_data","signals","strategy","web3"],"x402":{"version":2,"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_symbol":"USDC","pay_to":"0x4562679A63C7Fc3569cF505D9a1Ac9dB06fADb3d","facilitator":"https://api.cdp.coinbase.com/platform/v2/x402","how_to_pay":"Call any endpoint with an `X-PAYMENT` header (base64 x402 PaymentPayload). A 402 without it returns the PaymentRequirements in `accepts`.","well_known":"https://rtcelwjnrbmfmrywacky.supabase.co/functions/v1/well-known-x402","discovery":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources"}}