{
  "openapi": "3.1.0",
  "info": {
    "title": "DFlow Aggregator",
    "description": "DFlow Aggregator API",
    "license": {
      "name": "BUSL-1.1"
    },
    "version": "0.1.0"
  },
  "servers": [
    {
      "url": "https://quote-api.dflow.net"
    }
  ],
  "paths": {
    "/book-stream": {
      "get": {
        "tags": [
          "swap"
        ],
        "summary": "Streams a 10-level aggregated order book for subscribed pairs over a WebSocket.",
        "description": "Per-slot a `Batch` frame is emitted carrying `{u, ts, updates: [...]}`.\n`u` is the slot the batch was computed at and `ts` is the Solana\n`Clock` unix timestamp; either may be `0` before the chain Clock loads.\nAn optional `skipped` field counts state-change notifications that\nfired while the worker was busy rendering the previous batch (zero =\nkeeping up).\n\n**Inbound** (client → server): JSON objects with an `op` tag.\n  - `{ \"op\": \"subscribe\", \"base_mint\": \"...\", \"quote_mint\": \"...\" }`\n  - `{ \"op\": \"unsubscribe\", \"base_mint\": \"...\", \"quote_mint\": \"...\" }`\n\n**Outbound** (server → client): a `Batch` frame per slot, or an\nuntagged `Error` frame (`{ \"type\": \"bad_request\", \"message\": \"...\" }`)\nfor protocol errors. Each `Batch` carries optional `subscribe` /\n`unsubscribe` echoes (server confirmations of client ops) and the\n`updates` array of per-pair books or errors.\n\nPer-pair updates are either a `BookUpdate` or `ErrorUpdate`:\n\n`BookUpdate` = `{sb, sq, mid, tick, crossed, b: [BookLevel; 10], a: [BookLevel; 10]}`.\n  - `mid` and `tick` are in human price units (`quote / base` with\n    decimals applied).\n  - `crossed` is currently always `false` — the stream wraps the\n    aggregate in `Uncrossed`; the field is kept for forward compat.\n  - `b` (bids) and `a` (asks) are the `c` (average) book sorted from\n    nearest spot outward. Each level is the largest cumulative base\n    size whose average execution price equals the level price.\n\n`BookLevel` = `{price, cumulative_size_human}` where `price` is the\nper-level average execution price (human units) and\n`cumulative_size_human` is the total base size available from spot out\nto that level (also human units).\n\n`ErrorUpdate` = `{sb, sq, e: <code>}` where `e` is one of\n`no_decimals`, `no_market`, `same_base_and_quote`.",
        "operationId": "book_stream_handler",
        "responses": {
          "101": {
            "description": "WebSocket upgrade — see endpoint description for frame protocol"
          }
        }
      }
    },
    "/equities": {
      "get": {
        "tags": [
          "equities"
        ],
        "summary": "Returns the tokenized equities DFlow supports, mapping each ticker to its mint.",
        "operationId": "equities_handler",
        "responses": {
          "200": {
            "description": "List of supported tokenized equities",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EquityMapping"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Endpoint not enabled for the client",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EquitiesServiceUnavailableResponse"
                }
              }
            }
          }
        }
      }
    },
    "/health-check": {
      "get": {
        "tags": [
          "admin"
        ],
        "operationId": "handler_health_check",
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Unhealthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthCheckServiceUnavailableResponse"
                }
              }
            }
          }
        }
      }
    },
    "/healthz": {
      "get": {
        "tags": [
          "admin"
        ],
        "operationId": "handler_healthz",
        "responses": {
          "200": {
            "description": "Healthy",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "503": {
            "description": "Unhealthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthCheckServiceUnavailableResponse"
                }
              }
            }
          }
        }
      }
    },
    "/order": {
      "get": {
        "tags": [
          "order"
        ],
        "summary": "Returns a quote and optionally a transaction",
        "operationId": "order_handler",
        "parameters": [
          {
            "name": "userPublicKey",
            "in": "query",
            "description": "Base58-encoded address of the swapper's wallet. If specified, the response will include a\ntransaction allowing the user to submit the order.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "inputMint",
            "in": "query",
            "description": "Base58-encoded input mint address",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputMint",
            "in": "query",
            "description": "Base58-encoded output mint address",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "Input amount as a scaled integer. For example, 1 SOL is 1000000000.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "slippageBps",
            "in": "query",
            "description": "Max allowed slippage for the swap. Default is \"auto\". Allowed values are:\n- a u16 which specifies the maximum allowed slippage in basis points\n- the string value \"auto\", where the server determines the maximum allowed slippage\n  automatically",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SlippageTolerance"
            }
          },
          {
            "name": "perLegSlippage",
            "in": "query",
            "description": "If true or unspecified, per-leg slippage checks are enabled. If false, per-leg slippage\nchecks are disabled.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "predictionMarketSlippageBps",
            "in": "query",
            "description": "Max allowed slippage for prediction market orders. Allowed values are:\n- a u16 which specifies the maximum allowed slippage in basis points\n- the string value \"auto\", where the server determines the maximum allowed slippage\n  automatically\n\nIf specified as a u16:\n - must be greater than or equal to `slippage_bps`\n - this value will be used as the slippage for prediction market orders\n\nIf unspecified or \"auto\":\n - the server determines the maximum allowed slippage for prediction market orders\n\nThis will be the slippage value included in the created Prediction Order. This parameter is\nnot used in routing, but only affects the minimum amount of Outcome mint that a prediction\norder must produce to fill successfully.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SlippageTolerance"
            }
          },
          {
            "name": "priceImpactTolerancePct",
            "in": "query",
            "description": "If specified, the API will return an error if the price impact of the route is greater than\nthe specified percentage. If unspecified, the server will determine the threshold. For\nexample, 10 is 10% and 100 is 100%.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "dexes",
            "in": "query",
            "description": "Comma-separated list of DEXes to include. If not specified, all DEXes will be included.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeDexes",
            "in": "query",
            "description": "Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "onlyDirectRoutes",
            "in": "query",
            "description": "If true, only use single-leg routes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "maxRouteLength",
            "in": "query",
            "description": "If specified, the route will be limited to the specified number of legs. Ignored if\n`only_direct_routes` is true.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "onlyJitRoutes",
            "in": "query",
            "description": "If true, only use JIT routes. Every leg in the route will use the JIT router.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "forJitoBundle",
            "in": "query",
            "description": "If true, only use routes that are compatible with Jito bundles. This should only be\nspecified as true if the swap will be executed in a Jito bundle. Default is false.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "allowSyncExec",
            "in": "query",
            "description": "If true, allow synchronous execution. Default is true.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "allowAsyncExec",
            "in": "query",
            "description": "If true, allow asynchronous execution. Default is true.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "restrictRevertMint",
            "in": "query",
            "description": "If true, enforces that the input mint must be the revert mint for orders that use\nasynchronous execution.\nDefault is false.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "platformFeeMode",
            "in": "query",
            "description": "Optional platform fee mode. If not specified, the default is `outputMint`. For async\nprediction market swaps and equity escrow fills, this is ignored, and the platform fee is\npaid in the stablecoin mint.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PlatformFeeMode"
            }
          },
          {
            "name": "platformFeeBps",
            "in": "query",
            "description": "Optional platform fee in basis points. This should only be nonzero if the swap will collect\nthe platform fee. The fee account must be able to collect the fee mint at execution time.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "platformFeeScale",
            "in": "query",
            "description": "Optional platform fee scale for World prediction market swaps and async prediction market\nswaps, with 3 decimals. This should only be nonzero if the swap will collect the platform\nfee. The fee account must be able to collect the fee mint at fill time. Must be\n>= 0 and < 1000. For example, a value of 50 means 0.050.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "feeAccount",
            "in": "query",
            "description": "Base58-encoded address of the token account that will receive the platform fee if a platform\nfee applies to the swap. If specified, this account's mint must match the fee mint for the\nswap. This must be specified if the platform fee is nonzero.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "positiveSlippageFeeAccount",
            "in": "query",
            "description": "Base58-encoded address of the token account that will receive the positive slippage fee.\nThis must be a token account for the output mint, regardless of the platform fee mode. If at\nswap execution time this account can't receive the positive slippage fee, then the positive\nslippage fee transfer is skipped. If the platform fee mode is `outputMint` and the platform\nfee account is specified, then this must be unspecified (in which case the platform fee\naccount will be used) or match the platform fee account. Otherwise, this must be specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "positiveSlippageLimitPct",
            "in": "query",
            "description": "Limit on the positive slippage fee in percent. The positive slippage fee is limited to the\nlesser of (1) the excess actual out amount above the quoted amount and (2) this percentage\nof the actual out amount after platform fee.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "sponsor",
            "in": "query",
            "description": "Base58-encoded address of the sponsor's wallet. If specified, the sponsor will pay the\ntransaction fee and for token account creation, and both the user and the sponsor must sign\nthe swap transaction. This can be used to implement gasless swaps.\n\nCannot be specified alongside `predictionMarketInitPayer` parameter.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sponsorExec",
            "in": "query",
            "description": "If true, the sponsor will be the executor of the swap for sponsored swaps. If false, the\nuser will be the executor of the swap for sponsored swaps. Default is true.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sponsorIntermediateCloseAuthority",
            "in": "query",
            "description": "If true, the sponsor is set as the close authority of intermediate token accounts the\ntransaction creates. Requires `sponsor` with `sponsorExec` set to false. Default is false.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "destinationTokenAccount",
            "in": "query",
            "description": "Base58-encoded address of the account that will receive the output token. This is either the\naddress of the destination token account, or, if the output is native SOL, the address of\nthe destination wallet. If both `destinationTokenAccount` and `destinationWallet` are\nunspecified, the user's associated token account for the output mint will be used if the\noutput isn't native SOL, and the user's wallet will be used if the output is native SOL.\nIf the output isn't native SOL, the specified account must exist before the swap executes,\nor else the swap will fail.\nMutually exclusive with `destinationWallet`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "destinationWallet",
            "in": "query",
            "description": "Base58-encoded address of the wallet that will receive the output token. Mutually exclusive\nwith `destinationTokenAccount`. If specified:\n1. If the swap outputs native SOL, the transaction will output native SOL to the specified\n   wallet.\n2. If the swap outputs wrapped SOL or an SPL token, the transaction will send output to the\n   specified wallet's associated token account for the output mint, creating the associated\n   token account if it doesn't exist at execution time.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputCloseAuthority",
            "in": "query",
            "description": "Base58-encoded address of the close authority to assign to the output token account. If\nspecified, the swap instruction will idempotently initialize the output token account and\nset its close authority to the specified address. The action is a no-op if the output\ntoken account already exists at execution time.\n\nCannot be used when the output mint is SOL (wrapped or native). Cannot be used with\n`destinationTokenAccount` or `destinationWallet`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "revertWallet",
            "in": "query",
            "description": "Base58-encoded address of the wallet that will receive the revert mint if the order is an\nasynchronous order and it reverts.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "wrapAndUnwrapSol",
            "in": "query",
            "description": "If false, the order will use wrapped SOL",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "prioritizationFeeLamports",
            "in": "query",
            "description": "Prioritization fee in lamports. Mutually exclusive with `computeUnitPriceMicroLamports`.\nIf both `prioritizationFeeLamports` and `computeUnitPriceMicroLamports` are unspecified, the\ndefault of `prioritizationFeeLamports=\"auto\"` will be used.\nAllowed values are:\n- an unsigned 32-bit integer which specifies the prioritization fee in lamports\n- the string value \"auto\", where the server determines the fee automatically\n- the string value \"medium\", where the server determines the fee automatically\n- the string value \"high\", where the server determines the fee automatically\n- the string value \"veryHigh\", where the server determines the fee automatically\n- the string value \"disabled\", where the server leaves the prioritization fee unspecified",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/OrderPrioritizationFeeLamports"
            }
          },
          {
            "name": "prioritizationFeeMaxLamports",
            "in": "query",
            "description": "Maximum lamports to cap the prioritization fee determined by the server",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "computeUnitPriceMicroLamports",
            "in": "query",
            "description": "Compute unit price in micro-lamports. Mutually exclusive with `prioritizationFeeLamports`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "dynamicComputeUnitLimit",
            "in": "query",
            "description": "If true, the server will simulate the transaction to determine its compute unit limit. If\nunspecified or false, the transaction will use the default compute unit limit.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "includeJitoSandwichMitigationAccount",
            "in": "query",
            "description": "If specified, the transaction will include a Jito sandwich mitigation account in the swap\ninstruction. Allowed values are:\n- `true` - uses the default Jito sandwich mitigation account\n- `false` - does not include the account\n- A base58-encoded account address - uses the specified account\n\nIf unspecified, the account is not included.\nSee https://docs.jito.wtf/lowlatencytxnsend/#sandwich-mitigation for more details.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/IncludeJitoSandwichMitigationAccount"
            }
          },
          {
            "name": "predictionMarketInitPayer",
            "in": "query",
            "description": "Base58-encoded address of the account that will pay for market initialization if the market\nis uninitialized. If specified and the market is uninitialized, this account must sign the\ntransaction, and the transaction will initialize the market if it is uninitialized at\nexecution time. If this account differs from `userPublicKey`, the transaction will have\ntwo signers.\n\nCannot be specified alongside `sponsor` parameter.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outcomeAccountRentRecipient",
            "in": "query",
            "description": "Base58-encoded address of the account that will receive the rent from closing the outcome\ntoken account if it is empty after sale/redemption. If unspecified, the user's public key\nwill be used.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skipPumpfunCashbackClaim",
            "in": "query",
            "description": "If true, Pump.fun cashback will not be claimed for cashback-eligible coins. When set, sell\nquotes include the full creator fee, and execution skips Pump.fun cashback claiming. Default\nis false. Cannot be used with sponsor-executed swaps (`sponsorExec` is true or defaulted to\ntrue).",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "allowBondingCurveUnderconsumption",
            "in": "query",
            "description": "If true, allow buys on bonding curves to succeed even when the bonding curve cannot fully\nconsume the input (for example, when the curve is near completion). Default is false. Cannot\nbe used with sponsor-executed swaps (`sponsorExec` is true or defaulted to true).",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "includeAddressLookupTables",
            "in": "query",
            "description": "If true, the response will include the address lookup tables used in the transaction,\nwith only the entries referenced by the transaction, enabling clients to deserialize and\nrecompile the transaction with additional instructions without fetching ALTs from RPC.\nDefault is false. Has no effect when `transactionVersion` is `v1`, which does not use\naddress lookup tables.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "transactionVersion",
            "in": "query",
            "description": "Wire format of the returned transaction. Default is `v0`.\n\n- `v0`: a versioned transaction that uses address lookup tables to fit within the\n  1232-byte packet limit.\n- `v1`: a 4096-byte envelope with no address lookup tables, so every account is referenced\n  by its full 32-byte address. The larger envelope admits some routes that do not fit in a\n  `v0` transaction, though the 64-account limit is unchanged and usually binds first.\n\n`v1` transactions use a different binary encoding, so decode them with a `v1`-aware\ndeserializer. Request the same version on the corresponding quote, or the quoted route may\nnot fit the transaction.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TransactionVersion"
            }
          },
          {
            "name": "maxAccounts",
            "in": "query",
            "description": "Maximum allowed number of accounts that the transaction can use. Mutually exclusive with\n`reserveAccounts`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "maxTransactionSize",
            "in": "query",
            "description": "Maximum allowed size of the transaction in bytes. Mutually exclusive with\n`reserveTransactionSize`. Must not exceed the limit of the requested `transactionVersion`\n(1232 bytes for `v0`, 4096 bytes for `v1`).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "reserveAccounts",
            "in": "query",
            "description": "Number of accounts to leave unused in the transaction. The server will ensure that\nthe transaction uses at most `TRANSACTION_MAX_ACCOUNTS - reserveAccounts` accounts. Mutually\nexclusive with `maxAccounts`. If you add instructions to the transaction, use this parameter\nto specify the number of unique accounts that you will add to the transaction. Note that you\nshould not count accounts that are already included in the transaction.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "reserveTransactionSize",
            "in": "query",
            "description": "Number of bytes to leave unused in the transaction. The server will ensure that the\ntransaction size is at most `TRANSACTION_MAX_SIZE - reserveTransactionSize` bytes. Mutually\nexclusive with `maxTransactionSize`. If you add instructions to the transaction, use this\nparameter to specify the number of bytes that your modifications will add to the\ntransaction.\n\n`TRANSACTION_MAX_SIZE` depends on the requested `transactionVersion`: 1232 bytes for `v0`\nand 4096 bytes for `v1`. The same reserved value therefore leaves a larger budget under\n`v1`.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderInternalServerErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderServiceUnavailableResponse"
                }
              }
            }
          },
          "504": {
            "description": "Request timed out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeoutResponse"
                }
              }
            }
          }
        }
      }
    },
    "/order-status": {
      "get": {
        "tags": [
          "order"
        ],
        "summary": "Returns the status of an order. Prediction market orders and equity escrow fills are\nsupported.",
        "operationId": "order_status_handler",
        "parameters": [
          {
            "name": "signature",
            "in": "query",
            "description": "Base58-encoded transaction signature of the transaction received from the order endpoint.\nPrediction market order and equity escrow fill signatures are supported.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lastValidBlockHeight",
            "in": "query",
            "description": "Last block height at which the transaction is valid",
            "required": false,
            "schema": {
              "type": [
                "integer",
                "null"
              ],
              "format": "int64",
              "minimum": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Order status",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusBadRequestResponse"
                }
              }
            }
          },
          "404": {
            "description": "Order not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusNotFoundResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OrderStatusInternalServerErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/priority-fees": {
      "get": {
        "tags": [
          "swap"
        ],
        "summary": "Returns the latest global priority fee estimates for each priority level",
        "operationId": "priority_fees_handler",
        "responses": {
          "200": {
            "description": "Priority fee estimates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PriorityFeesResponse"
                }
              }
            }
          }
        }
      }
    },
    "/priority-fees/stream": {
      "get": {
        "tags": [
          "swap"
        ],
        "summary": "Streams priority fee estimate updates over a WebSocket connection",
        "operationId": "priority_fee_stream_handler",
        "responses": {
          "101": {
            "description": "WebSocket upgrade"
          }
        }
      }
    },
    "/quote": {
      "get": {
        "tags": [
          "swap"
        ],
        "summary": "Returns a quote for an imperative swap",
        "operationId": "quote_handler",
        "parameters": [
          {
            "name": "inputMint",
            "in": "query",
            "description": "Base58-encoded input mint address",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outputMint",
            "in": "query",
            "description": "Base58-encoded output mint address",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "amount",
            "in": "query",
            "description": "Input amount as a scaled integer. For example, 1 SOL is 1000000000.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64",
              "minimum": 0
            }
          },
          {
            "name": "slippageBps",
            "in": "query",
            "description": "Max allowed slippage for the swap. Allowed values are:\n- a u16 which specifies the maximum allowed slippage in basis points\n- the string value \"auto\", where the server determines the maximum allowed slippage\n  automatically",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SlippageTolerance"
            }
          },
          {
            "name": "priceImpactTolerancePct",
            "in": "query",
            "description": "If specified, the API will return an error if the price impact of the route is greater than\nthe specified percentage. If unspecified, the server will determine the threshold. For\nexample, 10 is 10% and 100 is 100%.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "dexes",
            "in": "query",
            "description": "Comma-separated list of DEXes to include. If not specified, all DEXes will be included.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeDexes",
            "in": "query",
            "description": "Comma-separated list of DEXes to exclude. If not specified, all DEXes will be included.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "platformFeeBps",
            "in": "query",
            "description": "Optional platform fee in basis points. This should only be nonzero if the swap will collect\nthe platform fee. The swap must specify a valid fee account and that fee account must be\nable to collect the fee mint at execution time.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "platformFeeMode",
            "in": "query",
            "description": "Optional platform fee mode. If not specified, the default is `outputMint`.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PlatformFeeMode"
            }
          },
          {
            "name": "sponsoredSwap",
            "in": "query",
            "description": "This should be specified as true if and only if the quote will be used for a sponsored swap.\nIf true, then the quote will account for any additional token 2022 transfer fees that apply\nto the input and output mints for a sponsored swap.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "sponsorExec",
            "in": "query",
            "description": "The execution mode that will be used for the sponsored swap. This parameter is only relevant\nwhen `sponsoredSwap` is true. True indicates that the sponsor will be the executor of the\nswap. False indicates that the user will be the executor of the swap. Default is true.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "destinationSwap",
            "in": "query",
            "description": "This should be specified as true if and only if the quote will be used for a destination\ntoken account swap. If true, then the quote will account for any additional token 2022\ntransfer fees that apply to the output mint for a destination token account swap.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "onlyDirectRoutes",
            "in": "query",
            "description": "If true, only use single-leg routes",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "maxRouteLength",
            "in": "query",
            "description": "If specified, the route will be limited to the specified number of legs. Ignored if\n`only_direct_routes` is true.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0
            }
          },
          {
            "name": "onlyJitRoutes",
            "in": "query",
            "description": "If true, only use JIT routes. Every leg in the route will use the JIT router.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "forJitoBundle",
            "in": "query",
            "description": "If true, only use routes that are compatible with Jito bundles. This should only be\nspecified as true if the swap will be executed in a Jito bundle. Default is false.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "skipPumpfunCashbackClaim",
            "in": "query",
            "description": "If true, Pump.fun cashback will not be claimed for cashback-eligible coins. When set, sell\nquotes include the full creator fee, and execution skips Pump.fun cashback claiming. Default\nis false. Cannot be used with sponsor-executed swaps (`sponsorExec` is true or defaulted to\ntrue).",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "transactionVersion",
            "in": "query",
            "description": "Wire format the quoted route must fit. Default is `v0`. This does not change the quote\nresponse itself, but `v1`'s larger envelope admits routes that a `v0` transaction cannot\ncarry, so it should match the `transactionVersion` passed to the swap endpoint.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TransactionVersion"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Imperative swap quote",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteInternalServerErrorResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteServiceUnavailableResponse"
                }
              }
            }
          },
          "504": {
            "description": "Request timed out",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TimeoutResponse"
                }
              }
            }
          }
        }
      }
    },
    "/quote-stream": {
      "get": {
        "tags": [
          "swap"
        ],
        "summary": "Streams best bid/ask quotes for subscribed pairs over a WebSocket.",
        "description": "Per-tick a `Batch` frame is emitted carrying `{u, ts, updates: [...]}`.\n`u` is the slot the batch was computed at and `ts` is the Solana\n`Clock` unix timestamp; either may be `0` before the chain Clock loads.\n\n**Inbound** (client → server): JSON objects with an `op` tag.\n  - `{ \"op\": \"subscribe\", \"base_mint\": \"...\", \"quote_mint\": \"...\" }`\n  - `{ \"op\": \"unsubscribe\", \"base_mint\": \"...\", \"quote_mint\": \"...\" }`\n  - `{ \"op\": \"subscribe_all_prediction_markets\" }` (privileged; requires\n    `enable_quote_stream_auto_subscribe`). Subscribes to `(outcome_mint,\n    CASH)` for every currently-tradable World prediction-market\n    outcome mint, where CASH is the native-predictions settlement\n    currency at `CASHx9KJUStyftLFWGvEVf59SGeG9sh5FfcnZMVPCASH`.\n  - `{ \"op\": \"unsubscribe_all_prediction_markets\" }` (same)\n\n**Outbound** (server → client): a `Batch` frame per state tick, or an\nuntagged `Error` frame (`{ \"type\": \"bad_request\", \"message\": \"...\" }`)\nfor protocol errors. Each `Batch` carries optional `pm_start`/`pm_stop`\narrays (world-event transitions for auto-subscribed prediction markets),\noptional `subscribe`/`unsubscribe` arrays (the server's confirmation\nechoes of client-issued ops), and the `updates` array of per-pair\nquotes or errors.\n\nPer-pair updates are either a `QuoteUpdate` or an `ErrorUpdate`.\n\n`QuoteUpdate` = `{sb, sq, b, B, a, A}`. The single-letter keys mirror\nBinance's `bookTicker` WS schema so CEX-style clients can consume the\nstream with minimal changes:\n\n  - `sb` — base mint pubkey (base58 string).\n  - `sq` — quote mint pubkey (base58 string).\n  - `b` — best **b**id price (best price to sell base for quote), as a\n    JSON number in **quote per base**, rounded to 8 decimal places\n    (e.g. `0.00667`).\n  - `B` — best **B**id quantity, as a JSON number in\n    **base-denominated** units (typically USDC or another stable),\n    rounded to 8 decimal places (e.g. `1000.0`).\n  - `a` — best **a**sk price (best price to buy base with quote), same\n    format as `b`.\n  - `A` — best **A**sk quantity, same format as `B`.\n\nTwo notes:\n  1. `B` and `A` are **base-denominated**. In this server's pair\n     convention the base side is typically the stable (USDC/CASH),\n     so depth is expressed in dollar-equivalents and is directly\n     comparable across pairs.\n  2. `B` and `A` typically carry the **same value** — both report the\n     probe notional that drove the round-trip pricing. They are not\n     independent depths. For independent per-side depth, use\n     `/book-stream`.\n\nPrices and quantities are JSON numbers (f64). 8-decimal rounding fits\nwell inside f64's ~15 significant-digit budget for the ranges we emit,\nso the conversion is lossless in practice.\n\n`ErrorUpdate` = `{sb, sq, e: <code>}` where `e` is one of\n`no_decimals`, `no_reference_price`, `no_route`, `quote_failed`,\n`input_too_small`, `same_base_and_quote`.",
        "operationId": "quote_stream_handler",
        "responses": {
          "101": {
            "description": "WebSocket upgrade — see endpoint description for frame protocol"
          }
        }
      }
    },
    "/swap": {
      "post": {
        "tags": [
          "swap"
        ],
        "summary": "Returns an imperative swap transaction for the given quote",
        "operationId": "swap_handler",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SwapRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Imperative swap transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapInternalServerErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/swap-instructions": {
      "post": {
        "tags": [
          "swap"
        ],
        "summary": "Returns an imperative swap transaction for the given quote",
        "operationId": "swap_instructions_handler",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SwapRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Imperative swap transaction",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapInstructionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapBadRequestResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SwapInternalServerErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens": {
      "get": {
        "tags": [
          "tokens"
        ],
        "summary": "Returns a list of supported token mints, specifically any mints that a pool for trading was\navailable at least once in the lifetime of the server.",
        "operationId": "tokens_handler",
        "responses": {
          "200": {
            "description": "List of supported token mints",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vec"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokensServiceUnavailableResponse"
                }
              }
            }
          }
        }
      }
    },
    "/tokens-with-decimals": {
      "get": {
        "tags": [
          "tokens"
        ],
        "summary": "Returns a list of supported token mints and their decimals, specifically any mints that a pool for trading was\navailable at least once in the lifetime of the server.",
        "operationId": "tokens_with_decimals_handler",
        "responses": {
          "200": {
            "description": "List of supported token mints with decimals",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokensWithDecimalsDoc"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokensServiceUnavailableResponse"
                }
              }
            }
          }
        }
      }
    },
    "/venues": {
      "get": {
        "tags": [
          "venues"
        ],
        "summary": "Returns a list of venues supported for swapping.",
        "operationId": "venues_handler",
        "responses": {
          "200": {
            "description": "List of supported venues",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vec"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountMetaResponse": {
        "type": "object",
        "required": [
          "pubkey",
          "isSigner",
          "isWritable"
        ],
        "properties": {
          "isSigner": {
            "type": "boolean",
            "description": "Is the account a signer?"
          },
          "isWritable": {
            "type": "boolean",
            "description": "Is the account writable?"
          },
          "pubkey": {
            "type": "string",
            "description": "Pubkey of the account"
          }
        }
      },
      "AddressLookupTableResponse": {
        "type": "object",
        "required": [
          "address",
          "addresses"
        ],
        "properties": {
          "address": {
            "type": "string",
            "description": "Base58-encoded address of the lookup table account"
          },
          "addresses": {
            "type": "object",
            "description": "Map of index to base58-encoded address for each entry in the lookup table that is used by\nthe transaction. Key is the index of the address in the lookup table and value is the\naddress.",
            "additionalProperties": {
              "type": "string"
            },
            "propertyNames": {
              "type": "integer",
              "minimum": 0
            }
          }
        }
      },
      "ApiErrorCode": {
        "type": "string",
        "enum": [
          "not_found",
          "service_unavailable"
        ]
      },
      "ApiErrorResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ApiErrorCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "BlockhashWithMetadata": {
        "type": "object",
        "required": [
          "blockhash",
          "lastValidBlockHeight"
        ],
        "properties": {
          "blockhash": {
            "type": "string",
            "description": "Base58-encoded blockhash"
          },
          "lastValidBlockHeight": {
            "type": "integer",
            "format": "int64",
            "description": "The last block height at which a transaction that uses the blockhash is valid",
            "minimum": 0
          }
        }
      },
      "CreateFeeAccountParams": {
        "type": "object",
        "required": [
          "referralAccount"
        ],
        "properties": {
          "referralAccount": {
            "type": "string",
            "description": "Base58-encoded address of the referral account associated with the fee account"
          }
        }
      },
      "DestinationTokenAccountParam": {
        "oneOf": [
          {
            "type": "object",
            "description": "Use the specified owner's associated token account for the output mint as the destination\ntoken account. If the destination token account is uninitialized at swap execution time, the\nswap will create it. This cannot be used if the output is native SOL.",
            "required": [
              "associatedTokenAccount"
            ],
            "properties": {
              "associatedTokenAccount": {
                "type": "object",
                "description": "Use the specified owner's associated token account for the output mint as the destination\ntoken account. If the destination token account is uninitialized at swap execution time, the\nswap will create it. This cannot be used if the output is native SOL.",
                "required": [
                  "owner"
                ],
                "properties": {
                  "owner": {
                    "type": "string",
                    "description": "Base58-encoded address of the owner of the destination token account"
                  }
                }
              }
            }
          },
          {
            "type": "object",
            "description": "Use the specified base58-encoded address as the destination token account. The account must\nalready be initialized at swap execution time or else the transaction will fail.",
            "required": [
              "address"
            ],
            "properties": {
              "address": {
                "type": "string",
                "description": "Use the specified base58-encoded address as the destination token account. The account must\nalready be initialized at swap execution time or else the transaction will fail."
              }
            }
          }
        ]
      },
      "DynamicRoutePlanLeg": {
        "type": "object",
        "required": [
          "venue",
          "marketKey",
          "data",
          "inputMint",
          "outputMint",
          "inAmount",
          "outAmount",
          "inputMintDecimals",
          "outputMintDecimals"
        ],
        "properties": {
          "data": {
            "type": "string",
            "description": "Data for the leg"
          },
          "inAmount": {
            "type": "string",
            "description": "Maximum input amount for the leg as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "inputMint": {
            "type": "string",
            "description": "Base58-encoded input mint address"
          },
          "inputMintDecimals": {
            "type": "integer",
            "format": "int32",
            "description": "Decimals for the input mint",
            "minimum": 0
          },
          "marketKey": {
            "type": "string",
            "description": "Key identifying the market on the venue"
          },
          "outAmount": {
            "type": "string",
            "description": "Expected output amount for the leg as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outputMint": {
            "type": "string",
            "description": "Base58-encoded output mint address"
          },
          "outputMintDecimals": {
            "type": "integer",
            "format": "int32",
            "description": "Decimals for the output mint",
            "minimum": 0
          },
          "venue": {
            "type": "string",
            "description": "Venue for the leg"
          }
        }
      },
      "EquitiesServiceUnavailableCode": {
        "type": "string",
        "enum": [
          "not_ready"
        ]
      },
      "EquitiesServiceUnavailableResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/EquitiesServiceUnavailableCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "EquityMapping": {
        "type": "object",
        "description": "A supported tokenized equity",
        "required": [
          "ticker",
          "mint",
          "provider"
        ],
        "properties": {
          "mint": {
            "type": "string",
            "description": "Equity token mint (Base58-encoded)"
          },
          "provider": {
            "type": "string",
            "description": "Issuer of the equity token"
          },
          "ticker": {
            "type": "string",
            "description": "Ticker symbol"
          }
        }
      },
      "ExecutionMode": {
        "type": "string",
        "enum": [
          "sync",
          "async"
        ]
      },
      "Fill": {
        "type": "object",
        "required": [
          "signature",
          "inputMint",
          "inAmount",
          "outputMint",
          "outAmount"
        ],
        "properties": {
          "inAmount": {
            "type": "string",
            "description": "Input amount including fees, as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "inputMint": {
            "type": "string",
            "description": "Input mint for the fill"
          },
          "outAmount": {
            "type": "string",
            "description": "Output amount including fees, as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outputMint": {
            "type": "string",
            "description": "Output mint for the fill"
          },
          "signature": {
            "type": "string",
            "description": "Base58-encoded signature of the fill transaction"
          }
        }
      },
      "HealthCheckServiceUnavailableCode": {
        "type": "string",
        "enum": [
          "amm_map_not_initialized",
          "amm_map_lagging",
          "mint_info_not_initialized",
          "reference_price_map_not_initialized",
          "blockhash_unavailable",
          "internal"
        ]
      },
      "HealthCheckServiceUnavailableResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/HealthCheckServiceUnavailableCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "IncludeJitoSandwichMitigationAccount": {
        "oneOf": [
          {
            "type": "boolean"
          },
          {
            "type": "string"
          }
        ]
      },
      "InstructionResponse": {
        "type": "object",
        "required": [
          "programId",
          "accounts",
          "data"
        ],
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountMetaResponse"
            },
            "description": "Metadata describing accounts that should be passed to the program."
          },
          "data": {
            "type": "string",
            "description": "Opaque data passed to the program for its own interpretation."
          },
          "programId": {
            "type": "string",
            "description": "Pubkey of the program that executes this instruction."
          }
        }
      },
      "OrderBadRequestCode": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_user_public_key"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_sponsor"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_revert_wallet"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_prediction_market_init_payer"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "requested_input_amount_is_zero"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_input_mint"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_output_mint"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "same_input_and_output_mint"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_slippage_bps"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "prediction_slippage_bps_above_max"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "prediction_slippage_bps_below_routing_slippage"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_platform_fee_bps"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_platform_fee_scale"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_fee_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "platform_fee_account_not_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "platform_fee_account_not_specified_for_platform_fee_scale"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_positive_slippage_fee_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "cannot_disable_sync_and_async_execution"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_dex"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_max_route_length_for_jit_route"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "cannot_exclude_jit_router_for_jit_route"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "route_not_found"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "limit",
              "base",
              "quote",
              "code"
            ],
            "properties": {
              "base": {
                "type": "string",
                "description": "Base mint of the leg (base58)"
              },
              "code": {
                "type": "string",
                "enum": [
                  "leg_price_at_limit"
                ]
              },
              "limit": {
                "type": "integer",
                "format": "int64",
                "description": "The price bound the leg reached, in `quote`-atoms per whole `base` unit",
                "minimum": 0
              },
              "quote": {
                "type": "string",
                "description": "Quote mint of the leg (base58)"
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "zero_out_amount"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "price_impact_too_high"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_max_outcome_absolute_price_impact"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "both_priority_fee_params_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "both_destination_params_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "both_sponsor_and_prediction_market_init_payer_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_destination_token_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_destination_wallet"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "destination_token_account_not_supported"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_output_close_authority"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "output_close_authority_with_native_sol_output"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "output_close_authority_with_destination_token_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "output_close_authority_not_supported"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "init_settlement_ata_with_destination_token_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_payout_receiver"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "payout_receiver_with_destination_token_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "reset_user_settings_with_payout_receiver"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "reset_user_settings_with_destination_token_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_input_mint_for_restrict_revert_mint"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_jito_sandwich_mitigation_account"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_outcome_account_rent_recipient"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unverified_wallet_not_allowed"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "wallet_restricted"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unsupported_prediction_market_sponsor_mode"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "invalid_price_impact_tolerance_pct"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "skip_pumpfun_cashback_claim_with_sponsor_executor"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "allow_bonding_curve_underconsumption_with_sponsor_executor"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "sponsor_intermediate_close_authority_without_sponsor"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "sponsor_intermediate_close_authority_with_sponsor_executor"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "both_max_accounts_and_reserve_accounts_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "both_max_transaction_size_and_reserve_transaction_size_specified"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "max_accounts_too_small"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "max_transaction_size_too_small"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "reserve_accounts_too_large"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "reserve_transaction_size_too_large"
                ]
              }
            }
          },
          {
            "type": "object",
            "required": [
              "code"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unsupported_equity_pair"
                ]
              }
            }
          }
        ],
        "description": "The serialized error code, flattened into [`OrderBadRequestResponse`] so the\n`code` string and any typed fields sit at the top level next to `msg`.\n\nPattern for a new structured error: add a **struct variant** here whose\nfields are wire types (`u64`, `String`, or a small serde enum, never a\ndomain type), then in `OrderBadRequestType::into_response` build it,\nconverting domain values (`Pubkey`, `Decimal`, ...) to those wire types at\nthat boundary (see `LegPriceAtLimit`). Unit variants serialize as just\n`{ \"code\": \"...\" }`."
      },
      "OrderBadRequestResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/OrderBadRequestCode",
            "description": "The error `code`, plus any typed fields that code carries (e.g.\n`leg_price_at_limit` adds `limit`/`base`/`quote`). Flattened, so `code`\nand its fields sit at the top level alongside `msg`."
          },
          {
            "type": "object",
            "required": [
              "msg"
            ],
            "properties": {
              "msg": {
                "type": "string"
              }
            }
          }
        ],
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderInternalServerErrorCode": {
        "type": "string",
        "enum": [
          "failed_to_compute_route",
          "failed_to_construct_order"
        ]
      },
      "OrderInternalServerErrorResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderInternalServerErrorCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderPrioritizationFeeLamports": {
        "oneOf": [
          {
            "type": "string",
            "enum": [
              "auto",
              "medium",
              "high",
              "veryHigh",
              "disabled"
            ]
          },
          {
            "type": "integer",
            "format": "int32",
            "minimum": 0
          }
        ]
      },
      "OrderResponse": {
        "type": "object",
        "required": [
          "inputMint",
          "inAmount",
          "outputMint",
          "outAmount",
          "otherAmountThreshold",
          "minOutAmount",
          "slippageBps",
          "priceImpactPct",
          "contextSlot",
          "executionMode",
          "transactionVersion"
        ],
        "properties": {
          "addressLookupTables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddressLookupTableResponse"
            },
            "description": "Address lookup tables used in the transaction. Each entry contains the table's address and\na map of index to address for each entry in the table that is used by the transaction.\nSpecified if and only if the request included `includeAddressLookupTables=true`, the\nrequest included the user's public key, and `transactionVersion` is `v0`. A `v1`\ntransaction does not use address lookup tables, so this is omitted even when requested."
          },
          "computeUnitLimit": {
            "type": "integer",
            "format": "int32",
            "description": "Compute unit limit assigned to the transaction. Specified if and only if the request included\nthe user's public key.",
            "minimum": 0
          },
          "contextSlot": {
            "type": "integer",
            "format": "int64",
            "description": "Slot at which the request was evaluated",
            "minimum": 0
          },
          "destinationWalletMustSign": {
            "type": "boolean",
            "description": "Whether `destinationWallet` must sign the transaction."
          },
          "executionMode": {
            "$ref": "#/components/schemas/ExecutionMode",
            "description": "Order execution mode"
          },
          "inAmount": {
            "type": "string",
            "description": "Maximum input amount as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "inAmountScaledUi": {
            "type": "string",
            "description": "`inAmount` as a scaled UI amount (`inAmount × multiplier / 10^decimals`), as a decimal\nstring. Specified only for a tokenized equity response whose input mint carries the\nScaledUiAmount extension."
          },
          "initPredictionMarketCost": {
            "type": "integer",
            "format": "int32",
            "description": "Cost in lamports to initialize a prediction market. Specified if and only if the transaction\nwill initialize the prediction market.",
            "minimum": 0
          },
          "inputMint": {
            "type": "string",
            "description": "Base58-encoded input mint address"
          },
          "isNativePredictionMarketOutput": {
            "type": "boolean",
            "description": "True if and only if the output mint is a World prediction market outcome mint."
          },
          "lastValidBlockHeight": {
            "type": "integer",
            "format": "int64",
            "description": "The last block height at which the blockhash assigned to the transaction is valid. Useful to\ndetermine whether the transaction has expired. Specified if and only if the request included\nthe user's public key.",
            "minimum": 0
          },
          "minOutAmount": {
            "type": "string",
            "description": "Same as `other_amount_threshold`"
          },
          "minOutAmountScaledUi": {
            "type": "string",
            "description": "`minOutAmount` as a scaled UI amount (truncated). Specified only when `outAmountScaledUi`\nis."
          },
          "otherAmountThreshold": {
            "type": "string",
            "description": "Minimum output amount after all fees as a scaled integer. If the swap transaction doesn't\nproduce at least this amount of the output token, the transaction will fail."
          },
          "outAmount": {
            "type": "string",
            "description": "Expected output amount after all fees as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outAmountScaledUi": {
            "type": "string",
            "description": "`outAmount` as a scaled UI amount. Specified only for a tokenized equity response whose output\nmint carries the ScaledUiAmount extension."
          },
          "outputMint": {
            "type": "string",
            "description": "Base58-encoded output mint address"
          },
          "platformFee": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PlatformFee",
                "description": "Platform fee that was applied to the quote, if any"
              }
            ]
          },
          "predictionMarketInitPayerMustSign": {
            "type": "boolean",
            "description": "Whether the `predictionMarketInitPayer` must sign the transaction. Specified if and only if\nthe request included `predictionMarketInitPayer` and the market is uninitialized."
          },
          "predictionMarketSlippageBps": {
            "type": "integer",
            "format": "int32",
            "description": "Max allowed slippage for prediction market orders in basis points.\nOnly specified for prediction market orders.",
            "minimum": 0
          },
          "priceImpactPct": {
            "type": "string",
            "description": "Price impact of the swap. This is an estimate of the percentage difference between the\nexpected price for the swap and the price for the same swap with the smallest input amount\npossible. For example, \"0.01\" means 1% price impact."
          },
          "prioritizationFeeLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Prioritization fee in lamports. Specified if and only if the request included the user's\npublic key.",
            "minimum": 0
          },
          "prioritizationType": {
            "$ref": "#/components/schemas/PrioritizationType",
            "description": "Prioritization fee type for the transaction. Specified if and only if the request included\nthe user's public key."
          },
          "revertMint": {
            "type": "string",
            "description": "Base58-encoded mint address of the token that will be returned to the user if the order is\nan asynchronous order and the order reverts after it is successfully opened. Specified if\nand only if the order is an asynchronous order."
          },
          "routePlan": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoutePlanLeg"
            },
            "description": "Route that the swap will take. Specified if and only if the route plan is known at order\nopening time. This will be specified for all synchronous orders."
          },
          "scaledUiMultiplier": {
            "type": "number",
            "format": "double",
            "description": "The equity mint's Token-2022 ScaledUiAmount multiplier used for this response. Specified only\nfor a tokenized equity response whose mint carries the extension."
          },
          "slippageBps": {
            "type": "integer",
            "format": "int32",
            "description": "Max allowed slippage % in basis points",
            "minimum": 0
          },
          "submitEndpointRequired": {
            "type": "boolean",
            "description": "Whether the transaction must be submitted to the equities submit endpoint instead of the\napp's own RPC. Specified if and only if the transaction is an equity direct fill that requires it."
          },
          "transaction": {
            "type": "string",
            "description": "Base64-encoded transaction. The user must sign before sending it to Solana. Specified\nif and only if the request included the user's public key.\n\n`v0` and `v1` use different binary encodings. A `v0` deserializer, such as\n`VersionedTransaction.deserialize` in `@solana/web3.js`, will not read a `v1` transaction;\ncheck `transactionVersion` to select the right one."
          },
          "transactionVersion": {
            "$ref": "#/components/schemas/TransactionVersion",
            "description": "The wire format `transaction` was built in, echoing the request's `transactionVersion`\nor its `v0` default."
          },
          "underlyingTicker": {
            "type": "string",
            "description": "The equity's underlying ticker, for example `AAPL`. Specified only for a tokenized equity\ndirect fill or escrow fill."
          }
        }
      },
      "OrderServiceUnavailableCode": {
        "type": "string",
        "enum": [
          "amm_map_not_initialized",
          "amm_map_lagging"
        ]
      },
      "OrderServiceUnavailableResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderServiceUnavailableCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderStatus": {
        "type": "string",
        "enum": [
          "pending",
          "expired",
          "failed",
          "open",
          "pendingClose",
          "closed"
        ]
      },
      "OrderStatusBadRequestCode": {
        "type": "string",
        "enum": [
          "invalid_signature"
        ]
      },
      "OrderStatusBadRequestResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderStatusBadRequestCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderStatusInternalServerErrorCode": {
        "type": "string",
        "enum": [
          "internal_server_error"
        ]
      },
      "OrderStatusInternalServerErrorResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderStatusInternalServerErrorCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderStatusNotFoundCode": {
        "type": "string",
        "enum": [
          "not_found"
        ]
      },
      "OrderStatusNotFoundResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/OrderStatusNotFoundCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "OrderStatusResponse": {
        "type": "object",
        "required": [
          "status",
          "inAmount",
          "outAmount"
        ],
        "properties": {
          "fills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fill"
            },
            "description": "Fills for the order. Specified if and only if the order has at least one fill."
          },
          "inAmount": {
            "type": "string",
            "description": "Total input amount filled, as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outAmount": {
            "type": "string",
            "description": "Total output amount filled, as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "reverts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Revert"
            },
            "description": "Reverts for the order. Specified if and only if the order has at least one revert."
          },
          "status": {
            "$ref": "#/components/schemas/OrderStatus",
            "description": "Status of the order"
          }
        }
      },
      "PlatformFee": {
        "type": "object",
        "required": [
          "amount",
          "feeBps",
          "mode"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "Platform fee as a scaled integer. For example, 1 SOL is 1000000000. For output mint fees,\nthis is the expected amount that will be paid, but the exact amount will vary depending on\nhow much output the swap produces. For input mint fees, this is the exact amount that will\nbe paid."
          },
          "feeBps": {
            "type": "integer",
            "format": "int32",
            "description": "Platform fee in basis points",
            "minimum": 0
          },
          "mode": {
            "$ref": "#/components/schemas/PlatformFeeMode",
            "description": "Mode for the platform fee"
          }
        }
      },
      "PlatformFeeMode": {
        "type": "string",
        "enum": [
          "outputMint",
          "inputMint"
        ]
      },
      "PositiveSlippageParams": {
        "type": "object",
        "required": [
          "limitPct"
        ],
        "properties": {
          "feeAccount": {
            "type": "string",
            "description": "Base58-encoded address of the token account that will receive the positive slippage fee.\nThis must be a token account for the output mint, regardless of the platform fee mode. If at\nswap execution time this account can't receive the positive slippage fee, then the positive\nslippage fee transfer is skipped. If the platform fee mode is `outputMint` and the platform\nfee account is specified, then this must be unspecified (in which case the platform fee\naccount will be used) or match the platform fee account. Otherwise, this must be specified."
          },
          "limitPct": {
            "type": "integer",
            "format": "int32",
            "description": "Limit on the positive slippage fee in percent. The positive slippage fee is limited to the\nlesser of (1) the excess actual out amount above the quoted amount and (2) this percentage\nof the actual out amount after platform fee.",
            "minimum": 0
          }
        }
      },
      "PrioritizationFeeLamports": {
        "oneOf": [
          {
            "type": "object",
            "description": "A multiplier applied to the automatically-determined fee. The total is capped at 0.005 SOL.",
            "required": [
              "autoMultiplier"
            ],
            "properties": {
              "autoMultiplier": {
                "type": "integer",
                "format": "int32",
                "description": "A multiplier applied to the automatically-determined fee. The total is capped at 0.005 SOL.",
                "minimum": 0
              }
            }
          },
          {
            "type": "object",
            "description": "A variable prioritization fee determined by the server based on the specified priority level",
            "required": [
              "priorityLevelWithMaxLamports"
            ],
            "properties": {
              "priorityLevelWithMaxLamports": {
                "type": "object",
                "description": "A variable prioritization fee determined by the server based on the specified priority level",
                "required": [
                  "priorityLevel",
                  "maxLamports"
                ],
                "properties": {
                  "maxLamports": {
                    "type": "integer",
                    "format": "int32",
                    "description": "Maximum lamports to cap the prioritization fee determined by the server",
                    "minimum": 0
                  },
                  "priorityLevel": {
                    "$ref": "#/components/schemas/PriorityLevel",
                    "description": "Priority level for the prioritization fee"
                  }
                }
              }
            }
          },
          {
            "type": "string",
            "description": "A variable prioritization fee determined by the server. The total is capped at 0.005 SOL.",
            "enum": [
              "auto"
            ]
          },
          {
            "type": "object",
            "description": "A fixed prioritization fee in lamports",
            "required": [
              "lamports"
            ],
            "properties": {
              "lamports": {
                "type": "integer",
                "format": "int32",
                "description": "A fixed prioritization fee in lamports",
                "minimum": 0
              }
            }
          },
          {
            "type": "string",
            "description": "Prioritization fee should be left unspecified",
            "enum": [
              "disabled"
            ]
          }
        ]
      },
      "PrioritizationType": {
        "oneOf": [
          {
            "type": "object",
            "description": "The compute unit price the prioritization fee was derived from, in micro-lamports per\ncompute unit. This reports the rate that was applied; the total the transaction pays is\n`prioritizationFeeLamports`. Under `transactionVersion` `v1` the fee is carried in the\nmessage header rather than in a compute budget instruction, but the rate reported here is\nunchanged.",
            "required": [
              "computeBudget"
            ],
            "properties": {
              "computeBudget": {
                "type": "object",
                "description": "The compute unit price the prioritization fee was derived from, in micro-lamports per\ncompute unit. This reports the rate that was applied; the total the transaction pays is\n`prioritizationFeeLamports`. Under `transactionVersion` `v1` the fee is carried in the\nmessage header rather than in a compute budget instruction, but the rate reported here is\nunchanged.",
                "required": [
                  "microLamports"
                ],
                "properties": {
                  "estimatedMicroLamports": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "format": "int64",
                    "description": "Compute unit price estimated by the server for the transaction. Present only when the\nfee was determined by the server from a priority level.",
                    "minimum": 0
                  },
                  "microLamports": {
                    "type": "integer",
                    "format": "int64",
                    "description": "Compute unit price assigned to the transaction",
                    "minimum": 0
                  }
                }
              }
            }
          }
        ]
      },
      "PriorityFeesResponse": {
        "type": "object",
        "description": "Global priority fee estimates (in micro-lamports per compute unit) for each priority level.",
        "required": [
          "mediumMicroLamports",
          "highMicroLamports",
          "veryHighMicroLamports"
        ],
        "properties": {
          "highMicroLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Estimated micro-lamports per compute unit for the high priority level",
            "minimum": 0
          },
          "mediumMicroLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Estimated micro-lamports per compute unit for the medium priority level",
            "minimum": 0
          },
          "veryHighMicroLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Estimated micro-lamports per compute unit for the very high priority level",
            "minimum": 0
          }
        }
      },
      "PriorityLevel": {
        "type": "string",
        "enum": [
          "medium",
          "high",
          "veryHigh"
        ]
      },
      "QuoteBadRequestCode": {
        "type": "string",
        "enum": [
          "requested_input_amount_is_zero",
          "invalid_input_mint",
          "invalid_output_mint",
          "same_input_and_output_mint",
          "invalid_slippage_bps",
          "invalid_platform_fee_bps",
          "invalid_dex",
          "invalid_max_route_length_for_jit_route",
          "cannot_exclude_jit_router_for_jit_route",
          "route_not_found",
          "use_order_endpoint_for_prediction_markets",
          "price_impact_too_high",
          "invalid_price_impact_tolerance_pct"
        ]
      },
      "QuoteBadRequestResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/QuoteBadRequestCode"
          },
          "contextSlot": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "minimum": 0
          },
          "msg": {
            "type": "string"
          },
          "routingSlot": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "minimum": 0
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "QuoteInternalServerErrorCode": {
        "type": "string",
        "enum": [
          "failed_to_compute_route"
        ]
      },
      "QuoteInternalServerErrorResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/QuoteInternalServerErrorCode"
          },
          "contextSlot": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "minimum": 0
          },
          "msg": {
            "type": "string"
          },
          "routingSlot": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int64",
            "minimum": 0
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "QuoteResponse": {
        "type": "object",
        "required": [
          "inputMint",
          "inAmount",
          "outputMint",
          "outAmount",
          "otherAmountThreshold",
          "minOutAmount",
          "slippageBps",
          "priceImpactPct",
          "routePlan",
          "contextSlot"
        ],
        "properties": {
          "contextSlot": {
            "type": "integer",
            "format": "int64",
            "description": "Slot at which the request was evaluated",
            "minimum": 0
          },
          "forJitoBundle": {
            "type": "boolean",
            "description": "True if and only if the request was for a Jito bundle"
          },
          "inAmount": {
            "type": "string",
            "description": "Maximum input amount as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "inputMint": {
            "type": "string",
            "description": "Base58-encoded input mint address"
          },
          "minOutAmount": {
            "type": "string",
            "description": "Same as `other_amount_threshold`"
          },
          "otherAmountThreshold": {
            "type": "string",
            "description": "Minimum output amount after all fees as a scaled integer. If the swap transaction doesn't\nproduce at least this amount of the output token, the transaction will fail."
          },
          "outAmount": {
            "type": "string",
            "description": "Expected output amount after all fees as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outTransferFee": {
            "type": "string",
            "description": "Transfer fee amount that was applied to the quote, if any"
          },
          "outputMint": {
            "type": "string",
            "description": "Base58-encoded output mint address"
          },
          "platformFee": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PlatformFee",
                "description": "Platform fee that was applied to the quote, if any"
              }
            ]
          },
          "priceImpactPct": {
            "type": "string",
            "description": "Price impact of the swap. This is an estimate of the percentage difference between the\nexpected price for the swap and the price for the same swap with the smallest input amount\npossible. For example, \"0.01\" means 1% price impact."
          },
          "requestId": {
            "type": "string",
            "description": "Identifier for the request"
          },
          "routePlan": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoutePlanLeg"
            },
            "description": "Route that the swap will take"
          },
          "routingSlot": {
            "type": "integer",
            "format": "int64",
            "description": "Slot of the market state used to compute the quote",
            "minimum": 0
          },
          "simulatedComputeUnits": {
            "type": "integer",
            "format": "int32",
            "description": "Compute units consumed by quote simulation",
            "minimum": 0
          },
          "skipPumpfunCashbackClaim": {
            "type": "boolean",
            "description": "True if and only if Pump.fun cashback claiming was skipped for this quote"
          },
          "slippageBps": {
            "type": "integer",
            "format": "int32",
            "description": "Max allowed slippage % in basis points",
            "minimum": 0
          }
        }
      },
      "QuoteServiceUnavailableCode": {
        "type": "string",
        "enum": [
          "amm_map_not_initialized",
          "amm_map_lagging"
        ]
      },
      "QuoteServiceUnavailableResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/QuoteServiceUnavailableCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "Revert": {
        "type": "object",
        "required": [
          "signature",
          "mint",
          "amount"
        ],
        "properties": {
          "amount": {
            "type": "string",
            "description": "Amount returned to the user, as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "mint": {
            "type": "string",
            "description": "Mint returned to the user"
          },
          "signature": {
            "type": "string",
            "description": "Base58-encoded signature of the revert transaction"
          }
        }
      },
      "RoutePlanLeg": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/DynamicRoutePlanLeg"
          },
          {
            "$ref": "#/components/schemas/SingleMarketRoutePlanLeg"
          }
        ]
      },
      "SingleMarketRoutePlanLeg": {
        "type": "object",
        "required": [
          "venue",
          "marketKey",
          "inputMint",
          "outputMint",
          "inAmount",
          "outAmount",
          "inputMintDecimals",
          "outputMintDecimals"
        ],
        "properties": {
          "inAmount": {
            "type": "string",
            "description": "Maximum input amount for the leg as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "inputMint": {
            "type": "string",
            "description": "Base58-encoded input mint address"
          },
          "inputMintDecimals": {
            "type": "integer",
            "format": "int32",
            "description": "Decimals for the input mint",
            "minimum": 0
          },
          "marketKey": {
            "type": "string",
            "description": "Key identifying the market on the venue"
          },
          "outAmount": {
            "type": "string",
            "description": "Expected output amount for the leg as a scaled integer. For example, 1 SOL is 1000000000."
          },
          "outputMint": {
            "type": "string",
            "description": "Base58-encoded output mint address"
          },
          "outputMintDecimals": {
            "type": "integer",
            "format": "int32",
            "description": "Decimals for the output mint",
            "minimum": 0
          },
          "venue": {
            "type": "string",
            "description": "Venue for the leg"
          }
        }
      },
      "SlippageTolerance": {
        "oneOf": [
          {
            "type": "integer",
            "format": "int32",
            "description": "Slippage tolerance specified in basis points",
            "minimum": 0
          },
          {
            "type": "string",
            "description": "Slippage tolerance will be determined by the server",
            "enum": [
              "auto"
            ]
          }
        ]
      },
      "SwapBadRequestCode": {
        "type": "string",
        "enum": [
          "invalid_out_amount",
          "invalid_user_public_key",
          "invalid_sponsor",
          "sponsored_swap_cannot_create_fee_account",
          "invalid_platform_fee_amount",
          "invalid_fee_account",
          "invalid_positive_slippage_fee_account",
          "invalid_referral_account",
          "invalid_destination_token_account",
          "invalid_destination_token_account_for_native_sol",
          "invalid_output_close_authority",
          "output_close_authority_with_native_sol_output",
          "output_close_authority_with_destination_token_account",
          "both_priority_fee_params_specified",
          "route_is_empty",
          "route_too_long",
          "invalid_route_plan_leg",
          "invalid_jito_sandwich_mitigation_account",
          "skip_pumpfun_cashback_claim_with_sponsor_executor"
        ]
      },
      "SwapBadRequestResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/SwapBadRequestCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "SwapInstructionsResponse": {
        "type": "object",
        "required": [
          "computeBudgetInstructions",
          "setupInstructions",
          "swapInstruction",
          "cleanupInstructions",
          "otherInstructions",
          "addressLookupTableAddresses",
          "transactionVersion",
          "prioritizationFeeLamports",
          "computeUnitLimit",
          "loadedAccountsDataSizeLimit",
          "blockhashWithMetadata"
        ],
        "properties": {
          "addressLookupTableAddresses": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The lookup table addresses.\n\nEmpty when `transactionVersion` is `v1`: that format has no address lookup tables and\ninlines every address."
          },
          "blockhashWithMetadata": {
            "$ref": "#/components/schemas/BlockhashWithMetadata",
            "description": "A blockhash that can be used to construct the transaction"
          },
          "cleanupInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstructionResponse"
            },
            "description": "Instructions that should be included after the swap instruction"
          },
          "computeBudgetInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstructionResponse"
            },
            "description": "Instructions that determine the compute budget and prioritization fee for the transaction.\n\nEmpty when `transactionVersion` is `v1`, which sets the compute budget in the message\nheader instead. Build that header from `computeUnitLimit`, `prioritizationFeeLamports` and\n`loadedAccountsDataSizeLimit` below."
          },
          "computeUnitLimit": {
            "type": "integer",
            "format": "int32",
            "description": "Compute unit limit assigned to the transaction",
            "minimum": 0
          },
          "loadedAccountsDataSizeLimit": {
            "type": "integer",
            "format": "int32",
            "description": "Maximum account data, in bytes, the transaction is permitted to load.\n\nSet this in the message header when building a `v1` transaction. Omitting it will cause the\ntransaction to fail. `v0` callers can ignore this field, since the same limit already\napplies by default.",
            "minimum": 0
          },
          "otherInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstructionResponse"
            },
            "description": "Other instructions that should be included in the transaction. The indices of these\ninstructions in the transaction are not important."
          },
          "prioritizationFeeLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Prioritization fee in lamports.\n\nUnder `v1` this is the total-lamports value to set in the message header, not a rate.",
            "minimum": 0
          },
          "prioritizationType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PrioritizationType",
                "description": "Prioritization fee type for the transaction"
              }
            ]
          },
          "setupInstructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InstructionResponse"
            },
            "description": "Instructions that should be included before the swap instruction"
          },
          "swapInstruction": {
            "$ref": "#/components/schemas/InstructionResponse",
            "description": "The instruction that performs the swap"
          },
          "transactionVersion": {
            "$ref": "#/components/schemas/TransactionVersion",
            "description": "The wire format these instructions are intended to be assembled into. Echoes the request's\n`transactionVersion` (or its `v0` default)."
          }
        }
      },
      "SwapInternalServerErrorCode": {
        "type": "string",
        "enum": [
          "failed_to_compute_swap"
        ]
      },
      "SwapInternalServerErrorResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/SwapInternalServerErrorCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "SwapRequest": {
        "type": "object",
        "required": [
          "userPublicKey",
          "quoteResponse"
        ],
        "properties": {
          "computeUnitPriceMicroLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Compute unit price in micro-lamports. Mutually exclusive with `prioritizationFeeLamports`.",
            "minimum": 0
          },
          "createFeeAccount": {
            "$ref": "#/components/schemas/CreateFeeAccountParams",
            "description": "If the fee account isn't a referral token account derived from the seeds\n`[\"referral_ata\", referral_account, mint]` and the Referral program ID\n`REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3`, this should be unspecified. If specified, the\ntransaction will create the `fee_account` if it doesn't already exist. The user pays for the\ncreation of the fee account. Ignored if `fee_account` is unspecified."
          },
          "destinationTokenAccount": {
            "$ref": "#/components/schemas/DestinationTokenAccountParam",
            "description": "The account that will receive the output token. If not specified, the user's associated\ntoken account for the output mint will be used. Allowed values are:\n- A base58-encoded address, which specifies the address of the destination token account or,\n  if the output is native SOL, the destination wallet. If the output isn't native SOL, the\n  specified account must exist before the swap executes, or else the swap will fail.\n- An object which specifies the owner of the destination token account. In this case, the\n  owner's associated token account for the output mint will be used as the destination token\n  account. Note that this cannot be used if the output is native SOL. The object contains\n  the following:\n    - `associatedTokenAccount` - object\n        - `owner` - base58-encoded address of the owner of the destination token account"
          },
          "dynamicComputeUnitLimit": {
            "type": "boolean",
            "description": "If true, the server will simulate the transaction to determine its compute unit limit. If\nunspecified or false, the transaction will use the default compute unit limit."
          },
          "feeAccount": {
            "type": "string",
            "description": "Base58-encoded address of the token account that will receive the platform fee if a platform\nfee applies to the swap. If specified, this account's mint must match the fee mint for the\nswap."
          },
          "includeJitoSandwichMitigationAccount": {
            "$ref": "#/components/schemas/IncludeJitoSandwichMitigationAccount",
            "description": "If specified, the transaction will include a Jito sandwich mitigation account in the swap\ninstruction. Allowed values are:\n- `true` - uses the default Jito sandwich mitigation account\n- `false` - does not include the account\n- A base58-encoded account address - uses the specified account\n\nIf unspecified, the account is not included.\nSee https://docs.jito.wtf/lowlatencytxnsend/#sandwich-mitigation for more details."
          },
          "outputCloseAuthority": {
            "type": "string",
            "description": "Base58-encoded address of the close authority to assign to the output token account. If\nspecified, the swap instruction will idempotently initialize the output token account and\nset its close authority to the specified address. The action is a no-op if the output\ntoken account already exists at execution time.\n\nCannot be used when the output mint is SOL (wrapped or native). Cannot be used with\n`destinationTokenAccount`."
          },
          "perLegSlippage": {
            "type": "boolean",
            "description": "If true or unspecified, per-leg slippage checks are enabled. If false, per-leg slippage\nchecks are disabled."
          },
          "positiveSlippage": {
            "$ref": "#/components/schemas/PositiveSlippageParams",
            "description": "Positive slippage fee parameters. If specified, then the swap will pay some or all positive\nslippage to the specified account."
          },
          "prioritizationFeeLamports": {
            "$ref": "#/components/schemas/PrioritizationFeeLamports",
            "description": "Prioritization fee in lamports. Mutually exclusive with `computeUnitPriceMicroLamports`.\nIf both `computeUnitPriceMicroLamports` and `prioritizationFeeLamports` are unspecified, the\ndefault of `prioritizationFeeLamports=\"auto\"` will be used.\nAllowed values are:\n- a u32 which specifies the lamports\n- the string value \"auto\", where the server determines the fee automatically, capped at\n  0.005 SOL\n- the string value \"disabled\", where the server leaves the prioritization fee unspecified\n- an object containing the following\n    - `priorityLevelWithMaxLamports` - object\n        - `priorityLevel` - string, either `medium`, `high`, or `veryHigh`\n        - `maxLamports` - integer, a cap on the prioritization fee\n- an object containing the following\n    - `autoMultiplier` - a u32 which specifies how much to multiply the automatically\n      determined fee by. The total prioritization fee will be capped at 0.005 SOL."
          },
          "quoteResponse": {
            "$ref": "#/components/schemas/QuoteResponse",
            "description": "The response from the quote endpoint"
          },
          "sponsor": {
            "type": "string",
            "description": "Base58-encoded address of the sponsor's wallet. If specified, the sponsor will pay the\ntransaction fee and for token account creation, and both the user and the sponsor must sign\nthe swap transaction. This can be used to implement gasless swaps."
          },
          "sponsorExec": {
            "type": "boolean",
            "description": "If true, the sponsor will be the executor of the swap for sponsored swaps. If false, the\nuser will be the executor of the swap for sponsored swaps. Default is true."
          },
          "transactionVersion": {
            "$ref": "#/components/schemas/TransactionVersion",
            "description": "Wire format of the returned transaction. Default is `v0`. See the `transactionVersion`\nparameter on the order endpoint for the trade-offs; in particular, `v1` has no address\nlookup tables, so it should be requested on the corresponding quote as well, or the quoted\nroute may not fit."
          },
          "userPublicKey": {
            "type": "string",
            "description": "Base58-encoded address of the swapper's wallet"
          },
          "wrapAndUnwrapSol": {
            "type": "boolean",
            "description": "If false, the transaction will use wrapped SOL"
          }
        }
      },
      "SwapResponse": {
        "type": "object",
        "required": [
          "swapTransaction",
          "lastValidBlockHeight",
          "transactionVersion",
          "prioritizationFeeLamports",
          "computeUnitLimit"
        ],
        "properties": {
          "computeUnitLimit": {
            "type": "integer",
            "format": "int32",
            "description": "Compute unit limit assigned to the transaction",
            "minimum": 0
          },
          "lastValidBlockHeight": {
            "type": "integer",
            "format": "int64",
            "description": "The last block height at which the transaction is valid",
            "minimum": 0
          },
          "prioritizationFeeLamports": {
            "type": "integer",
            "format": "int64",
            "description": "Prioritization fee in lamports",
            "minimum": 0
          },
          "prioritizationType": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PrioritizationType",
                "description": "Prioritization fee type for the transaction"
              }
            ]
          },
          "swapTransaction": {
            "type": "string",
            "description": "Base64-encoded swap transaction. The user must sign before sending it to Solana.\n\n`v0` and `v1` use different binary encodings. A `v0` deserializer, such as\n`VersionedTransaction.deserialize` in `@solana/web3.js`, will not read a `v1` transaction;\ncheck `transactionVersion` below to select the right one."
          },
          "transactionVersion": {
            "$ref": "#/components/schemas/TransactionVersion",
            "description": "The wire format `swapTransaction` was built in, echoing the request's `transactionVersion`\nor its `v0` default."
          }
        }
      },
      "TimeoutCode": {
        "type": "string",
        "enum": [
          "request_timed_out"
        ]
      },
      "TimeoutResponse": {
        "type": "object",
        "description": "Shared `504 Gateway Timeout` body for the per-endpoint request deadlines\n(`[request_timeouts]`). Both `/quote` and `/order` return this shape when\ntheir timeout elapses.",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/TimeoutCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "TokensServiceUnavailableCode": {
        "type": "string",
        "enum": [
          "mint_info_not_initialized"
        ]
      },
      "TokensServiceUnavailableResponse": {
        "type": "object",
        "required": [
          "msg",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/TokensServiceUnavailableCode"
          },
          "msg": {
            "type": "string"
          }
        },
        "example": {
          "code": "<enum<string>>",
          "msg": "<string>"
        }
      },
      "TokensWithDecimalsDoc": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {},
          "prefixItems": [
            {
              "type": "string"
            },
            {
              "type": "integer"
            }
          ],
          "maxItems": 2,
          "minItems": 2
        },
        "examples": [
          [
            [
              "So11111111111111111111111111111111111111112",
              9
            ],
            [
              "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
              6
            ]
          ]
        ]
      },
      "TransactionVersion": {
        "type": "string",
        "description": "Wire format of the transaction returned to the client.",
        "default": "v0",
        "enum": [
          "v0",
          "v1"
        ],
        "example": "v0"
      },
      "Vec": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "API key for authentication. Apply for one at https://pond.dflow.net/get-started/api-key"
      }
    }
  },
  "security": [
    {
      "api_key": []
    }
  ],
  "tags": [
    {
      "name": "order",
      "description": "Order API endpoints"
    },
    {
      "name": "swap",
      "description": "Swap API endpoints"
    },
    {
      "name": "prediction_market",
      "description": "Prediction market endpoints"
    },
    {
      "name": "venues",
      "description": "Venue endpoints"
    },
    {
      "name": "tokens",
      "description": "Token endpoints"
    },
    {
      "name": "equities",
      "description": "Tokenized equity endpoints"
    }
  ]
}
