{
  "openapi": "3.0.1",
  "info": {
    "title": "Combos API",
    "version": "v1.0.0"
  },
  "tags": [
    {
      "name": "CombosAPI"
    }
  ],
  "paths": {
    "/v1/combos/quotes": {
      "get": {
        "summary": "Get quotes",
        "description": "Returns quotes matching the query filters.",
        "operationId": "CombosAPI_GetQuotes",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetQuotesResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "pageSize",
            "description": "Number of quotes to return. Max 100.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 100
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quoteId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rfqId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "creatorRfqUserId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "symbol",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "QUOTE_STATUS_PENDING",
                "QUOTE_STATUS_ACCEPTED",
                "QUOTE_STATUS_DELETED",
                "QUOTE_STATUS_EXPIRED",
                "QUOTE_STATUS_PASSED",
                "QUOTE_STATUS_DONE_AWAY",
                "QUOTE_STATUS_PENDING_RISK",
                "QUOTE_STATUS_REJECTED",
                "QUOTE_STATUS_PENDING_END_TRADE"
              ]
            }
          },
          {
            "name": "clientRequestId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Combos"
        ]
      },
      "post": {
        "summary": "Create quote",
        "description": "Creates a quote for an RFQ.",
        "operationId": "CombosAPI_CreateQuote",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateQuoteResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateQuoteRequest"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Combos"
        ]
      }
    },
    "/v1/combos/rfq/user-id": {
      "get": {
        "summary": "Get RFQ user ID",
        "description": "Returns the public RFQ user ID for the authenticated participant.",
        "operationId": "CombosAPI_GetRFQUserID",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetRFQUserIDResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Combos"
        ]
      }
    },
    "/v1/combos/rfqs": {
      "get": {
        "summary": "Get RFQs",
        "description": "Returns RFQs matching the query filters.",
        "operationId": "CombosAPI_GetRFQs",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1GetRFQsResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "pageSize",
            "description": "Number of RFQs to return. Max 100.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "maximum": 100
            }
          },
          {
            "name": "pageToken",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rfqId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "rfqCreatorUserId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "symbol",
            "description": "Filter by combo symbol.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "clientRequestId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "description": "Filter by RFQ status.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "QUOTE_STATUS_PENDING",
                "QUOTE_STATUS_ACCEPTED",
                "QUOTE_STATUS_DELETED",
                "QUOTE_STATUS_EXPIRED",
                "QUOTE_STATUS_PASSED",
                "QUOTE_STATUS_DONE_AWAY",
                "QUOTE_STATUS_PENDING_RISK",
                "QUOTE_STATUS_REJECTED",
                "QUOTE_STATUS_PENDING_END_TRADE"
              ]
            }
          }
        ],
        "tags": [
          "Combos"
        ]
      },
      "post": {
        "summary": "Create RFQ",
        "description": "Creates a combo RFQ.",
        "operationId": "CombosAPI_CreateRFQ",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1CreateRFQResponse"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/v1CreateRFQRequest"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Combos"
        ]
      }
    },
    "/v1/combos/rfqs/{rfqId}/quotes/{quoteId}": {
      "delete": {
        "summary": "Delete quote",
        "description": "Deletes a quote so it can no longer be accepted.",
        "operationId": "CombosAPI_DeleteQuote",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1DeleteQuoteResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "rfqId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Combos"
        ]
      }
    },
    "/v1/combos/rfqs/{rfqId}/quotes/{quoteId}/accept": {
      "put": {
        "summary": "Accept quote",
        "description": "Accepts a quote and starts last-look confirmation.",
        "operationId": "CombosAPI_AcceptQuote",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1AcceptQuoteResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "rfqId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CombosAPIAcceptQuoteBody"
              }
            }
          },
          "required": true
        },
        "tags": [
          "Combos"
        ]
      }
    },
    "/v1/combos/rfqs/{rfqId}/quotes/{quoteId}/confirm": {
      "put": {
        "summary": "Confirm quote",
        "description": "Confirms an accepted quote during last look.",
        "operationId": "CombosAPI_ConfirmQuote",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/v1ConfirmQuoteResponse"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "rfqId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "quoteId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Combos"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CombosAPIAcceptQuoteBody": {
        "type": "object",
        "properties": {
          "side": {
            "$ref": "#/components/schemas/v1Side"
          },
          "price": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "qtyDecimal": {
            "type": "string"
          }
        }
      },
      "v1AcceptQuoteResponse": {
        "type": "object"
      },
      "v1ComboInstrument": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "eventId": {
            "type": "string"
          },
          "eventDisplayName": {
            "type": "string"
          },
          "question": {
            "type": "string"
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1ComboInstrumentLeg"
            }
          },
          "expirationTime": {
            "type": "string",
            "format": "date-time"
          },
          "tickSize": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "v1ComboInstrumentLeg": {
        "type": "object",
        "properties": {
          "instrumentId": {
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          }
        }
      },
      "v1ComboLeg": {
        "type": "object",
        "properties": {
          "symbol": {
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          }
        }
      },
      "v1ConfirmQuoteResponse": {
        "type": "object"
      },
      "v1CreateQuoteRequest": {
        "type": "object",
        "properties": {
          "rfqId": {
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          },
          "price": {
            "type": "string"
          },
          "clientRequestId": {
            "type": "string",
            "nullable": true
          },
          "symbol": {
            "type": "string"
          },
          "qtyDecimal": {
            "type": "string"
          },
          "expirationTime": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "v1CreateQuoteResponse": {
        "type": "object",
        "properties": {
          "clientRequestId": {
            "type": "string"
          }
        }
      },
      "v1CreateRFQRequest": {
        "type": "object",
        "properties": {
          "qtyDecimal": {
            "type": "string",
            "nullable": true
          },
          "cashOrderQty": {
            "type": "string",
            "nullable": true
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1ComboLeg"
            }
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          },
          "clientRequestId": {
            "type": "string",
            "nullable": true
          },
          "expirationTime": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "v1CreateRFQResponse": {
        "type": "object",
        "properties": {
          "clientRequestId": {
            "type": "string"
          }
        }
      },
      "v1DeleteQuoteResponse": {
        "type": "object"
      },
      "v1GetQuotesResponse": {
        "type": "object",
        "properties": {
          "quotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1Quote"
            }
          },
          "nextPageToken": {
            "type": "string"
          },
          "eof": {
            "type": "boolean"
          }
        }
      },
      "v1GetRFQUserIDResponse": {
        "type": "object",
        "properties": {
          "rfqUserId": {
            "type": "string"
          }
        }
      },
      "v1GetRFQsResponse": {
        "type": "object",
        "properties": {
          "rfqs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/v1RFQ"
            }
          },
          "nextPageToken": {
            "type": "string"
          },
          "eof": {
            "type": "boolean"
          }
        }
      },
      "v1Quote": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "rfqId": {
            "type": "string"
          },
          "creatorRfqUserId": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "qtyDecimal": {
            "type": "string"
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          },
          "price": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/v1QuoteStatus"
          },
          "createdTime": {
            "type": "string",
            "format": "date-time"
          },
          "expirationTime": {
            "type": "string",
            "format": "date-time"
          },
          "clientRequestId": {
            "type": "string"
          }
        }
      },
      "v1QuoteStatus": {
        "type": "string",
        "enum": [
          "QUOTE_STATUS_PENDING",
          "QUOTE_STATUS_ACCEPTED",
          "QUOTE_STATUS_DELETED",
          "QUOTE_STATUS_EXPIRED",
          "QUOTE_STATUS_PASSED",
          "QUOTE_STATUS_DONE_AWAY",
          "QUOTE_STATUS_PENDING_RISK",
          "QUOTE_STATUS_REJECTED",
          "QUOTE_STATUS_PENDING_END_TRADE"
        ]
      },
      "v1RFQ": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "qtyDecimal": {
            "type": "string",
            "nullable": true
          },
          "cashOrderQty": {
            "type": "string",
            "nullable": true
          },
          "side": {
            "$ref": "#/components/schemas/v1Side"
          },
          "instrument": {
            "$ref": "#/components/schemas/v1ComboInstrument"
          },
          "rfqCreatorUserId": {
            "type": "string"
          },
          "clientRequestId": {
            "type": "string"
          },
          "expirationTime": {
            "type": "string",
            "format": "date-time"
          },
          "createdTime": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "v1Side": {
        "type": "string",
        "enum": [
          "SIDE_BUY",
          "SIDE_SELL"
        ],
        "description": "Side indicates the side of an Order."
      }
    }
  },
  "servers": [
    {
      "url": "https://api.prod.polymarketexchange.com"
    }
  ]
}