获取系统服务状态
获取系统服务状态
(鉴权类型:NONE, 参见接口权限)
请求格式
GET https://api-cloud.bitmart.com/system/service
请求限制
参见 速率限制详细
请求参数
无
请求示例
curl https://api-cloud.bitmart.com/system/service
import requests
url = "https://api-cloud.bitmart.com/system/service"
response = requests.request("GET", url)
print(response.text)
响应详情
字段 | 类型 | 描述 |
---|---|---|
title | string | 系统维护说明的标题 |
status | long | 系统维护的状态 |
0:等待中 | ||
1:进行中 | ||
2:已完成 | ||
service_type | string | 服务类型 |
spot=现货API服务 | ||
contract=合约API服务 | ||
start_time | long | 系统维护的开始时间,UTC-0,时间戳精确到毫秒 |
end_time | long | 系统维护的结束时间,UTC-0,时间戳精确到毫秒 |
解释说明
返回数据格式示例
{
"code": 1000,
"trace":"886fb6ae-456b-4654-b4e0-d681ac05cea1",
"message": "OK",
"data": {
"serivce":[
{
"title": "Spot API Stop",
"service_type": "spot",
"status": "2",
"start_time": 1527777538000,
"end_time": 1527777538000
},
{
"title": "Contract API Stop",
"service_type": "contract",
"status": "2",
"start_time": 1527777538000,
"end_time": 1527777538000
}
]
}
}