還沒有帳號?點擊這裡註冊 Polymarket 並完成入金,才能用錢包私鑰為訂單籤名、實際成交。
端點
請求示例
響應示例
常見標籤
- Politics - 政治
- Crypto - 加密貨幣
- Sports - 體育
- Pop Culture - 流行文化
- Business - 商業
- Science - 科學
- Stocks - 股票
獲取市場標籤和分類
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": "加密貨幣市場"
}
]
tag = "politics"
response = requests.get(
'https://gamma-api.polymarket.com/markets',
params={'tag': tag}
)
markets = response.json()