{
  "path": "/delivery/{settle}/contracts/{contract}",
  "operation_id": "getDeliveryContract",
  "auth_required": false,
  "parameters": [
    {
      "name": "settle",
      "in": "path",
      "description": "Settle currency",
      "required": true,
      "schema": {
        "type": "string",
        "enum": [
          "usdt"
        ]
      },
      "example": "usdt"
    },
    {
      "name": "contract",
      "in": "path",
      "description": "Futures contract",
      "required": true,
      "schema": {
        "type": "string"
      },
      "example": "BTC_USDT_20200814"
    }
  ],
  "response_fields": {
    "200": {
      "description": "Contract information",
      "fields": [
        {
          "path": "$",
          "type": "object",
          "description": "Futures contract details",
          "constraints": ""
        },
        {
          "path": "$.name",
          "type": "string",
          "description": "Futures contract",
          "constraints": ""
        },
        {
          "path": "$.underlying",
          "type": "string",
          "description": "Underlying",
          "constraints": ""
        },
        {
          "path": "$.cycle",
          "type": "string",
          "description": "Cycle type, e.g. WEEKLY, QUARTERLY",
          "constraints": "枚举：WEEKLY / BI-WEEKLY / QUARTERLY / BI-QUARTERLY"
        },
        {
          "path": "$.type",
          "type": "string",
          "description": "Contract type: inverse - inverse contract, direct - direct contract",
          "constraints": "枚举：inverse / direct"
        },
        {
          "path": "$.quanto_multiplier",
          "type": "string",
          "description": "The contract multiplier indicates how many units of the underlying asset the face value of one contract represents.",
          "constraints": ""
        },
        {
          "path": "$.leverage_min",
          "type": "string",
          "description": "Minimum leverage",
          "constraints": ""
        },
        {
          "path": "$.leverage_max",
          "type": "string",
          "description": "Maximum leverage",
          "constraints": ""
        },
        {
          "path": "$.maintenance_rate",
          "type": "string",
          "description": "The maintenance margin rate of the first tier of risk limit sheet",
          "constraints": ""
        },
        {
          "path": "$.mark_type",
          "type": "string",
          "description": "Deprecated",
          "constraints": "枚举：internal / index"
        },
        {
          "path": "$.mark_price",
          "type": "string",
          "description": "Current mark price",
          "constraints": ""
        },
        {
          "path": "$.index_price",
          "type": "string",
          "description": "Current index price",
          "constraints": ""
        },
        {
          "path": "$.last_price",
          "type": "string",
          "description": "Last trading price",
          "constraints": ""
        },
        {
          "path": "$.maker_fee_rate",
          "type": "string",
          "description": "Maker fee rate, negative values indicate rebates",
          "constraints": ""
        },
        {
          "path": "$.taker_fee_rate",
          "type": "string",
          "description": "Taker fee rate",
          "constraints": ""
        },
        {
          "path": "$.order_price_round",
          "type": "string",
          "description": "Minimum order price increment",
          "constraints": ""
        },
        {
          "path": "$.mark_price_round",
          "type": "string",
          "description": "Minimum mark price increment",
          "constraints": ""
        },
        {
          "path": "$.basis_rate",
          "type": "string",
          "description": "Fair basis rate",
          "constraints": ""
        },
        {
          "path": "$.basis_value",
          "type": "string",
          "description": "Fair basis value",
          "constraints": ""
        },
        {
          "path": "$.basis_impact_value",
          "type": "string",
          "description": "Funding used for calculating impact bid, ask price",
          "constraints": ""
        },
        {
          "path": "$.settle_price",
          "type": "string",
          "description": "Settle price",
          "constraints": ""
        },
        {
          "path": "$.settle_price_interval",
          "type": "integer",
          "description": "Settle price update interval",
          "constraints": ""
        },
        {
          "path": "$.settle_price_duration",
          "type": "integer",
          "description": "Settle price update duration in seconds",
          "constraints": ""
        },
        {
          "path": "$.expire_time",
          "type": "integer",
          "description": "Contract expiry timestamp",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.risk_limit_base",
          "type": "string",
          "description": "Risk limit base",
          "constraints": ""
        },
        {
          "path": "$.risk_limit_step",
          "type": "string",
          "description": "Step of adjusting risk limit",
          "constraints": ""
        },
        {
          "path": "$.risk_limit_max",
          "type": "string",
          "description": "Maximum risk limit the contract allowed",
          "constraints": ""
        },
        {
          "path": "$.order_size_min",
          "type": "integer",
          "description": "Minimum order quantity",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.order_size_max",
          "type": "integer",
          "description": "Maximum order quantity",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.order_price_deviate",
          "type": "string",
          "description": "Maximum allowed deviation between order price and current mark price. The order price `order_price` must satisfy the following condition:\n\n    abs(order_price - mark_price) <= mark_price * order_price_deviate",
          "constraints": ""
        },
        {
          "path": "$.ref_discount_rate",
          "type": "string",
          "description": "Trading fee discount for referred users",
          "constraints": ""
        },
        {
          "path": "$.ref_rebate_rate",
          "type": "string",
          "description": "Commission rate for referrers",
          "constraints": ""
        },
        {
          "path": "$.orderbook_id",
          "type": "integer",
          "description": "Orderbook update ID",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.trade_id",
          "type": "integer",
          "description": "Current trade ID",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.trade_size",
          "type": "integer",
          "description": "Historical cumulative trading volume",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.position_size",
          "type": "integer",
          "description": "Current total long position size",
          "constraints": "格式：\"int64\""
        },
        {
          "path": "$.config_change_time",
          "type": "number",
          "description": "Last configuration update time",
          "constraints": "格式：\"double\""
        },
        {
          "path": "$.in_delisting",
          "type": "boolean",
          "description": "Contract is delisting",
          "constraints": ""
        },
        {
          "path": "$.orders_limit",
          "type": "integer",
          "description": "Maximum number of pending orders",
          "constraints": ""
        }
      ]
    }
  },
  "source_version": "v4.106.132",
  "source_url": "https://github.com/gate/gateapi-python/blob/cd2cac4d339ec0734480787d23c020f467fd7b80/openapi.yaml",
  "local_tool_limits": [
    "仅检查必填、枚举和简单数值范围",
    "复杂类型序列化、条件必填、时间窗口等以官方规则为准",
    "不会发起 API 请求"
  ]
}
