Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions skills/agentfx/skill.json⁠
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
28 changes: 28 additions & 0 deletions skills/agentfx/skills/agentfx/SKILL.md⁠
Original file line number Diff line number Diff line change
@@ -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"
}