Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
檢查 Gamma API 服務狀態
GET https://gamma-api.polymarket.com/health
curl https://gamma-api.polymarket.com/health
import requests response = requests.get('https://gamma-api.polymarket.com/health') print(response.json())
const response = await fetch('https://gamma-api.polymarket.com/health'); const data = await response.json(); console.log(data);
{ "status": "ok", "timestamp": "2024-01-15T10:30:00Z" }
status
timestamp
import requests import time def monitor_gamma_health(): while True: try: response = requests.get('https://gamma-api.polymarket.com/health') if response.status_code == 200: print(f"✓ Gamma API 正常 - {response.json()['timestamp']}") else: print(f"✗ Gamma API 異常 - 狀態碼: {response.status_code}") except Exception as e: print(f"✗ 連接失敗: {e}") time.sleep(60) # 每分鐘檢查一次