Polymarket

exchange.IO("GetCategory")

Polymarket 专属。查询 exchange.GetMarkets() 当前使用的市场分类。

语法

python
category = exchange.IO("GetCategory")

参数

无。

返回值

  • str:当前分类(小写)。从未调用 SetCategory 时为空字符串 "",此时 GetMarkets() 按 crypto 处理

示例

python
category = exchange.IO("GetCategory") or "crypto"
Log("当前分类:", category)

相关方法