Documentation Index
Fetch the complete documentation index at: https://polymarketcn.com/llms.txt
Use this file to discover all available pages before exploring further.
法律合規提醒:在使用 Polymarket 服務或 API 前,請確認您所在地區的法律規定。Polymarket 目前不支援比利時、法國、新加坡、泰國、中國大陸等地區,政策可能隨時變化。
標籤端點返回用於分類市場的所有標籤。
GET https://gamma-api.polymarket.com/tags
請求示例
import requests
response = requests.get('https://gamma-api.polymarket.com/tags')
tags = response.json()
for tag in tags:
print(f"標籤: {tag['label']}")
print(f"市場數: {tag['market_count']}")
響應示例
[
{
"slug": "politics",
"label": "Politics",
"market_count": 500,
"description": "政治相關市場"
},
{
"slug": "crypto",
"label": "Crypto",
"market_count": 200,
"description": "加密貨幣市場"
}
]
常見標籤
- Politics - 政治
- Crypto - 加密貨幣
- Sports - 體育
- Pop Culture - 流行文化
- Business - 商業
- Science - 科學
- Stocks - 股票
按標籤過濾市場
tag = "politics"
response = requests.get(
'https://gamma-api.polymarket.com/markets',
params={'tag': tag}
)
markets = response.json()