diff --git "a/skills/agentfx/skill.json\342\201\240" "b/skills/agentfx/skill.json\342\201\240" new file mode 100644 index 0000000..600253e --- /dev/null +++ "b/skills/agentfx/skill.json\342\201\240" @@ -0,0 +1,74 @@ +{ + "id": "agentfx-trading-skill", + "name": "AgentFX Trading Skill", + "version": "2.6.0", + "description": "Enables autonomous market data tracking, automated quote generation, and execution for pump.fun tokens on Solana.", + "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 market metrics for a specific pump.fun token mint address.", + "path": "/market/data", + "method": "GET", + "parameters": { + "mint": { + "type": "string", + "required": true, + "description": "The Solana mint address of the token." + } + } + }, + { + "name": "create_bot_quote", + "description": "Build an unsigned transaction payload for buying or selling a token.", + "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 the automated trading loop with configured strategy thresholds.", + "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": "Halts the active trading loop execution immediately.", + "path": "/bot/stop", + "method": "POST" + } + ], + "streams": { + "websocket_url": "wss://pumpportal.fun/api/data", + "subscriptions": [ + "subscribeNewToken", + "subscribeTokenTrade", + "subscribeAccountTrade" + ] + } +} diff --git "a/skills/agentfx/skills/agentfx/SKILL.md\342\201\240" "b/skills/agentfx/skills/agentfx/SKILL.md\342\201\240" new file mode 100644 index 0000000..adeefb6 --- /dev/null +++ "b/skills/agentfx/skills/agentfx/SKILL.md\342\201\240" @@ -0,0 +1,28 @@ +# AgentFX Trading Skill Documentation + +This skill enables autonomous ClawPump agents to interact with the AgentFX API (v2.6) for market data retrieval, automated transaction building, and pump.fun token trading execution over the Solana network. + +## Protocol Information +- **Base URL:** `https://agentfx.fun/api/v1` +- **Protocol:** OpenAPI 3.1 +- **Version:** v2.6 +- **Last Updated:** 2025-07-01 + +--- + +## 1. Authentication (x402 Flow) +ClawPump agents strictly utilize the **x402 Payment** method for authentication. Other methods (like SIWS) are unsupported. + +### Flow Step-by-Step +1. **Transfer:** Send `0.01 SOL` to the Platform Wallet: `ArQi1jCnvFQsF2sVhGJMwx9tVedDYeGZJDWG9pN12MpX` +2. **Signature:** Extract the base58 transaction signature. +3. **Redeem:** Send a `POST` request to `/x402/redeem` to claim a 90-day Bearer token. + +### Redeem Endpoint +- **Endpoint:** `POST /api/v1/x402/redeem` +- **Request Body (JSON):** +```json +{ + "wallet": "3dUd7P6hNax4u5wp6s2rntTaKQDdnn2o6dG5svH9Vaa5", + "signature": "base58_transaction_signature" +}