{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paradex/json-schema/paradex-responses-rfq-results-schema.json",
  "title": "responses.RfqResults",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paradex-rfqs-api-openapi.yml#/components/schemas/responses.RfqResults",
  "type": "object",
  "properties": {
    "next": {
      "description": "Venue cursor to fetch the next page; null on the venue's last page.\nAn empty `results` with a non-null `next` is normal — the venue\npaginates over the whole RFQ registration, of which only this\naccount's records are returned — so continue until `next` is null\nrather than stopping on an empty page.",
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/responses.RfqResult"
      }
    }
  },
  "$defs": {
    "responses.RfqLegResult": {
      "type": "object",
      "properties": {
        "market": {
          "description": "Paradex market symbol",
          "type": "string"
        },
        "price": {
          "description": "Hedge legs only",
          "type": "string"
        },
        "ratio": {
          "type": "string"
        },
        "side": {
          "type": "string",
          "enum": [
            "BUY",
            "SELL"
          ]
        }
      }
    },
    "responses.RfqResult": {
      "type": "object",
      "properties": {
        "closed_reason": {
          "description": "Empty while open",
          "type": "string"
        },
        "counterparties": {
          "description": "Maker desk tickers the RFQ was sent to",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "created_at": {
          "description": "Unix milliseconds",
          "type": "integer"
        },
        "expires_at": {
          "type": "integer"
        },
        "id": {
          "description": "Venue-issued RFQ id",
          "type": "string"
        },
        "label": {
          "description": "User label",
          "type": "string"
        },
        "legs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/responses.RfqLegResult"
          }
        },
        "mark_price": {
          "description": "The venue's structure mark when the RFQ was created — per unit, signed\nas listed — the reference the taker was quoted against. Omitted when\nunknown: an RFQ created before marks were recorded, a structure the\nvenue had not priced at create, or a mark past its retention.",
          "type": "string"
        },
        "quantity": {
          "description": "Total strategy size",
          "type": "string"
        },
        "state": {
          "type": "string",
          "enum": [
            "OPEN",
            "CLOSED"
          ]
        }
      }
    }
  }
}