当前位置: 首页 > Skill >

DRADIS PolyMarket Trading Automation

DRADIS PolyMarket Trading Automation

1.4.0 2026.11.17 浏览:487
获取Skill文件查看使用说明
作者:叶禾许可证:
本文目录展开

Skill: DRADIS Tactical Command (v1.4.0)

Full-featured autonomous supervisor for the DRADIS high-frequency prediction market execution engine.

What's new in v1.4.0

  • Per-squadron monitoring & control: list_squadrons, get_squadron, get_squadron_config, patch_squadron_config (matches the CAG → Squadron architecture; the global /config is now the coarse fallback).
  • Config introspection: get_config_schema exposes the field schema so the agent can validate a parameter before patching.
  • Portfolio & position lifecycle: get_portfolio_value, get_pending_positions, get_confirmed_positions, list_assets.

About DRADIS

DRADIS is an open-source, low-latency Rust-based trading engine for Polymarket.
It features a Viper strategy engine, real-time equity curve, dynamic config hot-reloading, and a built-in LLM advisor.

Project repository: https://github.com/mbordash/DRADIS

Publisher Note (Addressing ClawScan Findings)

ClawScan has flagged two medium-risk items (as expected for any live-trading integration):

  • Ability to PATCH live strategy parameters
  • Forwarding of a sensitive DRADIS_API_KEY

These are intentional and documented. The skill never applies config changes without explicit human confirmation. I strongly recommend using a dedicated, least-privilege API key and only running this skill against your own trusted DRADIS instance.

Authentication

DRADIS supports optional API key authentication via the X-API-Key header.

  • Set DRADIS_API_KEY in your OpenClaw configuration.
  • The skill automatically adds the header to every request.
  • Local use works without a key; remote/production use strongly recommends it.

Safety & Usage Guidelines (Critical)

This skill controls a live trading system with real money at risk.
The agent must follow these guardrails at all times:

  • patch_dynamic_config and patch_squadron_config change live strategy parameters without restarting the engine. Never apply any configuration change without first explicitly confirming the exact update with the human user and receiving clear approval. Prefer get_config_schema to validate field names, units, and min/max bounds before proposing a patch.
  • Only call tools when the user’s request directly relates to monitoring or configuration.
  • If the engine returns 401 Unauthorized, tell the user to configure the DRADIS_API_KEY.

Example Natural Language Commands

  • “What’s the current status of DRADIS?”
  • “Show me open positions and session P&L”
  • “What markets is each strategy currently trading?”
  • “List the last 10 trades”
  • “What does the LLM advisor recommend right now?”
  • “Show me the current config”
  • “List my squadrons and their P&L”
  • “Show me the BTC squadron’s config”
  • “What’s my total portfolio value right now?”
  • “Show pending vs confirmed positions for ETH”
  • “Can you increase the adverse block threshold? Show me the current config first and confirm before patching.”

