360 Secure SkillHub
360 安全技能中心

Polymarket 5m Trading

核心功能为自动筛选Polymarket上价格在40%-60%区间、高成交量的BTC相关市场,执行购1美元YES份额、持5分钟、卖出、等5分钟的循环,完成10次交易。支持回测(默认)和实盘交易(需钱包私钥),可调整交易金额、持有时长等参数。适合Polymarket高频量化交易测试或自动化交易,输入需API密钥,输出为自动执行的交易操作。

skybinjf
skybinjf
热度 29.61
最近更新 2026-05-11 17:46:49
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add polymarket-5m-trading
Metadata
name
polymarket-5m-trading
description
Find a high-volume BTC-related Polymarket priced between 40% and 60%, buy 1 USD of YES, hold for 5 minutes, sell, wait 5 minutes, and repeat until 10 completed buy cycles.
metadata
{"author":"GitHub Copilot","version":"1.0.0","displayName":"Polymarket 5m Trading","difficulty":"intermediate"}

Polymarket 5m Trading

This is a template. The default signal is structural rather than predictive: select one BTC-related market with relatively high volume and a YES price in the 40%-60% band, then run a fixed intraday cycle of buy, hold, sell, pause, repeat. Remix it by changing the BTC filter, market ranking rule, hold time, side, or sizing model. The skill handles market discovery, signed order creation, order tagging, and loop control.

Strategy

  1. Search Polymarket for BTC-related events
  2. Flatten event results into tradable sub-markets
  3. Keep only candidates whose YES price is between 0.40 and 0.60
  4. Rank candidates by available volume fields and select the highest-volume market
  5. Buy approximately 1 USD of YES using a market-style FAK order
  6. Hold for 5 minutes
  7. Sell the acquired YES shares using a market-style FAK order
  8. Wait another 5 minutes
  9. Repeat until 10 buys have completed

Important Behavior

  • The script defaults to dry-run
  • Real trading requires --live
  • Live trading requires WALLET_PRIVATE_KEY
  • The skill uses source and skillSlug on every live order
  • The skill checks market context before every buy
  • The skill exits the position after the hold period even if context warnings appear
  • If the selected market cannot support an approximately 1 USD entry because its minimum order size is too large, the run stops loudly

Inputs

Required for dry-run:

  • AIONMARKET_API_KEY or AION_API_KEY

Required for live trading:

  • AIONMARKET_API_KEY or AION_API_KEY
  • WALLET_PRIVATE_KEY

Optional:

  • AIONMARKET_BASE_URL
  • BUY_USD
  • HOLD_SECONDS
  • MAX_BUYS
  • SEARCH_LIMIT
  • MARKET_PRICE_BUFFER

Run Examples

Preview the full plan without sending trades:

python run_skill.py

Run the live strategy:

python run_skill.py --live

Shorten the hold window for testing:

python run_skill.py --hold-seconds 10

Remix Ideas

  • Trade NO instead of YES
  • Re-rank candidates using liquidity or recent order flow
  • Re-select a fresh BTC market before each new buy cycle
  • Add stop-loss or max-drawdown exits
  • Replace the fixed 1 USD size with volatility-scaled sizing