Skip to content

[new-plugin] polymarket-optimizer v1.0.0#393

Open
ZhengTZ-Max wants to merge 2 commits intookx:mainfrom
ZhengTZ-Max:submit/polymarket-optimizer
Open

[new-plugin] polymarket-optimizer v1.0.0#393
ZhengTZ-Max wants to merge 2 commits intookx:mainfrom
ZhengTZ-Max:submit/polymarket-optimizer

Conversation

@ZhengTZ-Max
Copy link
Copy Markdown

Plugin Submission

Plugin name: polymarket-optimizer
Version: 1.0.0
Type: new-plugin

Checklist

  • plugin-store lint passes locally with no errors
  • I have read the Development Guide
  • My plugin does NOT use reserved prefixes (okx-, official-, plugin-store-)
  • LICENSE file is included
  • SKILL.md has YAML frontmatter with name and description

What does this plugin do?

It provides an advanced AI-driven strategy for multi-event correlation analysis, hedging, and arbitrage on Polymarket. It calculates arbitrage spreads using a custom Python calculator (optimizer-calc) and securely executes multi-leg trades via the polymarket-plugin based on configurable risk management rules (like stop-loss and session max exposure).

Which onchainos commands does it use?

The skill primarily interfaces with the polymarket-plugin for market actions, and onchainos for balance checks:

  • onchainos portfolio all-balances
  • polymarket-plugin buy
  • polymarket-plugin sell
  • polymarket-plugin portfolio
  • polymarket-plugin claim

Security Considerations

This is an advanced tier strategy plugin. It executes live financial transactions and interacts with user funds.
Risk mitigations included:

  • Defaults to Dry-Run Mode.
  • Forces configurable Single Trade Limits (default 50 USDC) and Session Limits (default 200 USDC).
  • Enforces a Stop-Loss mechanism (default 15% maximum drawdown).
  • AI is explicitly instructed to require user confirmation showing the exact amounts and markets before executing any live multi-leg trades.
  • No private keys are handled (relies on agentic wallet / dependent plugins), and all API calls (clob.polymarket.com, gamma-api.polymarket.com) are properly declared.

Testing

  • Tested the optimizer-calc binary script locally to ensure it correctly fetches and processes data from the Polymarket Gamma API without errors.
  • Validated the SKILL.md instructions against the required Agentic safety guidelines and verified that the simulated/dry-run flow behaves correctly, strictly enforcing the confirmation and risk limits before suggesting trade execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant