Food & Agriculture Trader
This is a template.
The default signal is keyword-based market discovery combined with conviction-based sizing and harvest_cycle_bias() — remix it with the data sources listed below.
The skill handles all the plumbing (market discovery, trade execution, safeguards). Your agent provides the alpha.
Strategy Overview
Agricultural markets are driven by hard data (USDA reports, satellite crop monitoring) but traded by retail participants who follow headlines. This skill exploits two structural edges without any external API:
- 1. WASDE & crop calendar timing — Information asymmetry between professional futures traders and Polymarket retail peaks around USDA WASDE release months and planting windows. Trading these windows captures the pro vs retail pricing gap before it closes.
- Commodity type confidence — Cocoa and coffee (geographically concentrated supply) are dramatically more front-runnable than drought headlines (already crowded) or famine narratives (too complex to time).
Signal Logic
Default Signal: Conviction-Based Sizing with Harvest Cycle Bias
- 1. Discover active food and agriculture markets on Polymarket
- Compute base conviction from distance to threshold (0% at boundary → 100% at p=0/p=1)
- Apply
harvest_cycle_bias() — combines WASDE calendar timing with commodity type confidence - Size =
max(MIN_TRADE, conviction × bias × MAX_POSITION) — capped at MAXPOSITION - Skip markets with spread > MAXSPREAD or fewer than MIN_DAYS to resolution
Harvest Cycle Bias (built-in, no API required)
Two compounding structural edges:
Factor 1 — Crop Calendar / WASDE Timing
Agricultural markets have their highest information asymmetry at two points: (a) during the Northern hemisphere planting window (Mar–May) when yield uncertainty peaks, and (b) around USDA WASDE high-impact release months when professional traders have better reads than retail.
| Condition | Multiplier |
|---|
| Crop question + WASDE high-impact month (Jun, Aug, Nov, Jan) | 1.20x — pro vs retail divergence peaks |
| Crop question + planting season (Mar–May) |
1.15x — yield uncertainty at maximum |
| Crop question + S. hemisphere harvest (Jan–Apr) |
1.10x — Brazil/Argentina soy/corn window |
| Crop question + off-season |
0.90x — catalysts scarce, edge compresses |
Factor 2 — Commodity Type Confidence
| Commodity type | Multiplier | Why |
|---|
| Cocoa / coffee | 1.25x | ~70% of supply from a few countries — W. Africa/Brazil weather is front-runnable |
| Wheat / corn / soy / grain / WASDE |
1.20x | CME professional futures lead; Polymarket retail lags by days |
| Fertilizer / potash / nitrogen |
1.15x | Upstream inputs move on Russia policy and energy — longer leads than retail prices |
| Alternative protein / lab-grown meat |
1.10x | FDA/USDA FSIS approval milestones are public — regulatory calendar predictable |
| Food inflation / FAO index / CPI food |
1.05x | Data-driven but lagged — moderate edge |
| Drought / wildfire crop damage |
0.85x | Crowded media trade — edge mostly gone by the time a Polymarket question exists |
| Famine / food crisis / food security |
0.75x | Humanitarian narratives — geopolitical complexity makes timing very hard |
Combined and capped at 1.40x. A cocoa market in August (WASDE month) → 1.20 × 1.25 = 1.40x cap — maximum conviction. A drought headline in October (off-season) → 0.90 × 0.85 = 0.77x — trade very small.
Keywords Monitored
CODEBLOCK0
Remix Signal Ideas
- - USDA NASS crop progress: Free weekly API during growing season — monitor crop condition ratings as leading indicator before WASDE reflects them
- FAO Food Price Index: Monthly release — trade divergence between FAO trajectory and Polymarket food inflation question pricing
- CME agricultural futures: Replace
market.current_probability with CME futures-implied probability to trade the pro vs retail gap directly - NOAA ENSO forecasts: 3–6 month lead time on El Niño/La Niña impacts on major crop-growing regions — markets rarely incorporate this correctly
Safety & Execution Mode
The skill defaults to paper trading (venue="sim"). Real trades only with --live flag.
| Scenario | Mode | Financial risk |
|---|
| INLINECODE6 | Paper (sim) | None |
| Cron / automaton |
Paper (sim) | None |
|
python trader.py --live | Live (polymarket) | Real USDC |
INLINECODE8 and cron: null — nothing runs automatically until you configure it in Simmer UI.
Required Credentials
| Variable | Required | Notes |
|---|
| INLINECODE10 | 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 |
|---|
| INLINECODE13 | INLINECODE14 | Max USDC per trade (reached at 100% conviction) |
| INLINECODE15 |
5000 | Min market volume filter (USD) |
|
SIMMER_MAX_SPREAD |
0.10 | Max bid-ask spread (10%) |
|
SIMMER_MIN_DAYS |
7 | Min days until resolution |
|
SIMMER_MAX_POSITIONS |
7 | 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
INLINECODE29 by Simmer Markets (SpartanLabsXyz)
- - PyPI: https://pypi.org/project/simmer-sdk/
- GitHub: https://github.com/SpartanLabsXyz/simmer-sdk
食品与农业交易员
这是一个模板。
默认信号是基于关键词的市场发现,结合基于信念的仓位规模和harvestcyclebias()——请使用下方列出的数据源对其进行重新组合。
该技能处理所有底层工作(市场发现、交易执行、安全防护)。您的智能体提供阿尔法收益。
策略概述
农产品市场由硬数据(美国农业部报告、卫星作物监测)驱动,但交易者却是追逐头条新闻的零售参与者。该技能在不使用任何外部API的情况下,利用两个结构性优势:
- 1. WASDE与作物日历时机 — 专业期货交易者与Polymarket零售用户之间的信息不对称,在美国农业部WASDE报告发布月份和种植窗口期达到顶峰。在这些窗口期进行交易,可以在价差消失前捕捉专业与零售之间的定价差距。
- 商品类型置信度 — 可可和咖啡(供应地理集中)的可提前交易性远高于干旱头条(已拥挤)或饥荒叙事(时机把握过于复杂)。
信号逻辑
默认信号:基于信念的仓位规模与收获周期偏差
- 1. 发现Polymarket上活跃的食品和农产品市场
- 根据与阈值的距离计算基础信念(边界处0% → p=0/p=1时100%)
- 应用harvestcyclebias() — 结合WASDE日历时机与商品类型置信度
- 仓位规模 = max(最小交易量, 信念 × 偏差 × 最大仓位) — 上限为最大仓位
- 跳过价差大于最大价差或距离结算少于最小天数的市场
收获周期偏差(内置,无需API)
两个叠加的结构性优势:
因素1 — 作物日历 / WASDE时机
农产品市场在两个时间点信息不对称程度最高:(a) 北半球种植窗口期(3-5月),此时产量不确定性达到顶峰;(b) 美国农业部WASDE高影响力发布月份前后,专业交易者比零售用户拥有更好的解读能力。
| 条件 | 乘数 |
|---|
| 作物问题 + WASDE高影响力月份(6月、8月、11月、1月) | 1.20倍 — 专业与零售分歧达到顶峰 |
| 作物问题 + 种植季节(3-5月) |
1.15倍 — 产量不确定性最大 |
| 作物问题 + 南半球收获期(1-4月) |
1.10倍 — 巴西/阿根廷大豆/玉米窗口期 |
| 作物问题 + 淡季 |
0.90倍 — 催化剂稀缺,优势压缩 |
因素2 — 商品类型置信度
| 商品类型 | 乘数 | 原因 |
|---|
| 可可 / 咖啡 | 1.25倍 | 约70%的供应来自少数国家——西非/巴西天气可提前交易 |
| 小麦 / 玉米 / 大豆 / 谷物 / WASDE |
1.20倍 | CME专业期货领先;Polymarket零售用户滞后数天 |
| 化肥 / 钾肥 / 氮肥 |
1.15倍 | 上游投入品受俄罗斯政策和能源影响——领先时间比零售价格更长 |
| 替代蛋白 / 实验室培养肉 |
1.10倍 | FDA/USDA FSIS批准里程碑公开——监管日历可预测 |
| 食品通胀 / FAO指数 / CPI食品 |
1.05倍 | 数据驱动但滞后——优势中等 |
| 干旱 / 野火作物损害 |
0.85倍 | 拥挤的媒体交易——到Polymarket问题出现时优势基本消失 |
| 饥荒 / 粮食危机 / 粮食安全 |
0.75倍 | 人道主义叙事——地缘政治复杂性使时机把握非常困难 |
合并后上限为1.40倍。8月(WASDE月份)的可可市场 → 1.20 × 1.25 = 1.40倍上限——最大信念。10月(淡季)的干旱头条 → 0.90 × 0.85 = 0.77倍——交易规模极小。
监控关键词
小麦, 玉米, 大豆, 咖啡, 可可, 糖, 食品价格, 作物产量,
干旱, 收获, 美国农业部, FAO, 食品通胀, 饥荒, 供应冲击,
替代蛋白, Beyond Meat, Impossible Foods, 实验室培养,
垂直农业, 化肥, 钾肥, 氮肥, 厄尔尼诺作物,
拉尼娜收获, WASDE, 大宗商品, 大米, 棕榈油, 牲畜,
牛, 粮食安全, 谷物, 油籽
重新组合信号思路
- - 美国农业部NASS作物进展:生长季节免费每周API——在WASDE反映之前,将作物状况评级作为领先指标进行监控
- FAO食品价格指数:月度发布——交易FAO轨迹与Polymarket食品通胀问题定价之间的分歧
- CME农产品期货:用CME期货隐含概率替换market.current_probability,直接交易专业与零售之间的差距
- NOAA ENSO预报:对厄尔尼诺/拉尼娜影响主要作物种植区有3-6个月的领先时间——市场很少正确纳入这一点
安全与执行模式
该技能默认为模拟交易(venue=sim)。仅使用--live标志进行真实交易。
| 场景 | 模式 | 财务风险 |
|---|
| python trader.py | 模拟 | 无 |
| 定时任务 / 自动化 |
模拟 | 无 |
| python trader.py --live | 实盘(Polymarket) | 真实USDC |
autostart: false 和 cron: null — 在Simmer UI中配置之前,不会自动运行任何内容。
所需凭证
| 变量 | 必需 | 说明 |
|---|
| SIMMERAPIKEY | 是 | 交易授权。视为高价值凭证。 |
可调参数(风险参数)
均在clawhub.json中声明为tunables,可从Simmer UI调整。
| 变量 | 默认值 | 用途 |
|---|
| SIMMERMAXPOSITION | 30 | 每笔交易最大USDC(100%信念时达到) |
| SIMMERMINVOLUME |
5000 | 最小市场交易量过滤(美元) |
| SIMMER
MAXSPREAD | 0.10 | 最大买卖价差(10%) |
| SIMMER
MINDAYS | 7 | 距结算最小天数 |
| SIMMER
MAXPOSITIONS | 7 | 最大同时持仓数量 |
| 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