Polymarket

exchange.IO("GetCategories")

Polymarket 专属。获取托管者内置的市场分类列表。

语法

python
categories = exchange.IO("GetCategories")

参数

无。

返回值

  • List[str]:内置分类列表,不请求网络:
python
['politics', 'sports', 'crypto', 'esports', 'iran', 'finance', 'geopolitics',
 'tech', 'culture', 'economy', 'weather', 'mentions', 'elections']

示例

python
for cat in exchange.IO("GetCategories"):
    Log(cat)

注意事项

列表是固定的,Polymarket 网站新增的分类不会自动出现在这里,但仍可直接用 SetCategory 设置(只要 Gamma 中存在该 tag)。

相关方法