diff --git a/skills/agentfx/skill.json b/skills/agentfx/skill.json new file mode 100644 index 0000000..bc28c7e --- /dev/null +++ b/skills/agentfx/skill.json @@ -0,0 +1,73 @@ +{ + "id": "agentfx-magicblock-skill", + "name": "AgentFX MagicBlock Trading Skill", + "version": "2.6.0", + "description": "High-performance autonomous trading and telemetry skill designed for execution on low-latency Solana infrastructures.", + "author": "AgentFX Protocol", + "base_url": "https://agentfx.fun/api/v1", + "authentication": { + "type": "x402", + "platform_wallet": "ArQi1jCnvFQsF2sVhGJMwx9tVedDYeGZJDWG9pN12MpX", + "cost_sol": 0.01, + "duration_days": 90 + }, + "actions": [ + { + "name": "get_market_data", + "description": "Fetch real-time state data and metrics for a specific token mint.", + "path": "/market/data", + "method": "GET", + "parameters": { + "mint": { + "type": "string", + "required": true, + "description": "The target token mint address on Solana." + } + } + }, + { + "name": "create_bot_quote", + "description": "Construct an optimal execution transaction payload for token swaps.", + "path": "/bot/quote", + "method": "POST", + "request_body": { + "wallet": { "type": "string", "required": true }, + "side": { "type": "string", "enum": ["buy", "sell"], "required": true }, + "mint": { "type": "string", "required": true }, + "amount": { "type": "string", "required": true } + } + }, + { + "name": "start_bot_loop", + "description": "Initialize a state-monitored autonomous loop with precise strategy boundaries.", + "path": "/bot/start", + "method": "POST", + "request_body": { + "wallet": { "type": "string", "required": true }, + "strategy": { + "type": "object", + "properties": { + "entryThreshold": { "type": "number", "default": 0.05 }, + "exitThreshold": { "type": "number", "default": 0.1 }, + "maxPositionUsd": { "type": "number", "default": 100 }, + "takeProfitPct": { "type": "number", "default": 0.2 }, + "stopLossPct": { "type": "number", "default": 0.1 } + } + } + } + }, + { + "name": "stop_bot_loop", + "description": "Triggers immediate teardown of the active on-chain trading loop.", + "path": "/bot/stop", + "method": "POST" + } + ], + "streams": { + "websocket_url": "wss://pumpportal.fun/api/data", + "subscriptions": [ + "subscribeNewToken", + "subscribeTokenTrade" + ] + } +}