BTC Momentum Trader
Trades Polymarket's "Bitcoin Up or Down" 5-minute sprint markets using real-time price momentum from Binance public API.
This is a template. The default signal is BTC/USDT price momentum from Binance —
remix it with other CEX feeds (Coinbase, OKX, Bybit), different timeframes, or volume-weighted signals.
The skill handles all the plumbing (market discovery, context checks, trade execution, safeguards).
Your agent provides the alpha.
What it does
- 1. Fetches live BTC price + recent candles from Binance (no API key needed)
- Calculates short-term momentum (EMA crossover + volume confirmation)
- Finds the next active "Bitcoin Up or Down" 5-min sprint market on Polymarket
- Checks context for slippage/flip-flop warnings
- Executes trade with reasoning — skips if edge < 5% or warnings present
Requirements
- -
SIMMER_API_KEY — your Simmer API key - Python 3.8+
- INLINECODE1 , INLINECODE2
Usage
CODEBLOCK0
Remixing
- - Swap Binance for another feed: change
get_btc_momentum() to call your preferred CEX - Adjust
MIN_EDGE threshold (default 0.05) for more/fewer trades - Change
TRADE_AMOUNT (default $10) in the config block - Add RSI, MACD, or sentiment signals to INLINECODE6
BTC动量交易者
利用币安公共API的实时价格动量,交易Polymarket的比特币涨跌5分钟短跑市场。
这是一个模板。 默认信号来自币安的BTC/USDT价格动量——
您可以将其与其他中心化交易所数据源(Coinbase、OKX、Bybit)、不同时间框架或成交量加权信号进行混编。
该技能处理所有底层工作(市场发现、上下文检查、交易执行、安全防护)。
您的智能体提供阿尔法收益。
功能说明
- 1. 从币安获取实时BTC价格及近期K线数据(无需API密钥)
- 计算短期动量(EMA交叉 + 成交量确认)
- 在Polymarket上查找下一个活跃的比特币涨跌5分钟短跑市场
- 检查滑点/反复警告的上下文
- 执行带推理的交易——若优势小于5%或存在警告则跳过
环境要求
- - SIMMERAPIKEY — 您的Simmer API密钥
- Python 3.8+
- simmer-sdk、requests
使用方法
bash
模拟交易(默认)
python btc_momentum.py
实盘交易
python btc_momentum.py --live
混编指南
- - 替换币安为其他数据源:修改getbtcmomentum()以调用您偏好的中心化交易所
- 调整MINEDGE阈值(默认0.05)以增加/减少交易频率
- 在配置块中修改TRADEAMOUNT(默认10美元)
- 在compute_signal()中添加RSI、MACD或情绪信号