法律合規提醒:在使用 Polymarket 服務或 API 前,請確認您所在地區的法律規定。Polymarket 目前不支援比利時、法國、新加坡、泰國、中國大陸等地區,政策可能隨時變化。
體育端點返回體育類別市場的分類信息。
GET https://gamma-api.polymarket.com/sports
請求示例
import requests
response = requests.get('https://gamma-api.polymarket.com/sports')
sports = response.json()
for sport in sports:
print(f"體育類別: {sport['label']}")
print(f"市場數量: {sport['market_count']}")
響應示例
[
{
"slug": "nfl",
"label": "NFL",
"market_count": 150,
"description": "美式足球聯盟市場"
},
{
"slug": "nba",
"label": "NBA",
"market_count": 120,
"description": "NBA 籃球市場"
}
]
常見體育分類
- NFL - 美式足球
- NBA - 籃球
- MLB - 棒球
- NHL - 冰球
- Soccer - 足球
- MMA - 綜合格鬥
- Tennis - 網球
- Golf - 高爾夫