Supply Chain & Logistics Trader
This is a template.
The default signal is keyword-based market discovery (shipping, port, logistics, commodity, supply chain) — remix it with freight index APIs (Baltic Dry Index), satellite AIS vessel tracking data, or real-time port authority feeds.
The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Strategy Overview
Supply chain prediction markets are among the most underserved categories on Polymarket. This skill identifies and trades markets related to:
- - Port congestion — Rotterdam, Suez Canal, LA/Long Beach delays
- Commodity prices — Brent crude, steel, lithium thresholds
- Demand spikes — GPU/chip shortages, EV battery supply
- Company logistics — Tesla delivery delays, Maersk shipping times, Amazon Prime SLAs
Research shows prediction markets can reduce supply chain forecasting errors by 20–50% vs traditional methods (CFTC data). This makes these markets both tradable AND informative.
Signal Logic
Default Signal: Conviction-Based Sizing with Disruption Bias
- 1. Discover active supply chain markets on Polymarket
- Compute base conviction from distance to threshold (0% at boundary → 100% at p=0/p=1)
- Apply
disruption_bias() — combines seasonal shipping cycles with commodity predictability - Size =
max(MIN_TRADE, conviction × bias × MAX_POSITION) — capped at MAXPOSITION - Skip markets with spread > MAXSPREAD or fewer than MIN_DAYS to resolution
Disruption Bias (built-in, no API required)
INLINECODE2 multiplies conviction using two independent factors simultaneously:
Factor 1 — Seasonal Shipping Cycle
Container shipping has a well-documented Q4 crunch (Oct–Dec) driven by pre-holiday inventory builds. Congestion and delay markets are structurally more likely to resolve YES in peak season.
| Period | Multiplier | Why |
|---|
| Q4: Oct–Dec | 1.25x | Peak season — pre-holiday crunch, port congestion likely |
| Q1: Jan–Mar |
0.85x | Off-season — lower disruption probability |
| Apr–Sep |
1.05x | Mild mid-year activity |
Only applied when the question contains shipping/port/freight/cargo keywords.
Factor 2 — Commodity Predictability
| Commodity type | Multiplier | Why |
|---|
| Crude oil / energy / LNG | 1.20x | Most liquid commodity — highly modeled, information-rich |
| Semiconductors / chips / GPU |
1.15x | Documented cycles, policy-driven — trackable |
| Lithium / cobalt / EV battery |
1.15x | China-concentrated supply — export data publicly trackable |
| Chokepoints (Suez, Red Sea, Panama) |
1.10x | Geopolitical risk well-documented and persistent |
| Agricultural / grain / harvest |
0.85x | Weather-dependent, high variance — hard to model |
Combined multiplier capped at 1.40x. A Q4 container shipping market mentioning Suez would score 1.25 × 1.10 = 1.375x.
Remix Ideas
- - Baltic Dry Index: BDI weekly change as direct conviction input — rising BDI = lean into shipping disruption YES
- AIS vessel tracking (MarineTraffic): Real vessel queue counts at LA/Long Beach as direct oracle for port congestion markets
- USDA crop reports: Trade agricultural supply markets in the 48h window before/after report release
- Port authority RSS feeds: Rotterdam, Singapore, Shanghai real-time congestion data as entry trigger
Market Categories Tracked
CODEBLOCK0
Risk Parameters
| Parameter | Default | Notes |
|---|
| Max position size | $25 USDC | Per market |
| Min market volume |
$5,000 | Liquidity filter |
| Max bid-ask spread | 10% | Slippage guard |
| Min days to resolution | 7 | Avoid last-minute noise |
| Max open positions | 5 | Concentration limit |
Installation & Setup
CODEBLOCK1
Requires: SIMMER_API_KEY environment variable.
Cron Schedule
Runs every 15 minutes (*/15 * * * *). Markets are slow-moving enough that high-frequency execution is unnecessary.
Safety & Execution Mode
The skill defaults to paper trading (venue="sim"). Real trades only execute when --live is passed explicitly.
| Scenario | Mode | Financial risk |
|---|
| INLINECODE7 | Paper (sim) | None |
| Cron / automaton |
Paper (sim) | None |
|
python trader.py --live | Live (polymarket) | Real USDC |
The automaton cron is set to null — it does not run on a schedule until you configure it in the Simmer UI. autostart: false means it won't start automatically on install.
Required Credentials
| Variable | Required | Notes |
|---|
| INLINECODE11 | Yes | Trading authority — keep this credential private. Do not place a live-capable key in any environment where automated code could call --live. |
Tunables (Risk Parameters)
All risk parameters are declared in clawhub.json as tunables and adjustable from the Simmer UI without code changes. They use SIMMER_-prefixed env vars so apply_skill_config() can load them securely.
| Variable | Default | Purpose |
|---|
| INLINECODE17 | INLINECODE18 | Max USDC per trade (reached at 100% conviction) |
| INLINECODE19 |
5000 | Min market volume filter (USD) |
|
SIMMER_MAX_SPREAD |
0.10 | Max bid-ask spread (0.10 = 10%) |
|
SIMMER_MIN_DAYS |
7 | Min days until market resolves |
|
SIMMER_MAX_POSITIONS |
5 | 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
INLINECODE33 is published on PyPI by Simmer Markets.
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
- Publisher: hello@simmer.markets
Review the source before providing live credentials if you require full auditability.
供应链与物流交易员
这是一个模板。
默认信号是基于关键词的市场发现(航运、港口、物流、大宗商品、供应链)——可将其与运费指数API(波罗的海干散货指数)、卫星AIS船舶跟踪数据或实时港务局信息流进行混合。
该技能处理所有底层工作(市场发现、交易执行、风险防护)。您的智能体提供阿尔法收益。
策略概述
供应链预测市场是Polymarket上最被忽视的类别之一。该技能识别并交易与以下相关的市场:
- - 港口拥堵 — 鹿特丹、苏伊士运河、洛杉矶/长滩延误
- 大宗商品价格 — 布伦特原油、钢铁、锂价阈值
- 需求激增 — GPU/芯片短缺、电动汽车电池供应
- 公司物流 — 特斯拉交付延迟、马士基航运时间、亚马逊Prime服务等级协议
研究表明,与传统方法相比,预测市场可将供应链预测误差降低20-50%(CFTC数据)。这使得这些市场既具有可交易性又具有信息价值。
信号逻辑
默认信号:基于信念的仓位配置与中断偏差
- 1. 发现Polymarket上的活跃供应链市场
- 根据与阈值的距离计算基础信念(边界处0% → p=0/p=1处100%)
- 应用disruption_bias() — 结合季节性航运周期与大宗商品可预测性
- 仓位 = max(最小交易量, 信念 × 偏差 × 最大持仓) — 上限为最大持仓
- 跳过价差大于最大价差或距离结算少于最小天数的市场
中断偏差(内置,无需API)
disruption_bias() 使用两个独立因子同时乘以信念:
因子1 — 季节性航运周期
集装箱航运存在明确的Q4旺季(10-12月),由节前库存备货驱动。拥堵和延误市场在旺季结构上更可能结算为是。
| 时期 | 乘数 | 原因 |
|---|
| Q4:10-12月 | 1.25倍 | 旺季 — 节前紧张,港口拥堵可能性高 |
| Q1:1-3月 |
0.85倍 | 淡季 — 中断概率较低 |
| 4-9月 |
1.05倍 | 年中温和活动 |
仅当问题包含航运/港口/运费/货物关键词时应用。
因子2 — 大宗商品可预测性
| 大宗商品类型 | 乘数 | 原因 |
|---|
| 原油/能源/液化天然气 | 1.20倍 | 流动性最强的大宗商品 — 高度建模,信息丰富 |
| 半导体/芯片/GPU |
1.15倍 | 有记录的周期,政策驱动 — 可追踪 |
| 锂/钴/电动汽车电池 |
1.15倍 | 中国集中供应 — 出口数据公开可追踪 |
| 咽喉要道(苏伊士、红海、巴拿马) |
1.10倍 | 地缘政治风险有充分记录且持续存在 |
| 农产品/谷物/收成 |
0.85倍 | 依赖天气,高方差 — 难以建模 |
综合乘数上限为1.40倍。一个Q4提及苏伊士的集装箱航运市场将得分为1.25 × 1.10 = 1.375倍。
混合思路
- - 波罗的海干散货指数:BDI周变化作为直接信念输入 — BDI上升 = 倾向航运中断是
- AIS船舶跟踪(MarineTraffic):洛杉矶/长滩实时船舶排队数量作为港口拥堵市场的直接预言机
- 美国农业部作物报告:在报告发布前后48小时内交易农产品供应市场
- 港务局RSS信息流:鹿特丹、新加坡、上海实时拥堵数据作为入场触发
跟踪的市场类别
python
关键词 = [
航运, 港口, 集装箱, 供应链, 物流,
大宗商品, 原油, 布伦特, 天然气, 液化天然气,
钢铁价格, 锂, 钴, 关键矿产,
半导体, 芯片短缺, 台积电, GPU,
交付延迟, 马士基, 鹿特丹, 苏伊士, 巴拿马运河,
红海, 运费, 波罗的海干散货, 电动汽车电池,
]
风险参数
| 参数 | 默认值 | 说明 |
|---|
| 最大持仓规模 | 25 USDC | 每个市场 |
| 最小市场交易量 |
5,000美元 | 流动性过滤器 |
| 最大买卖价差 | 10% | 滑点保护 |
| 最小结算天数 | 7天 | 避免最后一刻噪音 |
| 最大持仓数量 | 5 | 集中度限制 |
安装与设置
bash
clawhub install polymarket-supply-chain-trader
需要:SIMMERAPIKEY 环境变量。
定时任务计划
每15分钟运行一次(/15 *)。市场变化足够缓慢,无需高频执行。
安全与执行模式
该技能默认为模拟交易(venue=sim)。仅当显式传递--live时才执行真实交易。
| 场景 | 模式 | 财务风险 |
|---|
| python trader.py | 模拟 | 无 |
| 定时任务/自动化 |
模拟 | 无 |
| python trader.py --live | 实盘(polymarket) | 真实USDC |
自动化定时任务设置为null — 除非您在Simmer UI中配置,否则不会按计划运行。autostart: false 表示安装后不会自动启动。
所需凭证
| 变量 | 必需 | 说明 |
|---|
| SIMMERAPIKEY | 是 | 交易授权 — 请保密此凭证。请勿将具有实盘能力的密钥放置在任何自动化代码可能调用--live的环境中。 |
可调参数(风险参数)
所有风险参数均在clawhub.json中声明为tunables,可从Simmer UI调整,无需修改代码。它们使用SIMMER前缀的环境变量,以便applyskill_config()安全加载。
| 变量 | 默认值 | 用途 |
|---|
| SIMMERMAXPOSITION | 25 | 每笔交易最大USDC(达到100%信念时) |
| SIMMERMINVOLUME |
5000 | 最小市场交易量过滤器(美元) |
| SIMMER
MAXSPREAD | 0.10 | 最大买卖价差(0.10 = 10%) |
| SIMMER
MINDAYS | 7 | 市场结算前最小天数 |
| SIMMER
MAXPOSITIONS | 5 | 最大并发持仓数量 |
| SIMMER
YESTHRESHOLD | 0.38 | 市场价格≤此值时买入是 |
| SIMMER
NOTHRESHOLD | 0.62 | 市场价格≥此值时卖出否 |
| SIMMER
MINTRADE | 5 | 任何交易的最低金额(无论信念如何,最小USDC) |
依赖项
simmer-sdk 由Simmer Markets在PyPI上发布。
- - PyPI:https://pypi.org/project/simmer-sdk/
- GitHub:https://github.com/SpartanLabsXyz/simmer-sdk
- 发布者:hello@simmer.markets
如果您需要完全可审计性,请在提供实盘凭证前审查源代码。