用途:跨预测市场平台搜索、发现和浏览已索引市场,支持高级筛选与分类。
主要能力:全文搜索(关键词、精确短语、排除词、platform: 与 category: 过滤);按 volume、relevance、endDate、created、liquidity 排序;浏览分类(politics、crypto、finance、sports、entertainment、science、technology、world、other);发现新市场、热门市场、即将结束市场;查看单个市场详情(问题、描述、分类、平台、成交量、流动性、起止日期、结果);索引更新、统计与健康状态。
使用方式:聊天命令如 /index search "trump"、/index categories、/index trending、/index new --last 24h、/index closing-soon、/index update、/index stats、/index status。TypeScript API 通过 import { createMarketIndex } from 'clodds/market-index' 创建索引,可配置 platforms、autoRefresh、refreshIntervalMs、cachePath,并调用 search、getCategories、getMarketsByCategory、getNewMarkets、getTrendingMarkets、getClosingSoon、update、getStats、getStatus、getMarket 等方法。
适用场景:需要跨平台聚合预测市场信息、按分类或成交量筛选、跟踪新上线或即将结束市场时使用。
限制:资料未提供收费、价格、平台覆盖范围、数据延迟或准确性等具体信息;实际可用性取决于所配置平台与索引刷新情况。