Crypto & On-Chain Trader
This is a template.
The default signal is keyword-based market discovery combined with conviction-based sizing and onchain_bias() — three stacked structural edges, no external API required.
The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Strategy Overview
Crypto markets have the most sophisticated on-chain data infrastructure of any asset class — and Polymarket's retail participants almost never use it. This skill exploits three documented structural edges without any API calls:
- 1. Instrument type confidence — ETF flow data is published daily by Farside/CoinGlass before Polymarket retail reprices. Protocol upgrade dates are posted on GitHub weeks ahead. Retail prices these as uncertain when they aren't.
- BTC halving cycle phase — the halving date is mathematically predictable. The post-halving price cycle (consolidation → bull → distribution → bear) is historically documented. BTC price milestone markets get conviction adjusted by current cycle position.
- Asian regulatory session timing — crypto regulatory news from Korea, Japan, and China breaks during Asian business hours. Polymarket is US-dominated — repricing lags 15–30 minutes.
Signal Logic
Default Signal: Conviction-Based Sizing with On-Chain Bias
- 1. Discover active crypto markets on Polymarket
- Compute base conviction from distance to threshold (0% at boundary → 100% at p=0/p=1)
- Apply
onchain_bias() — three stacked layers: instrument confidence × BTC cycle phase × timing - Size =
max(MIN_TRADE, conviction × bias × MAX_POSITION) — capped at MAXPOSITION - Skip markets with spread > MAXSPREAD or fewer than MIN_DAYS to resolution
On-Chain Bias (built-in, no API required)
Layer 1 — Instrument Type Confidence
| Instrument type | Multiplier | Why |
|---|
| Spot ETF inflows (BlackRock, Fidelity) | 1.30x | Daily flow data (Farside/CoinGlass) published before Polymarket reprices — biggest info gap in crypto |
| BTC halving event markets |
1.25x | Halving date is mathematically predictable (~210,000 blocks) — retail misprices near-certain events |
| Protocol upgrade / hard fork dates |
1.20x | Ethereum EIP / Solana upgrade timelines on GitHub and core dev calls — public weeks ahead |
| DeFi TVL / protocol milestones |
1.10x | DeFiLlama tracks TVL in real-time — "will protocol reach $X TVL" markets lag published data |
| BTC price milestones |
1.10x × cycle | Halving cycle multiplier applied on top (see Layer 2) |
| ETH / SOL / general ATH milestones |
1.10x | On-chain data gives partial directional edge |
| Stablecoin / crypto regulation |
1.05x | Regulatory calendar partially predictable |
| NFT / Ordinals milestones |
0.75x | Narrative-driven — no on-chain predictive signal |
| Memecoin / altcoin hype |
0.70x | Pure retail sentiment — zero predictive signal, trade very small |
Layer 2 — BTC Halving Cycle Phase (BTC price markets only)
The Bitcoin halving (every ~210,000 blocks, ~4 years) creates a historically documented price cycle. For BTC price milestone markets, the base type confidence is multiplied by the current cycle phase:
| Phase | Days post-halving | Multiplier | Historical pattern |
|---|
| Early consolidation | 0–180 | ×1.05 | Miners sell, market absorbs supply shock |
| Bull phase |
181–540 |
×1.20 | Historically strongest 12-month returns |
| Distribution | 541–900 |
×1.00 | Price peaks, direction uncertain |
| Bear phase | 901+ |
×0.85 | Fade bullish BTC price targets |
Last halving: April 19, 2024 (block 840,000). Next: ~April 2028. The skill prints btc_cycle_day=N on startup so you always know where you are.
Layer 3 — Asian Session Timing
Crypto regulatory news from South Korea, Japan, and China breaks during Asian business hours. Polymarket is US-dominated:
| Condition | Multiplier |
|---|
| Regulatory/ban/approval question + 01:00–09:00 UTC | 1.15x — US retail asleep, repricing lag |
| Regulatory/ban/approval question + 13:00–21:00 UTC |
0.95x — US prime time, priced within minutes |
Combined and capped at 1.40x. An ETF inflow market in Asian hours → 1.30 × 1.15 = 1.40x cap. A memecoin question at any time → 0.70x — position sized near MIN_TRADE floor.
Keywords Monitored
CODEBLOCK0
Remix Signal Ideas
- - Farside BTC ETF flows: Replace
market.current_probability with daily net flow implied probability — trade the divergence between institutional flow data and Polymarket retail pricing directly - Glassnode free tier: SOPR, NUPL, exchange inflow/outflow — feed into
p to trade on-chain sentiment vs market price - CoinGlass funding rates: Extreme positive funding = leveraged longs = squeeze risk → fade YES on price targets; extreme negative → fade NO
- DeFiLlama API: Real-time TVL for any protocol — compare to market-priced threshold for TVL milestone markets
Safety & Execution Mode
The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.
| Scenario | Mode | Financial risk |
|---|
| INLINECODE8 | Paper (sim) | None |
| Cron / automaton |
Paper (sim) | None |
|
python trader.py --live | Live (polymarket) | Real USDC |
INLINECODE10 and cron: null — nothing runs automatically until you configure it in Simmer UI.
Required Credentials
| Variable | Required | Notes |
|---|
| INLINECODE12 | Yes | Trading authority. Treat as high-value credential. |
Tunables (Risk Parameters)
All declared as tunables in clawhub.json and adjustable from the Simmer UI.
| Variable | Default | Purpose |
|---|
| INLINECODE15 | INLINECODE16 | Max USDC per trade (reached at 100% conviction) |
| INLINECODE17 |
15000 | Min market volume filter (USD) — crypto needs liquidity |
|
SIMMER_MAX_SPREAD |
0.06 | Max bid-ask spread (6%) — tighter than other traders |
|
SIMMER_MIN_DAYS |
3 | Min days until resolution — crypto moves faster |
|
SIMMER_MAX_POSITIONS |
8 | Max concurrent open positions |
|
SIMMER_YES_THRESHOLD |
0.38 | Buy YES if market price ≤ this value |
|
SIMMER_NO_THRESHOLD |
0.62 | Sell NO if market price ≥ this value |
|
SIMMER_MIN_TRADE |
5 | Floor for any trade (min USDC regardless of conviction) |
Dependency
INLINECODE31 by Simmer Markets (SpartanLabsXyz)
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
加密货币与链上交易员
这是一个模板。
默认信号是基于关键词的市场发现,结合信念驱动的仓位规模和onchain_bias()——三层叠加的结构性优势,无需外部API。
该技能处理所有底层工作(市场发现、交易执行、安全防护)。您的智能体提供阿尔法收益。
策略概述
加密货币市场拥有所有资产类别中最复杂的链上数据基础设施——而Polymarket的零售参与者几乎从不使用它。该技能利用三个有据可查的结构性优势,无需任何API调用:
- 1. 工具类型置信度——Farside/CoinGlass每日发布ETF流量数据,早于Polymarket零售重新定价。协议升级日期提前数周发布在GitHub上。零售将这些视为不确定事件,而实际上并非如此。
- 比特币减半周期阶段——减半日期在数学上可预测。减半后的价格周期(盘整→牛市→派发→熊市)有历史记录。BTC价格里程碑市场的信念会根据当前周期位置进行调整。
- 亚洲监管时段时机——来自韩国、日本和中国的加密货币监管新闻在亚洲工作时间发布。Polymarket以美国为主导——重新定价滞后15-30分钟。
信号逻辑
默认信号:基于信念的仓位规模与链上偏差
- 1. 发现Polymarket上的活跃加密货币市场
- 根据与阈值的距离计算基础信念(边界处0%→p=0/p=1处100%)
- 应用onchain_bias()——三层叠加:工具置信度×BTC周期阶段×时机
- 仓位规模 = max(最小交易量, 信念×偏差×最大仓位)——上限为最大仓位
- 跳过价差大于最大价差或距离结算少于最小天数的市场
链上偏差(内置,无需API)
第一层——工具类型置信度
| 工具类型 | 乘数 | 原因 |
|---|
| 现货ETF流入(贝莱德、富达) | 1.30倍 | 每日流量数据(Farside/CoinGlass)在Polymarket重新定价前发布——加密货币中最大的信息差 |
| BTC减半事件市场 |
1.25倍 | 减半日期在数学上可预测(约210,000个区块)——零售对近乎确定的事件错误定价 |
| 协议升级/硬分叉日期 |
1.20倍 | 以太坊EIP/Solana升级时间线在GitHub和核心开发者电话会议上——提前数周公开 |
| DeFi TVL/协议里程碑 |
1.10倍 | DeFiLlama实时追踪TVL——协议能否达到X美元TVL市场滞后于已发布数据 |
| BTC价格里程碑 |
1.10倍×周期 | 减半周期乘数叠加应用(见第二层) |
| ETH/SOL/通用历史高点里程碑 |
1.10倍 | 链上数据提供部分方向性优势 |
| 稳定币/加密货币监管 |
1.05倍 | 监管日历部分可预测 |
| NFT/序数里程碑 |
0.75倍 | 叙事驱动——无链上预测信号 |
| Memecoin/山寨币炒作 |
0.70倍 | 纯零售情绪——零预测信号,交易量极小 |
第二层——BTC减半周期阶段(仅BTC价格市场)
比特币减半(每约210,000个区块,约4年)创造了一个有历史记录的价格周期。对于BTC价格里程碑市场,基础类型置信度乘以当前周期阶段:
| 阶段 | 减半后天数 | 乘数 | 历史模式 |
|---|
| 早期盘整 | 0-180 | ×1.05 | 矿工抛售,市场吸收供应冲击 |
| 牛市阶段 |
181-540 |
×1.20 | 历史上最强的12个月回报 |
| 派发阶段 | 541-900 |
×1.00 | 价格见顶,方向不确定 |
| 熊市阶段 | 901+ |
×0.85 | 淡化看涨的BTC价格目标 |
上次减半:2024年4月19日(区块840,000)。下次:约2028年4月。该技能在启动时打印btccycleday=N,以便您始终知道所处位置。
第三层——亚洲时段时机
来自韩国、日本和中国的加密货币监管新闻在亚洲工作时间发布。Polymarket以美国为主导:
| 条件 | 乘数 |
|---|
| 监管/禁令/批准问题 + 01:00-09:00 UTC | 1.15倍——美国零售处于睡眠状态,重新定价滞后 |
| 监管/禁令/批准问题 + 13:00-21:00 UTC |
0.95倍——美国黄金时段,几分钟内定价 |
合并后上限为1.40倍。亚洲时段的ETF流入市场→1.30×1.15=1.40倍上限。任何时间的memecoin问题→0.70倍——仓位规模接近最小交易量下限。
监控关键词
Bitcoin, BTC, Ethereum, ETH, Solana, SOL, crypto, ETF, halving,
all-time high, ATH, $100k, $200k, stablecoin, USDC, Tether, DeFi,
Uniswap, Aave, Layer 2, Arbitrum, Base, BlackRock, spot ETF, inflows,
hash rate, mempool, TVL, total value locked, EIP, hard fork, upgrade,
Pectra, Dencun, funding rate, open interest, exchange outflow, whale, on-chain
混音信号思路
- - Farside BTC ETF流量:用每日净流量隐含概率替换market.current_probability——直接交易机构流量数据与Polymarket零售定价之间的差异
- Glassnode免费层:SOPR、NUPL、交易所流入/流出——输入p以交易链上情绪与市场价格
- CoinGlass资金费率:极端正资金费率=杠杆多头=挤压风险→淡化YES价格目标;极端负值→淡化NO
- DeFiLlama API:任何协议的实时TVL——与TVL里程碑市场的市场定价阈值进行比较
安全与执行模式
该技能默认为模拟交易(venue=sim)。仅使用--live标志进行真实交易。
| 场景 | 模式 | 财务风险 |
|---|
| python trader.py | 模拟 | 无 |
| Cron/自动化 |
模拟 | 无 |
| python trader.py --live | 真实(Polymarket) | 真实USDC |
autostart: false和cron: null——在Simmer UI中配置之前,不会自动运行任何内容。
所需凭证
| 变量 | 必需 | 说明 |
|---|
| SIMMERAPIKEY | 是 | 交易授权。视为高价值凭证。 |
可调参数(风险参数)
全部在clawhub.json中声明为tunables,可从Simmer UI调整。
| 变量 | 默认值 | 用途 |
|---|
| SIMMERMAXPOSITION | 35 | 每笔交易最大USDC(在100%信念时达到) |
| SIMMERMINVOLUME |
15000 | 最小市场成交量过滤器(USD)——加密货币需要流动性 |
| SIMMER
MAXSPREAD | 0.06 | 最大买卖价差(6%)——比其他交易者更紧 |
| SIMMER
MINDAYS | 3 | 距离结算的最小天数——加密货币波动更快 |
| SIMMER
MAXPOSITIONS | 8 | 最大并发持仓数量 |
| SIMMER
YESTHRESHOLD | 0.38 | 如果市场价格≤此值则买入YES |
| SIMMER
NOTHRESHOLD | 0.62 | 如果市场价格≥此值则卖出NO |
| SIMMER
MINTRADE | 5 | 任何交易的下限(无论信念如何的最小USDC) |
依赖项
simmer-sdk by Simmer Markets (SpartanLabsXyz)
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk