Polymarket-Backtest:专为预测市场打造的 Python 量化回测工具箱

2026-04-29 10:032阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

使用:pip install polymarket-backtest
自己在写策略的时候顺便做了个python包,希望能帮助到大家
Most Polymarket tools focus on order execution. This library focuses on research and strategy evaluation:

  • No API key needed for data fetching — Gamma API and CLOB price history are public
  • Zero boilerplate — market discovery, token ID resolution, and DataFrame conversion in one call
  • Real recorded data included — stop waiting to collect enough data to start backtesting
  • Pure Python metrics — no optional C extensions; works in any environment
  • 免鉴权 API 封装:一键调用 Gamma 和 CLOB API,轻松获取实时赔率与历史价格。
  • 内置实战数据集:自带 BTC/ETH 订单簿快照及策略交易日志,安装即刻开始回测。
  • 专业量化指标:内置 Sharpe Ratio、最大回撤、盈亏比等核心指标,针对预测市场特性优化。
  • 纯 Python 实现:零配置成本,完美集成 Pandas/NumPy 生态。
网友解答:
--【壹】--:

明天起床就研究下,最近也在研究polymarket市场量化,很需要,感谢大佬分享

问题描述:

使用:pip install polymarket-backtest
自己在写策略的时候顺便做了个python包,希望能帮助到大家
Most Polymarket tools focus on order execution. This library focuses on research and strategy evaluation:

  • No API key needed for data fetching — Gamma API and CLOB price history are public
  • Zero boilerplate — market discovery, token ID resolution, and DataFrame conversion in one call
  • Real recorded data included — stop waiting to collect enough data to start backtesting
  • Pure Python metrics — no optional C extensions; works in any environment
  • 免鉴权 API 封装:一键调用 Gamma 和 CLOB API,轻松获取实时赔率与历史价格。
  • 内置实战数据集:自带 BTC/ETH 订单簿快照及策略交易日志,安装即刻开始回测。
  • 专业量化指标:内置 Sharpe Ratio、最大回撤、盈亏比等核心指标,针对预测市场特性优化。
  • 纯 Python 实现:零配置成本,完美集成 Pandas/NumPy 生态。
网友解答:
--【壹】--:

明天起床就研究下,最近也在研究polymarket市场量化,很需要,感谢大佬分享