Configuration

  • DRADIS_API_URL: Base URL for the engine API (Default: http://localhost:9000/api)
  • DRADIS_API_KEY: API key for authentication (optional locally, recommended for remote/production)

Tools

1. check_engine_status

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/health
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: Text or JSON

2. get_current_config

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/config
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON object of all configurable fields

3. patch_dynamic_config

  • Method: PATCH
  • Endpoint: {{DRADIS_API_URL}}/config
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Payload Type: application/json
  • Parameters: updates object (e.g. {"gboost_obi_adverse_block": -0.15, "enable_basis": false})
  • Safety Note: Requires explicit user confirmation before executing.

4. check_session_pnl

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/pnl/history
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON array of equity snapshots

5. get_recent_trades

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/trades
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Query Params: asset (optional, e.g. btc), limit (optional, default 100)

6. get_open_positions

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/positions
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Query Param: asset (optional, e.g. btc)
  • Response Format: JSON array of open position records

7. get_strategy_status

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/status
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON object of strategy → market mapping

8. get_llm_recommendations

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/llm/recommendations
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Query Param: limit (optional, default 10)

9. list_squadrons

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/squadrons
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON array of squadron summaries (id, asset/market class, P&L, active raptors/vipers)

10. get_squadron

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/squadrons/{id}
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Path Param: id (squadron identifier, e.g. btc)
  • Response Format: JSON squadron summary, or 404 if unknown

11. get_squadron_config

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/squadrons/{id}/config
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Path Param: id (squadron identifier)
  • Response Format: JSON object of the squadron's DynamicConfig, or 404 if unknown

12. patch_squadron_config

  • Method: PATCH
  • Endpoint: {{DRADIS_API_URL}}/squadrons/{id}/config
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Path Param: id (squadron identifier)
  • Payload Type: application/json
  • Parameters: partial updates object with only the fields to change (e.g. {"time_decay_position_size_usdc": "8.0"})
  • Safety Note: Requires explicit user confirmation before executing. Validate field names/bounds with get_config_schema first.

13. get_config_schema

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/config/schema
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON schema describing every editable config field (group, label, type, unit, min/max, advanced flag). Use before any PATCH to validate the change.

14. get_portfolio_value

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/portfolio
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON object with total portfolio / collateral value

15. get_pending_positions

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/positions/pending
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Query Param: asset (optional, e.g. btc)
  • Response Format: JSON array of positions awaiting on-chain confirmation

16. get_confirmed_positions

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/positions/confirmed
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Query Param: asset (optional, e.g. btc)
  • Response Format: JSON array of confirmed open positions

17. list_assets

  • Method: GET
  • Endpoint: {{DRADIS_API_URL}}/assets
  • Headers: X-API-Key: {{DRADIS_API_KEY}}
  • Response Format: JSON array of asset symbols, e.g. ["btc", "eth", "sol"]

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,031
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,029
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,017
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,011
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,011
Skill 文件
  • SKILL.md
    • Skill: DRADIS Tactical Command (v1.4.0)
    • About DRADIS
    • Publisher Note (Addressing ClawScan Findings)
    • Authentication
    • Safety & Usage Guidelines (Critical)
    • Example Natural Language Commands
    • Configuration
    • Tools
      • 1. check_engine_status
      • 2. get_current_config
      • 3. patch_dynamic_config
      • 4. check_session_pnl
      • 5. get_recent_trades
      • 6. get_open_positions
      • 7. get_strategy_status
      • 8. get_llm_recommendations
      • 9. list_squadrons
      • 10. get_squadron
      • 11. get_squadron_config
      • 12. patch_squadron_config
      • 13. get_config_schema
      • 14. get_portfolio_value
      • 15. get_pending_positions
      • 16. get_confirmed_positions
      • 17. list_assets
  • 项目或源文件

相关 Skill

更多
Simmer Simmer 面向AI代理的预测市场界面。统一API交易Polymarket和Kalshi,具备自托管钱包、安全护栏和智能上下文。
Prediction Market Pro Trader Prediction Market Pro Trader 使用基准率和贝叶斯更新分析Polymarket和Kalshi事件,识别错误定价的合约并推荐带风险控制的价值交易。
Signalradar Signalradar SignalRadar — 监控 Polymarket 预测市场的概率变化,阈值突破时发送警报。用户要求“添加 Polymarket …”时使用。
PolyClaw Pro PolyClaw Pro 在Polymarket上通过拆分+CLOB执行交易。浏览市场,追踪头寸及盈亏,利用LLM发现对冲工具。包含自动化工具:实时投资组合...
Alpha Finder (x402) Alpha Finder (x402) 市场预言机 - 预测市场情报工具,支持Polymarket和Kalshi研究、概率评估、市场情绪分析与套利机会识别。适用于研究预测市场、分析赔率或发现市场低效。费用:0.03 USDC/次(Base网络x402协议)。