Skip to content

公告

查询公告

获取系统公告列表。

HTTP 请求

GET
/api/perp-market-api/announcements

请求频率限制:

  • 建议不超过 3 次/秒

请求参数

名称 类型 必填 描述
simple boolean 是否返回简化版本,默认为 false

响应字段说明

返回公告数组,每个公告包含:

名称 类型 描述
id long 公告 ID
title string 公告标题
content string 公告内容
publishTime long 发布时间(毫秒时间戳)
... ... 其他字段

响应示例

{
  "code": 200,
  "message": "success",
  "data": [
    {
      "id": 1,
      "title": "新功能上线",
      "content": "我们很高兴地宣布...",
      "publishTime": 1700000000000
    },
    {
      "id": 2,
      "title": "系统升级通知",
      "content": "系统将于...",
      "publishTime": 1699900000000
    }
  ]
}

说明

  • simple=true 时返回简化版本,字段更少
  • simple=false 时返回完整版本,包含所有字段