{
  "path": "/futures/{settle}/trades",
  "operation_id": "listFuturesTrades",
  "auth_required": false,
  "parameters": [
    {
      "name": "settle",
      "in": "path",
      "description": "Perpetual futures settlement currency",
      "required": true,
      "schema": {
        "type": "string",
        "enum": [
          "btc",
          "usdt",
          "usd1"
        ]
      },
      "example": "usdt"
    },
    {
      "name": "contract",
      "in": "query",
      "description": "Futures contract",
      "required": true,
      "schema": {
        "type": "string"
      },
      "example": "BTC_USDT"
    },
    {
      "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": "offset",
      "in": "query",
      "description": "List offset, starting from 0",
      "required": false,
      "schema": {
        "type": "integer",
        "default": 0,
        "minimum": 0
      },
      "example": 0
    },
    {
      "name": "last_id",
      "in": "query",
      "deprecated": true,
      "description": "Specify the starting point for this list based on a previously retrieved id\n\nThis parameter is deprecated. Use `from` and `to` instead to limit time range",
      "required": false,
      "schema": {
        "type": "string"
      },
      "example": "12345"
    },
    {
      "name": "from",
      "in": "query",
      "required": false,
      "description": "Specify starting time in Unix seconds. If not specified, `to` and `limit` will be used to limit response items.\nIf items between `from` and `to` are more than `limit`, only `limit` number will be returned.\n",
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1546905600
    },
    {
      "name": "to",
      "in": "query",
      "required": false,
      "description": "Specify end time in Unix seconds, default to current time.",
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1546935600
    }
  ],
  "response_fields": {
    "200": {
      "description": "List retrieved successfully",
      "fields": [
        {
          "path": "$",
          "type": "array<object>",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$[]",
          "type": "object",
          "description": "",
          "constraints": ""
        },
        {
          "path": "$[].id",
          "type": "integer",
          "description": "Fill ID",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$[].create_time",
          "type": "number",
          "description": "Fill Time",
          "constraints": "格式：\"double\""
        },
        {
          "path": "$[].create_time_ms",
          "type": "number",
          "description": "Trade time, with millisecond precision to 3 decimal places",
          "constraints": "格式：\"double\""
        },
        {
          "path": "$[].contract",
          "type": "string",
          "description": "Futures contract",
          "constraints": ""
        },
        {
          "path": "$[].size",
          "type": "string",
          "description": "Trading size",
          "constraints": ""
        },
        {
          "path": "$[].price",
          "type": "string",
          "description": "Trade price (quote currency)",
          "constraints": ""
        },
        {
          "path": "$[].is_internal",
          "type": "boolean",
          "description": "Deprecated",
          "constraints": ""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
