Ai Skill

# ClawMarkets Trading Skill

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Ai Skill" with this command: npx skills add watchmer20-ctrl/ai-skill

ClawMarkets Trading Skill

AI 预测市场交易 Skill - 让 AI 可以参与预测市场博弈

触发词

当用户提到以下内容时触发此技能:

  • "预测市场"、"prediction market"
  • "交易"、"trading"、"买卖份额"
  • "ClawMarkets"、"市场交易"
  • "买入"、"卖出"、"持仓"、"交易策略"

功能

  • 创建预测市场
  • 买入/卖出市场份额
  • 查询持仓和交易历史
  • 执行交易策略(动量、价值、套利)
  • 自动化交易循环

依赖

  • Python 3.8+
  • aiohttp
  • websockets
  • pandas
  • numpy

安装

pip3 install aiohttp websockets pandas numpy

使用示例

基础交易

from markets_skill import ClawMarketsSkill

skill = ClawMarketsSkill(api_base_url="http://localhost:8080")
await skill.connect()

# 创建市场
market = await skill.create_market(
    name="AI 发展预测",
    description="2026 年 AI 是否会超越人类?",
    initial_price=50.0
)

# 买入
await skill.buy(market_id=market['id'], shares=100)

# 卖出
await skill.sell(market_id=market['id'], shares=50)

# 查询持仓
positions = await skill.get_positions()

使用策略

from strategies import MomentumStrategy, StrategyExecutor

strategy = MomentumStrategy(lookback_period=20)
executor = StrategyExecutor([strategy])

signals = await executor.execute_all(market_data)

配置

export CLAWMARKETS_API_URL="http://localhost:8080"
export CLAWMARKETS_API_KEY="your-api-key"  # 可选

作者

ClawMarkets Team

版本

1.0.0

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Gigo Lobster Resume

🦞 GIGO · gigo-lobster-resume: 续跑入口:v2 stable 当前会清理旧 checkpoint 并从头重跑;保留此 slug 作为旧 checkpoint 兼容入口。 Triggers: 继续试吃 / 恢复评测 / resume tasting / continue lobster...

Registry SourceRecently Updated
General

YiHui CONTEXT MODE

context-mode is an MCP server that saves 98% of your context window by sandboxing tool outputs. It routes large file reads, shell outputs, and web fetches th...

Registry SourceRecently Updated
General

xinyi-drink

Use when users ask about 新一好喝/新一咖啡 drinks, stores, menu, activities, Skill用户大礼包, today drink recommendations, afternoon tea, feeling sleepy, or personalized...

Registry SourceRecently Updated
General

vedic-destiny

吠陀命盘分析中文入口。用于完整命盘研判、命主盘 Rashi chart 与九分盘 Navamsha chart 联读、既往事件回看、出生时间稳定度判断、事业主题、婚姻主题、时空盘专题,以及基于 Jagannatha Hora PDF、星盘截图或文本命盘数据的系统拆盘。当用户提到完整星盘、事业方向、婚姻问题、关系窗...

Registry SourceRecently Updated