# Prediction Market Details `GET` `https://api.unusualwhales.com/api/predictions/market/{asset_id}` Returns prediction market details for a given asset ID. ## Authentication ``` Authorization: Bearer YOUR_API_KEY ``` ## Path Parameters | Name | Type | Required | Description | |------|------|----------|-------------| | `asset_id` | string | Yes | | ## Response (200) | Field | Type | Description | |-------|------|-------------| | `active` | boolean | | | `asset_id` | string | | | `category` | string | | | `closed` | boolean | | | `contrarian_whale_trades` | array[Prediction Trade] | | | `description` | string | | | `end_date` | string | | | `image` | string | | | `insiders` | array[Prediction Asset Insider] | | | `liquidity` | object | | | `mci` | object | | | `outcome_assets` | array[Prediction Outcome Asset] | | | `outcome_index` | integer | Zero-based index of this outcome within the market. | | `outcomes` | array[string] | | | `question` | string | | | `question_type` | string | | | `smart_trades` | array[Prediction Trade] | | | `tag_info` | array[Prediction Tag Info] | | | `tag_scores` | array[Prediction Asset Tag Score] | | | `tags` | array[string] | | | `tags_score` | string | | | `trades` | array[Prediction Trade] | | | `volume` | string | | | `winning_outcome` | integer | Zero-based index of the winning outcome once the market resolves. | ## Example ### curl ```bash curl -X GET "https://api.unusualwhales.com/api/predictions/market/{asset_id}" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Accept: application/json" ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("api.unusualwhales.com") headers = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"} conn.request("GET", "/api/predictions/market/{asset_id}", headers=headers) response = conn.getresponse() print(response.read().decode("utf-8")) ``` ## Response Example ```json { "data": { "active": true, "asset_id": "78699665722135183571140787397681621204678465342167575193369860798796866652931", "category": "Sports", "closed": false, "contrarian_whale_trades": [ null ] } } ```