{
  "path": "/options/trades",
  "operation_id": "listOptionsTrades",
  "auth_required": false,
  "parameters": [
    {
      "name": "contract",
      "in": "query",
      "required": false,
      "description": "Options contract name",
      "schema": {
        "type": "string"
      },
      "example": "BTC_USDT-20210916-5000-C"
    },
    {
      "name": "type",
      "in": "query",
      "required": false,
      "description": "`C` for call, `P` for put",
      "schema": {
        "type": "string",
        "format": "P"
      },
      "example": 1546935600
    },
    {
      "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": "from",
      "in": "query",
      "description": "Start timestamp\n\nSpecify start time, time format is Unix timestamp. If not specified, it defaults to (the data start time of the time range actually returned by to and limit)",
      "required": false,
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1547706332
    },
    {
      "name": "to",
      "in": "query",
      "description": "Termination Timestamp\n\nSpecify the end time. If not specified, it defaults to the current time, and the time format is a Unix timestamp",
      "required": false,
      "schema": {
        "type": "integer",
        "format": "int64"
      },
      "example": 1547706332
    }
  ],
  "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": "integer",
          "description": "Fill Time",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$[].contract",
          "type": "string",
          "description": "Options contract name",
          "constraints": ""
        },
        {
          "path": "$[].size",
          "type": "integer",
          "description": "Trading size",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$[].price",
          "type": "string",
          "description": "Transaction Price (Quoted Currency, Unit: Underlying Option Price)",
          "constraints": ""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
