用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/shreed27/DAIN --skill predictfun命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | predictfun |
| description | Predict.fun prediction market trading (BNB Chain) |
| emoji | 🎯 |
| commands | ["/pf"] |
| gates | {"envs":["PREDICTFUN_API_KEY"]} |
Full integration with Predict.fun, a BNB Chain prediction market with binary and categorical outcomes.
# Set credentials
export PREDICTFUN_API_KEY="your-api-key"
export PREDICTFUN_PRIVATE_KEY="0x..."
# Search markets
/pf markets crypto
# Check balance
/pf balance
# Place order
/pf buy <marketId> YES 0.55 100
| Command | Description |
|---|---|
/pf markets [query] | Search markets |
/pf market <id> | Get market details |
/pf book <marketId> | Show orderbook |
| Command | Description |
|---|---|
/pf buy <marketId> <outcome> <price> <size> | Place buy order |
/pf sell <marketId> <outcome> <price> <size> | Place sell order |
/pf cancel <orderId> | Cancel order |
/pf cancelall | Cancel all orders |
/pf orders | List open orders |
Examples:
/pf buy market-123 YES 0.55 100 # Buy YES at 55c, 100 shares
/pf sell market-123 NO 0.40 50 # Sell NO at 40c, 50 shares
/pf cancel order-abc # Cancel specific order
| Command | Description |
|---|---|
/pf balance | Check USDT balance |
/pf positions | View open positions |
/pf redeem <conditionId> | Redeem settled positions |
/pf merge <conditionId> <amount> | Merge outcome tokens |
# Required for market data
export PREDICTFUN_API_KEY="your-api-key"
# Required for trading
export PREDICTFUN_PRIVATE_KEY="0x..."
Or in ~/.clodds/clodds.json:
{
"trading": {
"predictfun": {
"apiKey": "${PREDICTFUN_API_KEY}",
"privateKey": "${PREDICTFUN_PRIVATE_KEY}"
}
}
}
indexSet = 1 for YES, indexSet = 2 for NO