360 Secure SkillHub
360 安全技能中心

Polymarket 5m Trading

该Skill通过Python脚本在Polymarket发现BTC相关高成交量市场,筛选YES价格处于0.40-0.60的候选并按成交量排序,用市价FAK单买入约1美元YES,持有后卖出并暂停,循环至完成10次买入。默认dry-run,实盘需--live与钱包私钥,每次下单附带来源与skill标识。

skybinjf
skybinjf
热度 29.59
最近更新 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