Loading...
Loading...
This skill should be used when the user asks to "buy token", "sell token", "swap token", "trade crypto", "check trade status", "query transaction", "scan tokens", "feed", "monitor chain", "query token", "token details", "check token safety", or mentions trading on Solana/ETH/BSC/Base chains via XXYY. Enables on-chain token trading and data queries through the XXYY Open API.
npx skill4agent add jimmy-holiday/xxyy-trade-skill xxyy-tradeXXYY_API_KEYxxyy_ak_xxxxXXYY_API_BASE_URLhttps://www.xxyy.ioAuthorization: Bearer $XXYY_API_KEYPOST ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/swap{
"chain": "sol",
"walletAddress": "<user_wallet>",
"tokenAddress": "<token_contract>",
"isBuy": true,
"amount": 0.1,
"tip": 0.001,
"slippage": 20
}| Param | Required | Type | Valid values | Description |
|---|---|---|---|---|
| YES | string | | Only these 4 values accepted |
| YES | string | SOL: Base58 32-44 chars; EVM: 0x+40hex | Wallet address on XXYY platform, must match chain |
| YES | string | Valid contract address | Token contract address to buy |
| YES | boolean | | Must be true for buy |
| YES | number | > 0 | Amount in native currency (SOL/ETH/BNB) |
| YES | number | SOL: 0.001-0.1 (unit: SOL); EVM: 0.1-100 (unit: Gwei) | Priority fee for all chains. If not provided, falls back to priorityFee |
| NO | number | 0-100 | Slippage tolerance %, default 20 |
| NO | number | 1 or 2 | 1=anti-sandwich (default), 2=fast mode |
| NO | number | >= 0 | Solana chain only. Extra priority fee in addition to tip |
POST ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/swap{
"chain": "sol",
"walletAddress": "<user_wallet>",
"tokenAddress": "<token_contract>",
"isBuy": false,
"amount": 50,
"tip": 0.001
}| Param | Required | Type | Valid values | Description |
|---|---|---|---|---|
| YES | string | | Only these 4 values accepted |
| YES | string | SOL: Base58 32-44 chars; EVM: 0x+40hex | Wallet address on XXYY platform, must match chain |
| YES | string | Valid contract address | Token contract address to sell |
| YES | boolean | | Must be false for sell |
| YES | number | 1-100 | Sell percentage. Example: 50 = sell 50% of holdings |
| YES | number | SOL: 0.001-0.1 (unit: SOL); EVM: 0.1-100 (unit: Gwei) | Priority fee for all chains. If not provided, falls back to priorityFee |
| NO | number | 0-100 | Slippage tolerance %, default 20 |
| NO | number | 1 or 2 | 1=anti-sandwich (default), 2=fast mode |
| NO | number | >= 0 | Solana chain only. Extra priority fee in addition to tip |
tippriorityFeeGET ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/trade?txId=<tx_id>GET ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/pingPOST ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/feed/{type}?chain={chain}| Param | Required | Type | Valid values | Description |
|---|---|---|---|---|
| YES | path string | | NEW = newly launched, ALMOST = almost graduated, COMPLETED = graduated |
| NO | query string | | Only these 2 chains supported. Default |
"min,max""100,"",50"| Param | Type | Description | Example |
|---|---|---|---|
| string[] | DEX platform filter | See DEX Values by Chain below |
| string[] | Quote token filter | See quoteTokens Values by Chain below |
| string[] | Social media link filter | |
| string[] | Token name/symbol keyword match | |
| string[] | Ignore keywords | |
| string | Market cap range (USD) | |
| string | Liquidity range (USD) | |
| string | Trading volume range (USD) | |
| string | Holder count range | |
| string | Creation time range (minutes from now) | |
| string | Trade count range | |
| string | Buy count range | |
| string | Sell count range | |
| string | Dev buy amount range (native token) | |
| string | Dev sell amount range (native token) | |
| string | Dev holding % range | |
| string | Top10 holding % range | |
| string | Insider holding % range | |
| string | Bundle holding % range | |
| string | New wallet holding % range | |
| string | Graduation progress % range (NEW/ALMOST only) | |
| string | Sniper count range | |
| string | Twitter rename count range | |
| string | Watched wallet buy count range | |
| string | KOL buy count range | |
| int | DexScreener paid, | |
| int | At least one social link, | |
| int | Currently live streaming, | |
pumppumpmayhembonkheavenbelievedaosfunlaunchlabmdbcjupstudiomdbcbagstrendsmoonshotnboopmoontimefourfour_agentbnonlyflapsolusdcusd1bnbusdtusdcusd1asteru{
"code": 200,
"msg": "success",
"data": {
"items": [
{
"tokenAddress": "...",
"symbol": "TOKEN",
"name": "Token Name",
"createTime": 1773140232851,
"dexName": "PUMPFUN",
"launchPlatform": { "name": "PUMPFUN", "progress": "12.89", "completed": false },
"holders": 3,
"priceUSD": 0.000003046,
"marketCapUSD": 3046.80,
"devHoldPercent": 12.48,
"hasLink": false,
"snipers": 0,
"quoteToken": "sol"
}
]
},
"success": true
}tokenAddresssymbolnamecreateTimedexNamelaunchPlatformholderspriceUSDmarketCapUSDdevHoldPercenthasLinksnipersvolumetradeCountbuyCountsellCounttopHolderPercentinsiderHpbundleHpGET ${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/query?ca={contract_address}&chain={chain}| Param | Required | Type | Valid values | Description |
|---|---|---|---|---|
| YES | string | Contract address | Token contract address |
| NO | string | | Default |
{
"code": 200,
"msg": "success",
"data": {
"chainId": "bsc",
"tokenAddress": "0x...",
"baseSymbol": "TOKEN",
"tradeInfo": {
"marketCapUsd": 15464629.87,
"price": 0.01546,
"holder": 7596,
"hourTradeNum": 20611,
"hourTradeVolume": 2564705.05
},
"pairInfo": {
"pairAddress": "0x...",
"pair": "TOKEN - WBNB",
"liquidateUsd": 581750.57,
"createTime": 1772182240000
},
"securityInfo": {
"honeyPot": false,
"openSource": true,
"noOwner": true,
"locked": true
},
"taxInfo": { "buy": "0", "sell": "0" },
"linkInfo": { "tg": "", "x": "", "web": "" },
"dev": { "address": "0x...", "pct": 0.0 },
"topHolderPct": 25.14,
"topHolderList": [
{ "address": "0x...", "balance": 98665702.34, "pct": 9.86 }
]
},
"success": true
}chainsolethbscbaseisBuytruefalseamounttipmodelpriorityFeeNEWALMOSTCOMPLETEDsolbscethbasetokenAddresstokenAddresscode == 200success == truecode == 300code == 8060/8061code == 8062casolethbscbasesolsecurityInfo.honeyPot == truetaxInfo.buytaxInfo.sell| Chain | Format | Example pattern |
|---|---|---|
| SOL | Base58, 32-44 characters | |
| ETH / BSC / Base | 0x + 40 hex characters | |
https://solscan.io/tx/{txId}https://etherscan.io/tx/{txId}https://bscscan.com/tx/{txId}https://basescan.org/tx/{txId}| Code | Meaning | Scope |
|---|---|---|
| 200 | Success | Data query APIs (Feed, Token Query) |
| 300 | Server error — inform user to retry later | Data query APIs (Feed, Token Query) |
| 8060 | API Key invalid | All APIs |
| 8061 | API Key disabled | All APIs |
| 8062 | Rate limited | All APIs — data query: retry after 2s; trade: retry after 1s (except swap, see Execution Rules #5) |
# Buy
curl -s -X POST "${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/swap" \
-H "Authorization: Bearer $XXYY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"chain":"sol","walletAddress":"...","tokenAddress":"...","isBuy":true,"amount":0.1,"tip":0.001}'
# Query Trade
curl -s "${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/trade?txId=..." \
-H "Authorization: Bearer $XXYY_API_KEY"
# Feed - Scan newly launched tokens on SOL (with filters)
curl -s -X POST "${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/feed/NEW?chain=sol" \
-H "Authorization: Bearer $XXYY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mc":"10000,500000","holder":"50,","insiderHp":",50"}'
# Token Query
curl -s "${XXYY_API_BASE_URL:-https://www.xxyy.io}/api/trade/open/api/query?ca=TOKEN_ADDRESS&chain=sol" \
-H "Authorization: Bearer $XXYY_API_KEY"