{
  "path": "/spot/account_book",
  "operation_id": "listSpotAccountBook",
  "auth_required": true,
  "parameters": [
    {
      "name": "currency",
      "in": "query",
      "required": false,
      "description": "Query by specified currency name",
      "schema": {
        "type": "string"
      },
      "example": "BTC"
    },
    {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "Start timestamp for the query",
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1627706330
    },
    {
      "name": "to",
      "in": "query",
      "required": false,
      "description": "End timestamp for the query, defaults to current time if not specified",
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1635329650
    },
    {
      "name": "page",
      "in": "query",
      "description": "Page number",
      "required": false,
      "schema": {
        "type": "integer",
        "format": "int32",
        "default": 1,
        "minimum": 1
      },
      "example": 1
    },
    {
      "name": "limit",
      "in": "query",
      "description": "Maximum number of records returned in a single list",
      "required": false,
      "schema": {
        "type": "integer",
        "default": 100,
        "minimum": 1,
        "maximum": 1000
      },
      "example": 100
    },
    {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "Query by specified account change type. If not specified, all change types will be included.",
      "schema": {
        "type": "string"
      },
      "example": "lend"
    },
    {
      "name": "code",
      "in": "query",
      "required": false,
      "description": "Specify account change code for query. If not specified, all change types are included. This parameter has higher priority than `type`",
      "schema": {
        "type": "string"
      }
    }
  ],
  "response_fields": {
    "200": {
      "description": "List retrieved successfully",
      "fields": [
        {
          "path": "$",
          "type": "array<object>",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$[]",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$[].id",
          "type": "string",
          "description": "Balance change record ID",
          "constraints": ""
        },
        {
          "path": "$[].time",
          "type": "integer",
          "description": "The timestamp of the change (in milliseconds)",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$[].currency",
          "type": "string",
          "description": "Currency changed",
          "constraints": ""
        },
        {
          "path": "$[].change",
          "type": "string",
          "description": "Amount changed. Positive value means transferring in, while negative out",
          "constraints": ""
        },
        {
          "path": "$[].balance",
          "type": "string",
          "description": "Balance after change",
          "constraints": ""
        },
        {
          "path": "$[].type",
          "type": "string",
          "description": "Account change type; deprecated (see `code` for account change type encoding)",
          "constraints": ""
        },
        {
          "path": "$[].code",
          "type": "string",
          "description": "Account change code, see [Asset Record Code] (Asset Record Code)",
          "constraints": ""
        },
        {
          "path": "$[].text",
          "type": "string",
          "description": "Additional information",
          "constraints": ""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
