REST API
按 Slug 查询事件
按 Slug 查询事件
GET
/
api
/
v4
/
prediction
/
events
/
slug
/
{slug}
按 Slug 查询事件
curl --request GET \
--url https://api.dexbuilder.com/api/v4/prediction/events/slug/{slug}import requests
url = "https://api.dexbuilder.com/api/v4/prediction/events/slug/{slug}"
response = requests.get(url)
print(response.text){
"active": true,
"category": "<string>",
"closed": true,
"closed_time": 123,
"description": {},
"end_date": 123,
"event_id": "<string>",
"icon": "<string>",
"image": "<string>",
"markets": [
{
"best_ask": "<string>",
"best_bid": "<string>",
"category": "<string>",
"closed": true,
"condition_id": "<string>",
"end_date": 123,
"event_id": "<string>",
"last_trade_price": "<string>",
"limit_buy_min_shares": "<string>",
"market_id": "<string>",
"outcomes": [
{
"outcome": {},
"token_id": "<string>"
}
],
"question": {},
"slug": "<string>",
"start_date": 123,
"status": "<string>",
"tags": [
{
"label": {},
"slug": "<string>",
"tag_id": "<string>"
}
],
"uma_end_date": "<string>",
"uma_end_date_iso": "<string>",
"uma_resolution_status": "<string>",
"uma_resolution_statuses": "<string>",
"volume": "<string>",
"volume_24hr": "<string>"
}
],
"markets_has_more": true,
"resolution_source": "<string>",
"slug": "<string>",
"start_date": 123,
"start_time": 123,
"tags": [
{
"label": {},
"slug": "<string>",
"tag_id": "<string>"
}
],
"title": {},
"volume": "<string>"
}{
"label": "INVALID_ARGUMENT",
"message": "invalid request"
}{
"label": "INVALID_ARGUMENT",
"message": "invalid request"
}按 Slug 查询事件。
该接口为公开接口,不需要认证。
路径参数
响应
请求成功
响应对象。
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
按 Slug 查询事件
curl --request GET \
--url https://api.dexbuilder.com/api/v4/prediction/events/slug/{slug}import requests
url = "https://api.dexbuilder.com/api/v4/prediction/events/slug/{slug}"
response = requests.get(url)
print(response.text){
"active": true,
"category": "<string>",
"closed": true,
"closed_time": 123,
"description": {},
"end_date": 123,
"event_id": "<string>",
"icon": "<string>",
"image": "<string>",
"markets": [
{
"best_ask": "<string>",
"best_bid": "<string>",
"category": "<string>",
"closed": true,
"condition_id": "<string>",
"end_date": 123,
"event_id": "<string>",
"last_trade_price": "<string>",
"limit_buy_min_shares": "<string>",
"market_id": "<string>",
"outcomes": [
{
"outcome": {},
"token_id": "<string>"
}
],
"question": {},
"slug": "<string>",
"start_date": 123,
"status": "<string>",
"tags": [
{
"label": {},
"slug": "<string>",
"tag_id": "<string>"
}
],
"uma_end_date": "<string>",
"uma_end_date_iso": "<string>",
"uma_resolution_status": "<string>",
"uma_resolution_statuses": "<string>",
"volume": "<string>",
"volume_24hr": "<string>"
}
],
"markets_has_more": true,
"resolution_source": "<string>",
"slug": "<string>",
"start_date": 123,
"start_time": 123,
"tags": [
{
"label": {},
"slug": "<string>",
"tag_id": "<string>"
}
],
"title": {},
"volume": "<string>"
}{
"label": "INVALID_ARGUMENT",
"message": "invalid request"
}{
"label": "INVALID_ARGUMENT",
"message": "invalid request"
}