{
  "openapi": "3.1.0",
  "info": {
    "title": "PAX Markets REST API",
    "version": "1",
    "description": "All PAX Markets REST APIs in one document. Endpoints are authenticated with an API key: send api-access-key, api-timestamp, and api-signature on each request. Public endpoints (security: []) take no key."
  },
  "servers": [
    {
      "url": "https://api.pax.markets",
      "description": "Production API"
    }
  ],
  "tags": [
    {
      "name": "OrderService"
    },
    {
      "name": "AccountService"
    },
    {
      "name": "MetadataService"
    },
    {
      "name": "MoneyService"
    },
    {
      "name": "CompatibilityOrderService"
    }
  ],
  "paths": {
    "/v1/order/submit": {
      "post": {
        "tags": [
          "OrderService"
        ],
        "summary": "Submit order",
        "description": "Place a limit order.",
        "operationId": "OrderService_SubmitOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxorder_apiSubmitOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiSubmitOrderResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/active": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get active orders",
        "description": "List the account's open orders, whether pending or resting.",
        "operationId": "OrderService_GetActiveOrders",
        "parameters": [
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only orders on this market. Omit for every market.",
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetActiveOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/{order_id}": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get order",
        "description": "Fetch one order by order_id.",
        "operationId": "OrderService_GetOrder",
        "parameters": [
          {
            "in": "path",
            "name": "order_id",
            "description": "Id of the order to fetch.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetOrderResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/list": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get orders",
        "description": "List the account's orders, newest first, optionally narrowed to one market and one status.",
        "operationId": "OrderService_GetOrders",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum orders to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "order_status",
            "description": "Return only orders in this status.",
            "schema": {
              "$ref": "#/components/schemas/paxcommonOrderStatus"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only orders on this market. Omit for every market.",
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/cancel-liquidity": {
      "post": {
        "tags": [
          "OrderService"
        ],
        "summary": "Cancel liquidity order",
        "description": "Cancel a quantity of the account's resting liquidity at one price level.",
        "operationId": "OrderService_CancelLiquidityOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxorder_apiCancelLiquidityOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiCancelLiquidityOrderResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/cancel-all": {
      "post": {
        "tags": [
          "OrderService"
        ],
        "summary": "Cancel all orders",
        "description": "Cancel every resting order for the account, optionally limited to one market.",
        "operationId": "OrderService_CancelAllOrders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxorder_apiCancelAllOrdersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiCancelAllOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/status-updates": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get order status updates",
        "description": "Read the full status update history of one order. Updates can take up to 15 minutes to appear here.",
        "operationId": "OrderService_GetOrderStatusUpdates",
        "parameters": [
          {
            "in": "query",
            "name": "order_id",
            "description": "Order whose history to read.",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetOrderStatusUpdatesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/status-updates/fills/recent": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get recent fill order status updates",
        "description": "Read the account's most recent fills, newest first. A fill is a status update where the order traded. Covers the last 10,000 fills per account.",
        "operationId": "OrderService_GetRecentFillOrderStatusUpdates",
        "parameters": [
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only updates for orders on this market.",
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit to start at the newest update.",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetRecentFillOrderStatusUpdatesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/status-updates/fills/since": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get fill order status updates since",
        "description": "Read the account's fills from a point in time onward, oldest first. A fill is a status update where the order traded. Covers the last 10,000 fills per account.",
        "operationId": "OrderService_GetFillOrderStatusUpdatesSince",
        "parameters": [
          {
            "in": "query",
            "name": "since_time_ms",
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only updates for orders on this market.",
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit to start at since_time_ms.",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetFillOrderStatusUpdatesSinceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/status-updates/by-time": {
      "get": {
        "tags": [
          "OrderService"
        ],
        "summary": "Get order status updates by time",
        "description": "Fetch order status updates in a time range of up to 7 days, ordered oldest to newest. Updates appear up to 30 minutes after they happen.",
        "operationId": "OrderService_GetOrderStatusUpdatesByTime",
        "parameters": [
          {
            "in": "query",
            "name": "start_time_ms",
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "end_time_ms",
            "description": "Return updates before this time, in Unix milliseconds. At most 7 days after start_time_ms.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only updates for orders on this market.",
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 10000. Defaults to 10000.",
            "schema": {
              "type": "integer",
              "format": "int32"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor, with the same time range and market_id.",
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiGetOrderStatusUpdatesByTimeResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/order/submit-batch-omni": {
      "post": {
        "tags": [
          "OrderService"
        ],
        "summary": "Batch submit omni orders",
        "description": "Place orders and cancel liquidity in one request.",
        "operationId": "OrderService_BatchSubmitOmniOrders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxorder_apiBatchSubmitOmniOrdersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxorder_apiBatchSubmitOmniOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/lambda/submit": {
      "post": {
        "tags": [
          "lambda"
        ],
        "summary": "Submit a lambda program",
        "description": "Arm a lambda program. Requires a LAMBDA account.",
        "operationId": "LambdaService_SubmitLambda",
        "requestBody": {
          "description": "Submit a lambda program.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubmitLambda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitLambdaResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/lambda/cancel": {
      "post": {
        "tags": [
          "lambda"
        ],
        "summary": "Cancel a lambda program",
        "description": "Cancel a lambda program, named by its exchange-assigned id or its client-assigned id, releasing its untriggered quantity.",
        "operationId": "LambdaService_CancelLambda",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelLambda"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelLambdaResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/lambda/list": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "List lambda programs",
        "description": "List the account's lambda programs, newest first, optionally narrowed to one market and one status.",
        "operationId": "LambdaService_GetLambdas",
        "parameters": [
          {
            "in": "query",
            "name": "status",
            "description": "Return only lambda programs in this status.",
            "schema": {
              "description": "Return only lambda programs in this status.",
              "$ref": "#/components/schemas/LambdaStatus"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only lambda programs on this market. Omit for every market.",
            "schema": {
              "description": "Return only lambda programs on this market. Omit for every market.",
              "type": "integer",
              "format": "uint64",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum lambda programs to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "description": "Maximum lambda programs to return, from 1 to 1000. Defaults to 1000.",
              "type": "integer",
              "format": "uint32",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "schema": {
              "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LambdaPage"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/{lambda_id}": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "Get a lambda program",
        "description": "Fetch one lambda program by lambda_id.",
        "operationId": "LambdaService_GetLambda",
        "parameters": [
          {
            "in": "path",
            "name": "lambda_id",
            "description": "Exchange-assigned id of the lambda program to fetch.",
            "required": true,
            "schema": {
              "description": "Exchange-assigned id of the lambda program to fetch.",
              "type": "string",
              "format": "uuid"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Lambda"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/active": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "List active lambda programs",
        "description": "List the account's lambda programs currently in force. The user-data WebSocket's snapshot carries the same list.",
        "operationId": "LambdaService_GetActiveLambdas",
        "parameters": [
          {
            "in": "query",
            "name": "market_id",
            "description": "Return only lambda programs on this market. Omit for every market.",
            "schema": {
              "description": "Return only lambda programs on this market. Omit for every market.",
              "type": "integer",
              "format": "uint64",
              "minimum": 0
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveLambdas"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/pending-cancels": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "List pending lambda cancels",
        "description": "List the account's lambda cancels that are not yet confirmed.",
        "operationId": "LambdaService_GetPendingLambdaCancels",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PendingLambdaCancels"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/status-updates": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "Get a lambda program's status updates",
        "description": "Read the full status update history of one lambda program. Updates can take up to 15 minutes to appear here.",
        "operationId": "LambdaService_GetLambdaStatusUpdates",
        "parameters": [
          {
            "in": "query",
            "name": "lambda_id",
            "description": "Exchange-assigned id of the lambda program whose history to read.",
            "required": true,
            "schema": {
              "description": "Exchange-assigned id of the lambda program whose history to read.",
              "type": "string",
              "format": "uuid"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
              "type": "integer",
              "format": "uint32",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "schema": {
              "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LambdaStatusUpdatePage"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/status-updates/recent": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "Get recent lambda status updates",
        "description": "Read the account's most recent lambda status updates, newest first. Covers the last 10,000 updates per account.",
        "operationId": "LambdaService_GetRecentLambdaStatusUpdates",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
              "type": "integer",
              "format": "uint32",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit to start at the newest update.",
            "schema": {
              "description": "Cursor from the previous response's next_cursor. Omit to start at the newest update.",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LambdaStatusUpdatePage"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/status-updates/since": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "Get lambda status updates since a time",
        "description": "Read the account's lambda status updates from a point in time onward, oldest first. Covers the last 10,000 updates per account.",
        "operationId": "LambdaService_GetLambdaStatusUpdatesSince",
        "parameters": [
          {
            "in": "query",
            "name": "since_time_ms",
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "required": true,
            "schema": {
              "description": "Return updates at or after this time, in Unix milliseconds.",
              "type": "integer",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "schema": {
              "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
              "type": "integer",
              "format": "uint32",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor. Omit to start at since_time_ms.",
            "schema": {
              "description": "Cursor from the previous response's next_cursor. Omit to start at since_time_ms.",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LambdaStatusUpdatePage"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/lambda/status-updates/by-time": {
      "get": {
        "tags": [
          "lambda"
        ],
        "summary": "Get lambda status updates by time",
        "description": "Fetch lambda status updates in a time range of up to 7 days, oldest first. Updates appear up to 30 minutes after they happen.",
        "operationId": "LambdaService_GetLambdaStatusUpdatesByTime",
        "parameters": [
          {
            "in": "query",
            "name": "start_time_ms",
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "required": true,
            "schema": {
              "description": "Return updates at or after this time, in Unix milliseconds.",
              "type": "integer",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "end_time_ms",
            "description": "Return updates before this time, in Unix milliseconds. At most 7 days after start_time_ms.",
            "required": true,
            "schema": {
              "description": "Return updates before this time, in Unix milliseconds. At most 7 days after start_time_ms.",
              "type": "integer",
              "format": "int64"
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "limit",
            "description": "Maximum updates to return, from 1 to 10000. Defaults to 10000.",
            "schema": {
              "description": "Maximum updates to return, from 1 to 10000. Defaults to 10000.",
              "type": "integer",
              "format": "uint32",
              "minimum": 0
            },
            "style": "form"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor from the previous response's next_cursor, with the same time range.",
            "schema": {
              "description": "Cursor from the previous response's next_cursor, with the same time range.",
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LambdaStatusUpdatePage"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/account/get-balance": {
      "get": {
        "tags": [
          "AccountService"
        ],
        "summary": "Get balance",
        "operationId": "AccountService_GetBalance",
        "parameters": [
          {
            "in": "query",
            "name": "asset",
            "schema": {
              "$ref": "#/components/schemas/paxcommonAsset"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiGetBalanceResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/account/get-balances-for-market/{market_id}": {
      "get": {
        "tags": [
          "AccountService"
        ],
        "summary": "Get balances for market",
        "operationId": "AccountService_GetBalancesForMarket",
        "parameters": [
          {
            "in": "path",
            "name": "market_id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uint64"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiGetBalancesForMarketResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/account/status": {
      "get": {
        "tags": [
          "AccountService"
        ],
        "summary": "Get account status",
        "operationId": "AccountService_GetAccountStatus",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiGetAccountStatusResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/account/revoke-api-key": {
      "post": {
        "tags": [
          "AccountService"
        ],
        "summary": "Revoke api key",
        "operationId": "AccountService_RevokeApiKey",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxaccount_apiRevokeApiKeyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiRevokeApiKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "withdraw"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/account/api-keys": {
      "get": {
        "tags": [
          "AccountService"
        ],
        "summary": "List api keys",
        "operationId": "AccountService_ListApiKeys",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiListApiKeysResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/account/list-accounts": {
      "get": {
        "tags": [
          "AccountService"
        ],
        "summary": "List accounts",
        "operationId": "AccountService_ListAccounts",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxaccount_apiListAccountsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/metadata/exchange-info": {
      "get": {
        "tags": [
          "MetadataService"
        ],
        "summary": "Get exchange info",
        "description": "List the exchange's markets, assets and fee rates.",
        "operationId": "MetadataService_GetExchangeInfo",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmetadata_apiGetExchangeInfoResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": []
      }
    },
    "/v1/money/assets/{asset}/chains": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get supported chains for asset",
        "operationId": "MoneyService_GetSupportedChainsForAsset",
        "parameters": [
          {
            "in": "path",
            "name": "asset",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/paxcommonAsset"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetSupportedChainsForAssetResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/deposit-addresses": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get deposit addresses",
        "operationId": "MoneyService_GetDepositAddresses",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetDepositAddressesResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/deposit-addresses/{asset}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get deposit address",
        "operationId": "MoneyService_GetDepositAddress",
        "parameters": [
          {
            "in": "path",
            "name": "asset",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/paxcommonAsset"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetDepositAddressResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-deposits": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get crypto deposits",
        "operationId": "MoneyService_GetCryptoDeposits",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetCryptoDepositsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-deposits/attributes": {
      "post": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Attribute crypto deposit",
        "operationId": "MoneyService_AttributeCryptoDeposit",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxmoneyAttributeCryptoDepositRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyAttributeCryptoDepositResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/fiat-deposit-instructions": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get fiat deposit instructions",
        "operationId": "MoneyService_GetFiatDepositInstructions",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetFiatDepositInstructionsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/fiat-deposits": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get fiat deposits",
        "operationId": "MoneyService_GetFiatDeposits",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetFiatDepositsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/withdraw-wallets": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get withdraw wallets",
        "operationId": "MoneyService_GetWithdrawWallets",
        "parameters": [
          {
            "in": "query",
            "name": "include_archived",
            "schema": {
              "type": "boolean"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetWithdrawWalletsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/withdraw-wallets/{withdraw_wallet_id}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get withdraw wallet",
        "operationId": "MoneyService_GetWithdrawWallet",
        "parameters": [
          {
            "in": "path",
            "name": "withdraw_wallet_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetWithdrawWalletResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      },
      "delete": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Archive withdraw wallet",
        "operationId": "MoneyService_ArchiveWithdrawWallet",
        "parameters": [
          {
            "in": "path",
            "name": "withdraw_wallet_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyArchiveWithdrawWalletResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "withdraw"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/withdraw-wallets-by-address/{wallet_address}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get withdraw wallet by address",
        "operationId": "MoneyService_GetWithdrawWalletByAddress",
        "parameters": [
          {
            "in": "path",
            "name": "wallet_address",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          },
          {
            "in": "query",
            "name": "chain",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetWithdrawWalletByAddressResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-withdrawals": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get crypto withdrawals",
        "operationId": "MoneyService_GetCryptoWithdrawals",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetCryptoWithdrawalsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      },
      "post": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Submit crypto withdrawal",
        "operationId": "MoneyService_SubmitCryptoWithdrawal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxmoneySubmitCryptoWithdrawalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneySubmitCryptoWithdrawalResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "withdraw"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-withdrawals/{withdrawal_id}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get crypto withdrawal",
        "operationId": "MoneyService_GetCryptoWithdrawal",
        "parameters": [
          {
            "in": "path",
            "name": "withdrawal_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetCryptoWithdrawalResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-withdrawals-by-idempotency-key/{idempotency_key}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get crypto withdrawal by idempotency key",
        "operationId": "MoneyService_GetCryptoWithdrawalByIdempotencyKey",
        "parameters": [
          {
            "in": "path",
            "name": "idempotency_key",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetCryptoWithdrawalByIdempotencyKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/withdraw-bank-accounts": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get withdraw bank accounts",
        "operationId": "MoneyService_GetWithdrawBankAccounts",
        "parameters": [
          {
            "in": "query",
            "name": "include_archived",
            "schema": {
              "type": "boolean"
            },
            "style": "form"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetWithdrawBankAccountsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/withdraw-bank-accounts/{withdraw_bank_account_id}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get withdraw bank account",
        "operationId": "MoneyService_GetWithdrawBankAccount",
        "parameters": [
          {
            "in": "path",
            "name": "withdraw_bank_account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetWithdrawBankAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      },
      "delete": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Archive withdraw bank account",
        "operationId": "MoneyService_ArchiveWithdrawBankAccount",
        "parameters": [
          {
            "in": "path",
            "name": "withdraw_bank_account_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyArchiveWithdrawBankAccountResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "withdraw"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/fiat-withdrawals": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get fiat withdrawals",
        "operationId": "MoneyService_GetFiatWithdrawals",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetFiatWithdrawalsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      },
      "post": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Submit fiat withdrawal",
        "operationId": "MoneyService_SubmitFiatWithdrawal",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxmoneySubmitFiatWithdrawalRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneySubmitFiatWithdrawalResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "withdraw"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/fiat-withdrawals/{withdrawal_id}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get fiat withdrawal",
        "operationId": "MoneyService_GetFiatWithdrawal",
        "parameters": [
          {
            "in": "path",
            "name": "withdrawal_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetFiatWithdrawalResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/fiat-withdrawals-by-idempotency-key/{idempotency_key}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get fiat withdrawal by idempotency key",
        "operationId": "MoneyService_GetFiatWithdrawalByIdempotencyKey",
        "parameters": [
          {
            "in": "path",
            "name": "idempotency_key",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetFiatWithdrawalByIdempotencyKeyResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/crypto-transfers": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get crypto transfers",
        "operationId": "MoneyService_GetCryptoTransfers",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetCryptoTransfersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/conversion-quotes": {
      "post": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Create conversion quote",
        "operationId": "MoneyService_CreateConversionQuote",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxmoneyCreateConversionQuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyCreateConversionQuoteResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/conversions": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get conversions",
        "operationId": "MoneyService_GetConversions",
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetConversionsResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      },
      "post": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Submit conversion",
        "operationId": "MoneyService_SubmitConversion",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxmoneySubmitConversionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneySubmitConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/money/conversions/{conversion_id}": {
      "get": {
        "tags": [
          "MoneyService"
        ],
        "summary": "Get conversion",
        "operationId": "MoneyService_GetConversion",
        "parameters": [
          {
            "in": "path",
            "name": "conversion_id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "style": "simple"
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxmoneyGetConversionResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/compatibility/order/cancel": {
      "post": {
        "tags": [
          "CompatibilityOrderService"
        ],
        "summary": "Cancel order",
        "description": "Cancel the named order's unfilled quantity at its side and price level. This is a liquidity cancel, so the quantity may come off any of the account's orders at that level.",
        "operationId": "CompatibilityOrderService_CancelOrder",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxcompatibility_apiCancelOrderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxcompatibility_apiCancelOrderResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/compatibility/order/submit-batch": {
      "post": {
        "tags": [
          "CompatibilityOrderService"
        ],
        "summary": "Batch submit orders",
        "description": "Place several orders in one request.",
        "operationId": "CompatibilityOrderService_BatchSubmitOrders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxcompatibility_apiBatchSubmitOrdersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxcompatibility_apiBatchSubmitOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    },
    "/v1/compatibility/order/cancel-batch": {
      "post": {
        "tags": [
          "CompatibilityOrderService"
        ],
        "summary": "Batch cancel orders",
        "description": "Run several CancelOrder liquidity cancels in one request.",
        "operationId": "CompatibilityOrderService_BatchCancelOrders",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/paxcompatibility_apiBatchCancelOrdersRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "A successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/paxcompatibility_apiBatchCancelOrdersResponse"
                }
              }
            }
          },
          "default": {
            "description": "An error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LegacyErrorResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "ApiAccessKey": [
              "trade"
            ],
            "ApiTimestamp": [],
            "ApiSignature": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "LegacyErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "description": "Why the request failed. Requests stopped before reaching the endpoint, for example by authentication, send an object with a code and a message; errors from the endpoint itself send a string.",
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "message"
                ]
              }
            ]
          }
        },
        "required": [
          "error"
        ]
      },
      "paxcommonSide": {
        "description": "Side of an order.\n\n- `ASK`: Sell the base asset.\n- `BID`: Buy the base asset.",
        "x-enum-numbers": [
          1,
          2
        ],
        "x-enum-descriptions": {
          "ASK": "Sell the base asset.",
          "BID": "Buy the base asset."
        },
        "type": "string",
        "enum": [
          "ASK",
          "BID"
        ]
      },
      "paxcommonTimeInForce": {
        "description": "Time in force.\n\n- `IOC`: Immediate or cancel.\n- `GTC`: Good until canceled.\n- `ALO`: Add liquidity only: rests if it would not cross, else canceled.",
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "x-enum-descriptions": {
          "ALO": "Add liquidity only: rests if it would not cross, else canceled.",
          "GTC": "Good until canceled.",
          "IOC": "Immediate or cancel."
        },
        "type": "string",
        "enum": [
          "IOC",
          "GTC",
          "ALO"
        ]
      },
      "paxclientOrder": {
        "type": "object",
        "properties": {
          "side": {
            "description": "Side to place on.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonSide"
              }
            ]
          },
          "market_id": {
            "description": "Market to place on.",
            "type": "string",
            "format": "uint64"
          },
          "qty": {
            "description": "Quantity to place, a multiple of the market's step size. Must be positive except on a cancel lambda.",
            "type": "string",
            "format": "int64"
          },
          "ticks": {
            "description": "Limit price in ticks, from 1 to the market's max_ticks.",
            "type": "integer",
            "format": "int32"
          },
          "tif": {
            "description": "How long the order stays live.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonTimeInForce"
              }
            ]
          },
          "is_leverage": {
            "description": "Trade on margin. Currently disabled.",
            "type": "boolean"
          }
        },
        "required": [
          "side",
          "market_id",
          "qty",
          "ticks",
          "tif",
          "is_leverage"
        ]
      },
      "paxorder_apiSubmitOrderRequest": {
        "type": "object",
        "properties": {
          "order": {
            "description": "The order to place.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxclientOrder"
              }
            ]
          },
          "client_order_id": {
            "description": "Client-assigned id, at most 36 bytes. Omit or leave empty for none. Rejected if it matches another of the account's live orders.",
            "type": "string"
          }
        },
        "required": [
          "order"
        ]
      },
      "paxorder_apiSubmitOrderResponse": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned order id.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxorder_apiGetActiveOrdersRequest": {
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Return only orders on this market. Omit for every market.",
            "type": "string",
            "format": "uint64"
          }
        }
      },
      "paxcommonOrigin": {
        "description": "What placed an order.\n\n- `EXOGENOUS`: Placed directly through the API.\n- `LAMBDA`: Placed by a lambda program.\n- `ADMIN`: System-initiated, such as cancels ahead of maintenance or shutdown.",
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "x-enum-descriptions": {
          "ADMIN": "System-initiated, such as cancels ahead of maintenance or shutdown.",
          "EXOGENOUS": "Placed directly through the API.",
          "LAMBDA": "Placed by a lambda program."
        },
        "type": "string",
        "enum": [
          "EXOGENOUS",
          "LAMBDA",
          "ADMIN"
        ]
      },
      "paxudUDOrder": {
        "type": "object",
        "properties": {
          "side": {
            "description": "Side the order was placed on.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonSide"
              }
            ]
          },
          "market_id": {
            "description": "Market the order was placed on.",
            "type": "string",
            "format": "uint64"
          },
          "qty": {
            "description": "Quantity submitted. Negative for a cancel order.",
            "type": "string",
            "format": "int64"
          },
          "ticks": {
            "description": "Limit price in ticks.",
            "type": "integer",
            "format": "int32"
          },
          "tif": {
            "description": "Time in force the order was placed with.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonTimeInForce"
              }
            ]
          },
          "origin": {
            "description": "What placed the order.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrigin"
              }
            ]
          },
          "lambda_id": {
            "description": "Exchange-assigned id of the lambda program that placed the order. Empty unless origin is LAMBDA.",
            "type": "string"
          }
        },
        "required": [
          "side",
          "market_id",
          "qty",
          "ticks",
          "tif",
          "origin",
          "lambda_id"
        ]
      },
      "paxudUDOrderEntry": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned order id.",
            "type": "string"
          },
          "client_order_id": {
            "description": "The order's client_order_id. Empty if none was sent.",
            "type": "string"
          },
          "order": {
            "description": "The order as placed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxudUDOrder"
              }
            ]
          },
          "qty_filled_make": {
            "description": "Quantity filled as maker so far.",
            "type": "string",
            "format": "int64"
          },
          "qty_filled_take": {
            "description": "Quantity filled as taker so far.",
            "type": "string",
            "format": "int64"
          },
          "qty_canceled": {
            "description": "Quantity canceled so far.",
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "order_id",
          "client_order_id",
          "order",
          "qty_filled_make",
          "qty_filled_take",
          "qty_canceled"
        ]
      },
      "paxorder_apiGetActiveOrdersResponse": {
        "type": "object",
        "properties": {
          "orders": {
            "description": "List of the account's open orders.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxudUDOrderEntry"
            }
          }
        }
      },
      "paxorder_apiGetOrderRequest": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Id of the order to fetch.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxcommonOrderStatus": {
        "description": "Status of an order.\n\n- `ORDER_STATUS_PENDING`: Accepted, not yet acknowledged by the matching engine.\n- `ORDER_STATUS_RESTING`: On the book with quantity left to fill.\n- `ORDER_STATUS_FILLED`: Fully filled.\n- `ORDER_STATUS_CANCELED`: Canceled with nothing filled.\n- `ORDER_STATUS_PARTIAL`: Partly filled, with the rest canceled.\n- `ORDER_STATUS_REJECTED`: Rejected.",
        "x-enum-numbers": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "x-enum-descriptions": {
          "ORDER_STATUS_CANCELED": "Canceled with nothing filled.",
          "ORDER_STATUS_FILLED": "Fully filled.",
          "ORDER_STATUS_PARTIAL": "Partly filled, with the rest canceled.",
          "ORDER_STATUS_PENDING": "Accepted, not yet acknowledged by the matching engine.",
          "ORDER_STATUS_REJECTED": "Rejected.",
          "ORDER_STATUS_RESTING": "On the book with quantity left to fill."
        },
        "type": "string",
        "enum": [
          "ORDER_STATUS_PENDING",
          "ORDER_STATUS_RESTING",
          "ORDER_STATUS_FILLED",
          "ORDER_STATUS_CANCELED",
          "ORDER_STATUS_PARTIAL",
          "ORDER_STATUS_REJECTED"
        ]
      },
      "paxorder_apiGetOrderResponse": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned order id.",
            "type": "string"
          },
          "market_id": {
            "description": "Market the order was placed on.",
            "type": "string",
            "format": "uint64"
          },
          "side": {
            "description": "Side the order was placed on.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonSide"
              }
            ]
          },
          "qty": {
            "description": "Quantity submitted. Negative for a cancel order.",
            "type": "string",
            "format": "int64"
          },
          "ticks": {
            "description": "Limit price in ticks.",
            "type": "integer",
            "format": "int32"
          },
          "tif": {
            "description": "Time in force the order was placed with.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonTimeInForce"
              }
            ]
          },
          "order_status": {
            "description": "Current status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatus"
              }
            ]
          },
          "origin": {
            "description": "What placed the order.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrigin"
              }
            ]
          },
          "qty_filled_make": {
            "description": "Quantity filled as maker.",
            "type": "string",
            "format": "int64"
          },
          "qty_filled_take": {
            "description": "Quantity filled as taker.",
            "type": "string",
            "format": "int64"
          },
          "qty_canceled": {
            "description": "Quantity canceled.",
            "type": "string",
            "format": "int64"
          },
          "fill_value": {
            "description": "Total value filled, in the quote asset's native units.",
            "type": "string",
            "format": "int64"
          },
          "client_order_id": {
            "description": "Client-assigned id from the submit request. Empty if none was sent.",
            "type": "string"
          },
          "created_time_ms": {
            "description": "When the order was accepted, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "description": "When the order last changed, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "lambda_id": {
            "description": "Exchange-assigned id of the lambda program that placed the order. Empty unless origin is LAMBDA.",
            "type": "string"
          }
        },
        "required": [
          "order_id",
          "market_id",
          "side",
          "qty",
          "ticks",
          "tif",
          "order_status",
          "origin",
          "qty_filled_make",
          "qty_filled_take",
          "qty_canceled",
          "fill_value",
          "client_order_id",
          "created_time_ms",
          "updated_time_ms",
          "lambda_id"
        ]
      },
      "paxorder_apiGetOrdersRequest": {
        "type": "object",
        "properties": {
          "limit": {
            "description": "Maximum orders to return, from 1 to 1000. Defaults to 1000.",
            "type": "integer",
            "format": "int32"
          },
          "cursor": {
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "type": "string"
          },
          "order_status": {
            "description": "Return only orders in this status.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatus"
              }
            ]
          },
          "market_id": {
            "description": "Return only orders on this market. Omit for every market.",
            "type": "string",
            "format": "uint64"
          }
        }
      },
      "paxorder_apiGetOrdersResponse": {
        "type": "object",
        "properties": {
          "orders": {
            "description": "List of orders on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiGetOrderResponse"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Absent on the last page.",
            "type": "string"
          }
        }
      },
      "paxorder_apiCancelLiquidityOrderRequest": {
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Market to cancel on.",
            "type": "string",
            "format": "uint64"
          },
          "qty": {
            "description": "Quantity to cancel. Must be positive.",
            "type": "string",
            "format": "int64"
          },
          "side": {
            "description": "Side to cancel on.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonSide"
              }
            ]
          },
          "ticks": {
            "description": "Price level to cancel at, in ticks.",
            "type": "integer",
            "format": "int32"
          },
          "client_order_id": {
            "description": "Client-assigned id for the cancel, at most 36 bytes. Omit or leave empty for none.",
            "type": "string"
          }
        },
        "required": [
          "market_id",
          "qty",
          "side",
          "ticks"
        ]
      },
      "paxorder_apiCancelLiquidityOrderResponse": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned id of the cancel order.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxorder_apiCancelAllOrdersRequest": {
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Cancel only this market's orders. Omit for every market.",
            "type": "string",
            "format": "uint64"
          }
        }
      },
      "paxorder_apiCancelAllOrdersResponse": {
        "type": "object",
        "properties": {
          "order_ids": {
            "description": "List of exchange-assigned cancel order ids, one per price level canceled.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "paxorder_apiGetOrderStatusUpdatesRequest": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Order whose history to read.",
            "type": "string"
          },
          "limit": {
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "type": "integer",
            "format": "int32"
          },
          "cursor": {
            "description": "Cursor from the previous response's next_cursor. Omit for the first page.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxcommonOrderStatusUpdateReason": {
        "description": "Why the system rejected or canceled an order.\n\n- `OSU_REASON_UNSPECIFIED`: None.\n- `OSU_REASON_ADMIN_CANCELED`: Canceled by the system, such as ahead of maintenance or shutdown.\n- `OSU_REASON_INSUFFICIENT_BALANCE`: Refused because the account cannot fund the order.\n- `OSU_REASON_DUPLICATE_CLIENT_ID`: Refused because `client_order_id` is already in use by a live order.\n- `OSU_REASON_EXCHANGE_ERROR`: Refused because of an internal exchange error. The order was not placed.\n- `OSU_REASON_ALO_WOULD_CROSS`: Canceled because the ALO order would have crossed the book.\n- `OSU_REASON_EXCHANGE_UNAVAILABLE`: Refused because the exchange is not accepting orders right now.\n- `OSU_REASON_CAPACITY_REACHED`: Refused because the exchange has no capacity for another active lambda account right now.\n- `OSU_REASON_INVALID_ORDER`: Refused because the order failed validation.",
        "default": "OSU_REASON_UNSPECIFIED",
        "x-enum-numbers": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8
        ],
        "x-enum-descriptions": {
          "OSU_REASON_ADMIN_CANCELED": "Canceled by the system, such as ahead of maintenance or shutdown.",
          "OSU_REASON_ALO_WOULD_CROSS": "Canceled because the ALO order would have crossed the book.",
          "OSU_REASON_CAPACITY_REACHED": "Refused because the exchange has no capacity for another active lambda account right now.",
          "OSU_REASON_DUPLICATE_CLIENT_ID": "Refused because `client_order_id` is already in use by a live order.",
          "OSU_REASON_EXCHANGE_ERROR": "Refused because of an internal exchange error. The order was not placed.",
          "OSU_REASON_EXCHANGE_UNAVAILABLE": "Refused because the exchange is not accepting orders right now.",
          "OSU_REASON_INSUFFICIENT_BALANCE": "Refused because the account cannot fund the order.",
          "OSU_REASON_INVALID_ORDER": "Refused because the order failed validation.",
          "OSU_REASON_UNSPECIFIED": "None."
        },
        "type": "string",
        "enum": [
          "OSU_REASON_UNSPECIFIED",
          "OSU_REASON_ADMIN_CANCELED",
          "OSU_REASON_INSUFFICIENT_BALANCE",
          "OSU_REASON_DUPLICATE_CLIENT_ID",
          "OSU_REASON_EXCHANGE_ERROR",
          "OSU_REASON_ALO_WOULD_CROSS",
          "OSU_REASON_EXCHANGE_UNAVAILABLE",
          "OSU_REASON_CAPACITY_REACHED",
          "OSU_REASON_INVALID_ORDER"
        ]
      },
      "paxudUDTimeInfo": {
        "type": "object",
        "properties": {
          "hw_ser_time_ns": {
            "description": "When the event was sequenced by the exchange, in Unix nanoseconds. A maker fill carries the taking order's time. 0 for a rejected order, or for an order the system canceled when the exchange restarted.",
            "type": "string",
            "format": "uint64"
          }
        },
        "required": [
          "hw_ser_time_ns"
        ]
      },
      "paxudUDOrderStatusUpdate": {
        "type": "object",
        "properties": {
          "osu_id": {
            "description": "Exchange-assigned id of this status update.",
            "type": "string"
          },
          "order_id": {
            "description": "Exchange-assigned id of the order this update belongs to.",
            "type": "string"
          },
          "client_order_id": {
            "description": "The order's client_order_id. Empty if none was sent.",
            "type": "string"
          },
          "qty_filled_make": {
            "description": "Quantity filled as maker in this update.",
            "type": "string",
            "format": "int64"
          },
          "qty_filled_take": {
            "description": "Quantity filled as taker in this update.",
            "type": "string",
            "format": "int64"
          },
          "qty_canceled": {
            "description": "Quantity canceled in this update.",
            "type": "string",
            "format": "int64"
          },
          "fill_value": {
            "description": "Value filled in this update, in the quote asset's native units.",
            "type": "string",
            "format": "int64"
          },
          "fee_rebate": {
            "description": "Rebate paid, or fee charged when negative, in the quote asset's native units.",
            "type": "string",
            "format": "int64"
          },
          "order": {
            "description": "The order as placed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxudUDOrder"
              }
            ]
          },
          "order_status": {
            "description": "Order status after this update.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatus"
              }
            ]
          },
          "reason": {
            "description": "Why the system refused or canceled the order, if it did.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatusUpdateReason"
              }
            ]
          },
          "tm_info": {
            "description": "Timestamps of this update.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxudUDTimeInfo"
              }
            ]
          }
        },
        "required": [
          "osu_id",
          "order_id",
          "client_order_id",
          "qty_filled_make",
          "qty_filled_take",
          "qty_canceled",
          "fill_value",
          "fee_rebate",
          "order",
          "order_status",
          "reason",
          "tm_info"
        ]
      },
      "paxorder_apiOrderStatusUpdateEntry": {
        "type": "object",
        "properties": {
          "osu": {
            "description": "The status update, as streamed.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxudUDOrderStatusUpdate"
              }
            ]
          },
          "updated_time_ms": {
            "description": "When this update happened, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "osu",
          "updated_time_ms"
        ]
      },
      "paxorder_apiGetOrderStatusUpdatesResponse": {
        "type": "object",
        "properties": {
          "order_status_updates": {
            "description": "List of status updates on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOrderStatusUpdateEntry"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Absent on the last page.",
            "type": "string"
          }
        }
      },
      "paxorder_apiGetRecentFillOrderStatusUpdatesRequest": {
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Return only updates for orders on this market.",
            "type": "string",
            "format": "uint64"
          },
          "limit": {
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "type": "integer",
            "format": "int32"
          },
          "cursor": {
            "description": "Cursor from the previous response's next_cursor. Omit to start at the newest update.",
            "type": "string"
          }
        }
      },
      "paxorder_apiGetRecentFillOrderStatusUpdatesResponse": {
        "type": "object",
        "properties": {
          "order_status_updates": {
            "description": "List of status updates on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOrderStatusUpdateEntry"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to page further back. Absent on the last page.",
            "type": "string"
          }
        }
      },
      "paxorder_apiGetFillOrderStatusUpdatesSinceRequest": {
        "type": "object",
        "properties": {
          "since_time_ms": {
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "market_id": {
            "description": "Return only updates for orders on this market.",
            "type": "string",
            "format": "uint64"
          },
          "limit": {
            "description": "Maximum updates to return, from 1 to 1000. Defaults to 1000.",
            "type": "integer",
            "format": "int32"
          },
          "cursor": {
            "description": "Cursor from the previous response's next_cursor. Omit to start at since_time_ms.",
            "type": "string"
          }
        },
        "required": [
          "since_time_ms"
        ]
      },
      "paxorder_apiGetFillOrderStatusUpdatesSinceResponse": {
        "type": "object",
        "properties": {
          "order_status_updates": {
            "description": "List of status updates on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOrderStatusUpdateEntry"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Absent on the last page.",
            "type": "string"
          }
        }
      },
      "paxorder_apiGetOrderStatusUpdatesByTimeRequest": {
        "type": "object",
        "properties": {
          "start_time_ms": {
            "description": "Return updates at or after this time, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "end_time_ms": {
            "description": "Return updates before this time, in Unix milliseconds. At most 7 days after start_time_ms.",
            "type": "string",
            "format": "int64"
          },
          "market_id": {
            "description": "Return only updates for orders on this market.",
            "type": "string",
            "format": "uint64"
          },
          "limit": {
            "description": "Maximum updates to return, from 1 to 10000. Defaults to 10000.",
            "type": "integer",
            "format": "int32"
          },
          "cursor": {
            "description": "Cursor from the previous response's next_cursor, with the same time range and market_id.",
            "type": "string"
          }
        },
        "required": [
          "start_time_ms",
          "end_time_ms"
        ]
      },
      "paxorder_apiGetOrderStatusUpdatesByTimeResponse": {
        "type": "object",
        "properties": {
          "order_status_updates": {
            "description": "List of status updates on this page.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOrderStatusUpdateEntry"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Absent on the last page.",
            "type": "string"
          }
        }
      },
      "paxorder_apiOmniOrder": {
        "type": "object",
        "properties": {
          "message": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "SubmitOrder": {
                    "description": "Place an order.",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/paxorder_apiSubmitOrderRequest"
                      }
                    ]
                  }
                },
                "required": [
                  "SubmitOrder"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "CancelLiquidityOrder": {
                    "description": "Cancel resting liquidity at a price level.",
                    "allOf": [
                      {
                        "$ref": "#/components/schemas/paxorder_apiCancelLiquidityOrderRequest"
                      }
                    ]
                  }
                },
                "required": [
                  "CancelLiquidityOrder"
                ],
                "additionalProperties": false
              }
            ]
          }
        }
      },
      "paxorder_apiBatchSubmitOmniOrdersRequest": {
        "type": "object",
        "properties": {
          "omni_orders": {
            "description": "List of entries to apply, in the order given. At most 40 per request.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOmniOrder"
            },
            "maxItems": 40
          }
        }
      },
      "paxorder_apiOmniOrderResult": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned order id. Empty if refused.",
            "type": "string"
          },
          "client_order_id": {
            "description": "The entry's client_order_id. Empty if none was sent.",
            "type": "string"
          },
          "accepted": {
            "description": "True if the exchange took the order.",
            "type": "boolean"
          },
          "reason": {
            "description": "Why the entry was refused. OSU_REASON_UNSPECIFIED if accepted.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatusUpdateReason"
              }
            ]
          },
          "message": {
            "description": "Error message for a refused entry.",
            "type": "string"
          }
        },
        "required": [
          "order_id",
          "client_order_id",
          "accepted",
          "reason",
          "message"
        ]
      },
      "paxorder_apiBatchSubmitOmniOrdersResponse": {
        "type": "object",
        "properties": {
          "results": {
            "description": "One result per entry, in request order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiOmniOrderResult"
            }
          }
        }
      },
      "SubmitLambda": {
        "description": "Submit a lambda program.",
        "type": "object",
        "properties": {
          "program": {
            "$ref": "#/components/schemas/LambdaProgram"
          },
          "client_lambda_id": {
            "description": "Client-assigned id, at most 36 bytes. Omit or leave empty for none. Rejected if it matches another of the account's live lambda programs.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "program"
        ]
      },
      "LambdaProgram": {
        "description": "A lambda program.",
        "oneOf": [
          {
            "description": "Watches a local order book on PAX.",
            "type": "object",
            "properties": {
              "predicate": {
                "$ref": "#/components/schemas/LocalPredicate"
              },
              "order": {
                "$ref": "#/components/schemas/LocalOrder"
              },
              "lifetime": {
                "$ref": "#/components/schemas/Lifetime"
              },
              "kind": {
                "type": "string",
                "const": "local"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "predicate",
              "order",
              "lifetime"
            ]
          }
        ],
        "examples": [
          {
            "kind": "local",
            "predicate": {
              "market_id": 1,
              "side": "ask",
              "event": "crossed",
              "px": {
                "kind": "tob_depth",
                "max": 2
              },
              "qty": {
                "kind": "event_qty",
                "min": 5000000
              }
            },
            "order": {
              "kind": "limit",
              "market_id": 1,
              "side": "ask",
              "tif": "gtc",
              "px": {
                "kind": "fixed",
                "ticks": 10105
              },
              "qty": {
                "kind": "fixed",
                "qty": 50000000
              }
            },
            "lifetime": {
              "kind": "once"
            }
          }
        ]
      },
      "LocalPredicate": {
        "description": "Which order book events trigger a local lambda program.",
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Market whose order book is watched.",
            "type": [
              "integer",
              "string"
            ],
            "format": "uint64",
            "examples": [
              1
            ]
          },
          "side": {
            "description": "Side of the book the event happens on.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Side"
              }
            ]
          },
          "event": {
            "$ref": "#/components/schemas/LocalEvent"
          },
          "px": {
            "$ref": "#/components/schemas/PxPredicate"
          },
          "qty": {
            "$ref": "#/components/schemas/QtyPredicate"
          }
        },
        "additionalProperties": false,
        "required": [
          "market_id",
          "side",
          "event",
          "px",
          "qty"
        ]
      },
      "Side": {
        "description": "Side of an order or of the book.",
        "oneOf": [
          {
            "description": "Buy the base asset.",
            "type": "string",
            "const": "bid"
          },
          {
            "description": "Sell the base asset.",
            "type": "string",
            "const": "ask"
          }
        ]
      },
      "LocalEvent": {
        "description": "The kind of book event that qualifies.",
        "oneOf": [
          {
            "description": "Liquidity was added to the book from a GTC/ALO order.",
            "type": "string",
            "const": "rested"
          },
          {
            "description": "Liquidity was removed from the book for any reason.",
            "type": "string",
            "const": "removed"
          },
          {
            "description": "Liquidity was removed from the book by a cancel.",
            "type": "string",
            "const": "canceled"
          },
          {
            "description": "Liquidity was removed from the book by a trade.",
            "type": "string",
            "const": "crossed"
          }
        ]
      },
      "PxPredicate": {
        "description": "Which event prices qualify.",
        "oneOf": [
          {
            "description": "Any price.",
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "any"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          },
          {
            "description": "The event's price is in [min, max] ticks.",
            "type": "object",
            "properties": {
              "min": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Ticks"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Ticks"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "event_px"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          },
          {
            "description": "The event’s price is in [min, max] ticks within the top-of-book as it was before the event.\nAn event at or inside the best price, or on an empty side, is within 0 ticks.",
            "type": "object",
            "properties": {
              "min": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Ticks"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Ticks"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "tob_depth"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          }
        ]
      },
      "Ticks": {
        "description": "A price, in units of the market's tick size.",
        "type": [
          "integer",
          "string"
        ],
        "format": "int64",
        "examples": [
          10105
        ]
      },
      "QtyPredicate": {
        "description": "Which event quantities qualify.",
        "oneOf": [
          {
            "description": "Any quantity.",
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "any"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          },
          {
            "description": "The quantity the event added or removed is in [min, max].",
            "type": "object",
            "properties": {
              "min": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Qty"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Qty"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "event_qty"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          },
          {
            "description": "The quantity resting at the event's price after the event is in [min, max].",
            "type": "object",
            "properties": {
              "min": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Qty"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "max": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Qty"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "final_level_qty"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          }
        ]
      },
      "Qty": {
        "description": "A base-asset quantity in native units, a multiple of the market's qty step size.",
        "type": [
          "integer",
          "string"
        ],
        "format": "uint64",
        "examples": [
          5000000
        ]
      },
      "LocalOrder": {
        "description": "The underlying order placed on every fire.",
        "oneOf": [
          {
            "description": "A limit order.",
            "type": "object",
            "properties": {
              "market_id": {
                "description": "Market the order is placed on.",
                "type": [
                  "integer",
                  "string"
                ],
                "format": "uint64",
                "examples": [
                  1
                ]
              },
              "side": {
                "description": "Side of the order.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Side"
                  }
                ]
              },
              "tif": {
                "$ref": "#/components/schemas/Tif"
              },
              "px": {
                "description": "Limit price.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LocalPx"
                  }
                ]
              },
              "qty": {
                "description": "Quantity.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LocalQty"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "limit"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "market_id",
              "side",
              "tif",
              "px",
              "qty"
            ]
          },
          {
            "description": "Cancel up to qty of the account's own resting liquidity at one price.",
            "type": "object",
            "properties": {
              "market_id": {
                "description": "Market the order is placed on.",
                "type": [
                  "integer",
                  "string"
                ],
                "format": "uint64",
                "examples": [
                  1
                ]
              },
              "side": {
                "description": "Side of the order.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/Side"
                  }
                ]
              },
              "px": {
                "description": "Price of the resting liquidity.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LocalPx"
                  }
                ]
              },
              "qty": {
                "description": "Quantity to cancel.",
                "allOf": [
                  {
                    "$ref": "#/components/schemas/LocalQty"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "cancel"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "market_id",
              "side",
              "px",
              "qty"
            ]
          }
        ]
      },
      "Tif": {
        "description": "Time in force.",
        "oneOf": [
          {
            "description": "Good until canceled: the unfilled quantity rests on the book.",
            "type": "string",
            "const": "gtc"
          },
          {
            "description": "Immediate or cancel: the unfilled quantity is canceled.",
            "type": "string",
            "const": "ioc"
          },
          {
            "description": "Add liquidity only: rests like gtc, but the whole order is canceled if it would cross.",
            "type": "string",
            "const": "alo"
          }
        ]
      },
      "LocalPx": {
        "description": "The price template each fire of a local lambda program places its order at.",
        "oneOf": [
          {
            "description": "A fixed price, in ticks.",
            "type": "object",
            "properties": {
              "ticks": {
                "$ref": "#/components/schemas/Ticks"
              },
              "kind": {
                "type": "string",
                "const": "fixed"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "ticks"
            ]
          }
        ]
      },
      "LocalQty": {
        "description": "The quantity template for the order placed on each fire of a local lambda program.",
        "oneOf": [
          {
            "description": "A fixed quantity, in the base asset's native units.",
            "type": "object",
            "properties": {
              "qty": {
                "$ref": "#/components/schemas/Qty"
              },
              "kind": {
                "type": "string",
                "const": "fixed"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "qty"
            ]
          }
        ]
      },
      "Lifetime": {
        "description": "When a lambda program stops firing.",
        "oneOf": [
          {
            "description": "Fire once.",
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "once"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind"
            ]
          }
        ]
      },
      "SubmitLambdaResponse": {
        "type": "object",
        "properties": {
          "lambda_id": {
            "description": "Exchange-assigned lambda id.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "lambda_id"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/Error"
          }
        },
        "required": [
          "error"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "message": {
            "description": "Human-readable description of the error.",
            "type": "string"
          },
          "field": {
            "description": "Dotted path of the request field at fault, such as `program.order.qty`. Omitted if no single field is at fault.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "code",
          "message"
        ]
      },
      "ErrorCode": {
        "description": "Error category.",
        "oneOf": [
          {
            "description": "The request is malformed or has an invalid value.",
            "type": "string",
            "const": "invalid_request"
          },
          {
            "description": "The request is valid, but the combination is not supported.",
            "type": "string",
            "const": "unsupported"
          },
          {
            "description": "The requested feature is not available yet.",
            "type": "string",
            "const": "not_available"
          },
          {
            "description": "The referenced order or lambda program does not exist.",
            "type": "string",
            "const": "not_found"
          },
          {
            "description": "The request is not authenticated.",
            "type": "string",
            "const": "unauthenticated"
          },
          {
            "description": "The caller lacks permission for this request.",
            "type": "string",
            "const": "forbidden"
          },
          {
            "description": "The referenced order or lambda program is not in a state that allows the request.",
            "type": "string",
            "const": "failed_precondition"
          },
          {
            "description": "The request conflicts with an earlier one.",
            "type": "string",
            "const": "conflict"
          },
          {
            "description": "Insufficient balance.",
            "type": "string",
            "const": "insufficient_balance"
          },
          {
            "description": "The client-assigned id is already in use.",
            "type": "string",
            "const": "duplicate_client_id"
          },
          {
            "description": "The exchange is at capacity.",
            "type": "string",
            "const": "capacity_reached"
          },
          {
            "description": "Rate limit exceeded.",
            "type": "string",
            "const": "rate_limited"
          },
          {
            "description": "The exchange is temporarily unavailable.",
            "type": "string",
            "const": "exchange_unavailable"
          },
          {
            "description": "Internal exchange error.",
            "type": "string",
            "const": "exchange_error"
          }
        ]
      },
      "CancelLambda": {
        "type": "object",
        "properties": {
          "key": {
            "description": "The lambda program to cancel.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Key"
              }
            ]
          }
        },
        "additionalProperties": false,
        "required": [
          "key"
        ]
      },
      "Key": {
        "description": "Identifies a lambda program by its exchange-assigned or client-assigned id.",
        "oneOf": [
          {
            "description": "The exchange-assigned id.",
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid"
              },
              "kind": {
                "type": "string",
                "const": "exchange"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "id"
            ]
          },
          {
            "description": "The client-assigned id, at most 36 bytes. Only matches a live lambda program.",
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "const": "client"
              }
            },
            "additionalProperties": false,
            "required": [
              "kind",
              "id"
            ]
          }
        ]
      },
      "CancelLambdaResponse": {
        "type": "object",
        "properties": {
          "lambda_id": {
            "description": "Exchange-assigned id of the lambda program being canceled.",
            "type": "string",
            "format": "uuid"
          },
          "cancel_id": {
            "description": "Exchange-assigned id of this cancel.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "lambda_id",
          "cancel_id"
        ]
      },
      "LambdaStatus": {
        "description": "Status of a lambda program.",
        "oneOf": [
          {
            "description": "Submitted, not yet accepted.",
            "type": "string",
            "const": "pending"
          },
          {
            "description": "In force: evaluated on every matching event.",
            "type": "string",
            "const": "in_force"
          },
          {
            "description": "No longer in force: exhausted, canceled, or reset by a system restart.",
            "type": "string",
            "const": "out_of_force"
          },
          {
            "description": "Rejected.",
            "type": "string",
            "const": "rejected"
          }
        ]
      },
      "LambdaPage": {
        "type": "object",
        "properties": {
          "lambdas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lambda"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "lambdas"
        ]
      },
      "Lambda": {
        "type": "object",
        "properties": {
          "lambda_id": {
            "description": "Exchange-assigned lambda id.",
            "type": "string",
            "format": "uuid"
          },
          "client_lambda_id": {
            "description": "Client-assigned id from the submit request.",
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/LambdaStatus"
          },
          "program": {
            "description": "The program as it was submitted.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/LambdaProgram"
              },
              {
                "type": "null"
              }
            ],
            "examples": [
              {
                "kind": "local",
                "predicate": {
                  "market_id": "1",
                  "side": "ask",
                  "event": "crossed",
                  "px": {
                    "kind": "tob_depth",
                    "max": "2"
                  },
                  "qty": {
                    "kind": "event_qty",
                    "min": "5000000"
                  }
                },
                "order": {
                  "kind": "limit",
                  "market_id": "1",
                  "side": "ask",
                  "tif": "gtc",
                  "px": {
                    "kind": "fixed",
                    "ticks": "10105"
                  },
                  "qty": {
                    "kind": "fixed",
                    "qty": "50000000"
                  }
                },
                "lifetime": {
                  "kind": "once"
                }
              }
            ]
          },
          "qty_triggered": {
            "description": "Quantity the lambda program has placed so far.",
            "type": "string",
            "format": "uint64"
          },
          "created_time_ms": {
            "description": "When the lambda program was submitted, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "description": "When the lambda program last changed, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "lambda_id",
          "status",
          "qty_triggered",
          "created_time_ms",
          "updated_time_ms"
        ]
      },
      "ActiveLambdas": {
        "type": "object",
        "properties": {
          "lambdas": {
            "description": "The account's lambda programs in force.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Lambda"
            }
          }
        },
        "required": [
          "lambdas"
        ]
      },
      "PendingLambdaCancels": {
        "type": "object",
        "properties": {
          "pending_cancels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PendingLambdaCancel"
            }
          }
        },
        "required": [
          "pending_cancels"
        ]
      },
      "PendingLambdaCancel": {
        "description": "A lambda program cancel awaiting confirmation.",
        "type": "object",
        "properties": {
          "lambda_id": {
            "description": "Lambda program being canceled.",
            "type": "string",
            "format": "uuid"
          },
          "client_lambda_id": {
            "description": "Client-assigned lambda id, if one was sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "cancel_id": {
            "description": "Exchange-assigned id of this lambda cancel request.",
            "type": "string",
            "format": "uuid"
          }
        },
        "required": [
          "lambda_id",
          "cancel_id"
        ]
      },
      "LambdaStatusUpdatePage": {
        "type": "object",
        "properties": {
          "lambda_status_updates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LambdaStatusUpdate"
            }
          },
          "next_cursor": {
            "description": "Pass as cursor to fetch the next page. Null on the last page.",
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "lambda_status_updates"
        ]
      },
      "LambdaStatusUpdate": {
        "description": "A lambda program status update. Also sent on the user-data WebSocket.",
        "type": "object",
        "properties": {
          "lsu_id": {
            "description": "Id of this status update.",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "lambda_id": {
            "description": "Exchange-assigned id of the lambda program this update belongs to. Null for older updates that did not record it.",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "client_lambda_id": {
            "description": "Client-assigned lambda id, if one was sent.",
            "type": [
              "string",
              "null"
            ]
          },
          "delta_qty": {
            "description": "Change in the lambda program's untriggered quantity: the full quantity when programmed, minus what was left when canceled or reset by a system restart, and 0 otherwise.",
            "type": "string",
            "format": "int64"
          },
          "status": {
            "description": "New status of the lambda program.",
            "allOf": [
              {
                "$ref": "#/components/schemas/LambdaStatus"
              }
            ]
          },
          "reason": {
            "$ref": "#/components/schemas/LambdaStatusUpdateReason"
          },
          "created_time_ms": {
            "description": "When this update happened, in Unix milliseconds.",
            "type": "string",
            "format": "int64"
          },
          "cancel_id": {
            "description": "Exchange-assigned id of the lambda cancel request. Null unless reason is canceled or cancel_missed.",
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          }
        },
        "required": [
          "delta_qty",
          "status",
          "reason",
          "created_time_ms"
        ]
      },
      "LambdaStatusUpdateReason": {
        "description": "Why a lambda program changed status.",
        "oneOf": [
          {
            "description": "Accepted and now in force.",
            "type": "string",
            "const": "programmed"
          },
          {
            "description": "The lambda program was successfully canceled and its untriggered quantity released.",
            "type": "string",
            "const": "canceled"
          },
          {
            "description": "The lambda program's quantity changed.",
            "type": "string",
            "const": "modified"
          },
          {
            "description": "All quantity has triggered.",
            "type": "string",
            "const": "exhausted"
          },
          {
            "description": "State reset by a system restart.",
            "type": "string",
            "const": "system_restart"
          },
          {
            "description": "Refused because the account cannot fund the lambda program.",
            "type": "string",
            "const": "insufficient_balance"
          },
          {
            "description": "Refused because client_lambda_id is already in use by a live lambda program.",
            "type": "string",
            "const": "duplicate_client_id"
          },
          {
            "description": "Refused because the lambda program failed validation.",
            "type": "string",
            "const": "invalid_lambda"
          },
          {
            "description": "Refused because of an internal exchange error. The lambda program was not placed.",
            "type": "string",
            "const": "exchange_error"
          },
          {
            "description": "Refused because the exchange is not accepting lambda programs right now.",
            "type": "string",
            "const": "exchange_unavailable"
          },
          {
            "description": "Refused because the exchange has no capacity for the lambda program right now.",
            "type": "string",
            "const": "capacity_reached"
          },
          {
            "description": "The cancel had nothing to cancel: the lambda program had already fully triggered or ended.",
            "type": "string",
            "const": "cancel_missed"
          }
        ]
      },
      "paxcommonAsset": {
        "description": "Type of asset.",
        "x-enum-numbers": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "string",
        "enum": [
          "BTC",
          "ETH",
          "SOL",
          "USDT",
          "USDC",
          "USD"
        ]
      },
      "paxaccount_apiGetBalanceRequest": {
        "type": "object",
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          }
        }
      },
      "paxaccount_apiAssetBalance": {
        "type": "object",
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "balance_qty": {
            "type": "string",
            "format": "int64"
          },
          "frozen_qty": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "asset",
          "balance_qty",
          "frozen_qty"
        ]
      },
      "paxaccount_apiGetBalanceResponse": {
        "type": "object",
        "properties": {
          "asset_balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxaccount_apiAssetBalance"
            }
          }
        }
      },
      "paxaccount_apiGetBalancesForMarketRequest": {
        "type": "object",
        "properties": {
          "market_id": {
            "type": "string",
            "format": "uint64"
          }
        },
        "required": [
          "market_id"
        ]
      },
      "paxaccount_apiGetBalancesForMarketResponse": {
        "type": "object",
        "properties": {
          "asset_balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxaccount_apiAssetBalance"
            }
          }
        }
      },
      "paxaccount_apiGetAccountStatusRequest": {
        "type": "object"
      },
      "paxaccount_apiKycStatus": {
        "default": "KYC_STATUS_UNSPECIFIED",
        "x-enum-numbers": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "string",
        "enum": [
          "KYC_STATUS_UNSPECIFIED",
          "KYC_STATUS_PENDING",
          "KYC_STATUS_APPROVED",
          "KYC_STATUS_REJECTED",
          "KYC_STATUS_MANUAL_REVIEW"
        ]
      },
      "paxaccount_apiGetAccountStatusResponse": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "kyc_status": {
            "$ref": "#/components/schemas/paxaccount_apiKycStatus"
          },
          "kyc_completed_at_unix_seconds": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "email",
          "kyc_status"
        ]
      },
      "paxaccount_apiRevokeApiKeyRequest": {
        "type": "object",
        "properties": {
          "key_id": {
            "type": "string"
          }
        },
        "required": [
          "key_id"
        ]
      },
      "paxaccount_apiRevokeApiKeyResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ]
      },
      "paxaccount_apiListApiKeysRequest": {
        "type": "object"
      },
      "paxaccount_apiAccountType": {
        "default": "ACCOUNT_TYPE_UNSPECIFIED",
        "x-enum-numbers": [
          0,
          1,
          2
        ],
        "type": "string",
        "enum": [
          "ACCOUNT_TYPE_UNSPECIFIED",
          "ACCOUNT_TYPE_FREE",
          "ACCOUNT_TYPE_LAMBDA"
        ]
      },
      "paxaccount_apiApiKeyInfo": {
        "type": "object",
        "properties": {
          "key_id": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "created_at_unix_seconds": {
            "type": "string",
            "format": "int64"
          },
          "expires_at_unix_seconds": {
            "type": "string",
            "format": "int64"
          },
          "revoked": {
            "type": "boolean"
          },
          "public_key": {
            "type": "string"
          },
          "can_trade": {
            "type": "boolean"
          },
          "can_withdraw": {
            "type": "boolean"
          },
          "account_type": {
            "$ref": "#/components/schemas/paxaccount_apiAccountType"
          },
          "ip_whitelist": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "created_by_email": {
            "description": "Email of the team member who created the key, when known. Only returned to signed-in sessions.",
            "type": "string"
          }
        },
        "required": [
          "key_id",
          "created_at_unix_seconds",
          "revoked",
          "public_key",
          "can_trade",
          "can_withdraw",
          "account_type"
        ]
      },
      "paxaccount_apiListApiKeysResponse": {
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxaccount_apiApiKeyInfo"
            }
          }
        }
      },
      "paxaccount_apiListAccountsRequest": {
        "type": "object"
      },
      "paxaccount_apiAccountInfo": {
        "type": "object",
        "properties": {
          "external_account_id": {
            "type": "string"
          },
          "account_type": {
            "$ref": "#/components/schemas/paxaccount_apiAccountType"
          }
        },
        "required": [
          "external_account_id",
          "account_type"
        ]
      },
      "paxaccount_apiListAccountsResponse": {
        "type": "object",
        "properties": {
          "accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxaccount_apiAccountInfo"
            }
          }
        }
      },
      "paxmetadata_apiGetExchangeInfoRequest": {
        "type": "object"
      },
      "paxmetadata_apiAssetInfo": {
        "type": "object",
        "properties": {
          "asset_id": {
            "description": "Asset id.",
            "type": "string",
            "format": "uint64"
          },
          "asset_name": {
            "description": "Asset name.",
            "type": "string"
          },
          "native_unit_name": {
            "description": "Name of the asset's smallest unit.",
            "type": "string"
          },
          "num_native_units": {
            "description": "Native units in one whole asset.",
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "asset_id",
          "asset_name",
          "native_unit_name",
          "num_native_units"
        ]
      },
      "paxmetadata_apiMarketType": {
        "description": "Kind of market.\n\n- `SPOT`: Buy or sell the base asset outright.",
        "x-enum-numbers": [
          1
        ],
        "x-enum-descriptions": {
          "SPOT": "Buy or sell the base asset outright."
        },
        "type": "string",
        "enum": [
          "SPOT"
        ]
      },
      "paxmetadata_apiMarketInfo": {
        "type": "object",
        "properties": {
          "market_id": {
            "description": "Market id.",
            "type": "string",
            "format": "uint64"
          },
          "market_name": {
            "description": "Market name.",
            "type": "string"
          },
          "market_type": {
            "description": "Kind of market.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxmetadata_apiMarketType"
              }
            ]
          },
          "base_asset_id": {
            "description": "Asset bought or sold.",
            "type": "string",
            "format": "uint64"
          },
          "quote_asset_id": {
            "description": "Asset paid or received.",
            "type": "string",
            "format": "uint64"
          },
          "qty_unit_name": {
            "description": "Name of the base asset's native unit.",
            "type": "string"
          },
          "tick_unit_name": {
            "description": "Name of the quote asset's native unit.",
            "type": "string"
          },
          "tick_size": {
            "description": "Quote native units per tick.",
            "type": "string",
            "format": "uint64"
          },
          "qty_step_size": {
            "description": "Base native units per step.",
            "type": "string",
            "format": "int64"
          },
          "max_qty": {
            "description": "Largest order quantity, in base native units.",
            "type": "string",
            "format": "int64"
          },
          "notes": {
            "description": "Additional notes.",
            "type": "string"
          },
          "max_ticks": {
            "description": "Highest order price, in ticks.",
            "type": "integer",
            "format": "int32"
          },
          "min_notional": {
            "description": "Smallest order value at its limit price, in quote native units.",
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "market_id",
          "market_name",
          "market_type",
          "base_asset_id",
          "quote_asset_id",
          "qty_unit_name",
          "tick_unit_name",
          "tick_size",
          "qty_step_size",
          "max_qty",
          "notes",
          "max_ticks",
          "min_notional"
        ]
      },
      "paxmetadata_apiFeeInfo": {
        "type": "object",
        "properties": {
          "lambda_taker_fee_bps": {
            "description": "Lambda taker fee, in bps of fill value. Rounded up.",
            "type": "string"
          },
          "lambda_maker_spread_multiplier": {
            "description": "Lambda maker fee, as a share of its spread. Rounded up.",
            "type": "string"
          },
          "lambda_maker_fee_cap_bps": {
            "description": "Lambda maker fee cap, in bps of fill value. Rounded up.",
            "type": "string"
          },
          "free_tier_rebate_multiplier": {
            "description": "Free-tier rebate, as a share of the lambda counterparty's fee. Rounded down.",
            "type": "string"
          },
          "free_tier_rebate_cap_bps": {
            "description": "Free-tier rebate cap, in bps of fill value. Rounded down.",
            "type": "string"
          }
        },
        "required": [
          "lambda_taker_fee_bps",
          "lambda_maker_spread_multiplier",
          "lambda_maker_fee_cap_bps",
          "free_tier_rebate_multiplier",
          "free_tier_rebate_cap_bps"
        ]
      },
      "paxmetadata_apiGetExchangeInfoResponse": {
        "type": "object",
        "properties": {
          "assets": {
            "description": "List of all traded assets.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmetadata_apiAssetInfo"
            }
          },
          "markets": {
            "description": "List of all traded markets.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmetadata_apiMarketInfo"
            }
          },
          "fees": {
            "description": "Fee and rebate rates, settled per fill in the quote asset.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxmetadata_apiFeeInfo"
              }
            ]
          }
        },
        "required": [
          "fees"
        ]
      },
      "paxmoneyGetSupportedChainsForAssetRequest": {
        "type": "object",
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          }
        },
        "required": [
          "asset"
        ]
      },
      "paxmoneyGetSupportedChainsForAssetResponse": {
        "type": "object",
        "properties": {
          "chains": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "paxmoneyGetDepositAddressesRequest": {
        "type": "object"
      },
      "paxmoneyDepositAddress": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "address": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "chain",
          "asset",
          "address",
          "created_time_ms"
        ]
      },
      "paxmoneyGetDepositAddressesResponse": {
        "type": "object",
        "properties": {
          "deposit_addresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyDepositAddress"
            }
          }
        }
      },
      "paxmoneyGetDepositAddressRequest": {
        "type": "object",
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "chain": {
            "type": "string"
          }
        },
        "required": [
          "asset",
          "chain"
        ]
      },
      "paxmoneyGetDepositAddressResponse": {
        "type": "object",
        "properties": {
          "deposit_address": {
            "$ref": "#/components/schemas/paxmoneyDepositAddress"
          }
        },
        "required": [
          "deposit_address"
        ]
      },
      "paxmoneyCryptoDepositCryptoDepositStatus": {
        "x-enum-numbers": [
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "string",
        "enum": [
          "INITIATED",
          "PENDING_ATTRIBUTION",
          "PENDING_REVIEW",
          "COMPLETED",
          "BLOCKED",
          "FAILED"
        ]
      },
      "paxmoneyGetCryptoDepositsRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyCryptoDepositCryptoDepositStatus"
            }
          }
        }
      },
      "paxmoneyCryptoDeposit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyCryptoDepositCryptoDepositStatus"
          },
          "chain": {
            "type": "string"
          },
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "source_wallet_address": {
            "type": "string"
          },
          "deposit_wallet_address": {
            "type": "string"
          },
          "transaction_hash": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "status",
          "chain",
          "asset",
          "amount",
          "source_wallet_address",
          "deposit_wallet_address",
          "transaction_hash",
          "created_time_ms"
        ]
      },
      "paxmoneyGetCryptoDepositsResponse": {
        "type": "object",
        "properties": {
          "deposits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyCryptoDeposit"
            }
          }
        }
      },
      "paxmoneyAttributeCryptoDepositRequestCryptoDepositOriginWalletType": {
        "x-enum-numbers": [
          1,
          2
        ],
        "type": "string",
        "enum": [
          "CUSTODIAL",
          "SELF_HOSTED"
        ]
      },
      "paxmoneyAttributeCryptoDepositRequest": {
        "type": "object",
        "properties": {
          "crypto_deposit_id": {
            "type": "string"
          },
          "originator_country": {
            "type": "string"
          },
          "originator_name": {
            "type": "string"
          },
          "origin_wallet_type": {
            "$ref": "#/components/schemas/paxmoneyAttributeCryptoDepositRequestCryptoDepositOriginWalletType"
          }
        },
        "required": [
          "crypto_deposit_id",
          "originator_country",
          "originator_name",
          "origin_wallet_type"
        ]
      },
      "paxmoneyAttributeCryptoDepositResponse": {
        "type": "object"
      },
      "paxmoneyGetFiatDepositInstructionsRequest": {
        "type": "object"
      },
      "paxmoneyFiatDepositInstructionBankNetwork": {
        "x-enum-numbers": [
          1,
          2,
          3,
          4
        ],
        "type": "string",
        "enum": [
          "US_ACH",
          "US_WIRE",
          "SWIFT",
          "US_RTP"
        ]
      },
      "paxmoneyFiatDepositInstructionInstructionType": {
        "default": "INSTRUCTION_TYPE_UNKNOWN",
        "x-enum-numbers": [
          0,
          1,
          2
        ],
        "type": "string",
        "enum": [
          "INSTRUCTION_TYPE_UNKNOWN",
          "INSTRUCTION_TYPE_DEPOSIT",
          "INSTRUCTION_TYPE_AUTO_CONVERSION"
        ]
      },
      "paxmoneyFiatDepositInstruction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "bank_network": {
            "$ref": "#/components/schemas/paxmoneyFiatDepositInstructionBankNetwork"
          },
          "currency": {
            "type": "string"
          },
          "account_holder_name": {
            "type": "string"
          },
          "account_number": {
            "type": "string"
          },
          "bank_name": {
            "type": "string"
          },
          "bank_routing_number": {
            "type": "string"
          },
          "bank_swift_code": {
            "type": "string"
          },
          "reference_code": {
            "type": "string"
          },
          "convert_to_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "deposit_fee": {
            "type": "string",
            "format": "int64"
          },
          "instruction_type": {
            "$ref": "#/components/schemas/paxmoneyFiatDepositInstructionInstructionType"
          }
        },
        "required": [
          "id",
          "bank_network",
          "currency",
          "account_holder_name",
          "account_number",
          "bank_name",
          "bank_routing_number",
          "bank_swift_code",
          "reference_code",
          "convert_to_asset",
          "deposit_fee",
          "instruction_type"
        ]
      },
      "paxmoneyGetFiatDepositInstructionsResponse": {
        "type": "object",
        "properties": {
          "instructions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyFiatDepositInstruction"
            }
          }
        }
      },
      "paxmoneyGetFiatDepositsRequest": {
        "type": "object"
      },
      "paxmoneyFiatDepositFiatDepositStatus": {
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "type": "string",
        "enum": [
          "PENDING",
          "COMPLETED",
          "FAILED"
        ]
      },
      "paxmoneyFiatDeposit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyFiatDepositFiatDepositStatus"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "fee": {
            "type": "string",
            "format": "int64"
          },
          "credited_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "credited_amount": {
            "type": "string",
            "format": "int64"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "bank_network": {
            "$ref": "#/components/schemas/paxmoneyFiatDepositInstructionBankNetwork"
          }
        },
        "required": [
          "id",
          "status",
          "currency",
          "amount",
          "fee",
          "credited_asset",
          "credited_amount",
          "created_time_ms",
          "bank_network"
        ]
      },
      "paxmoneyGetFiatDepositsResponse": {
        "type": "object",
        "properties": {
          "deposits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyFiatDeposit"
            }
          }
        }
      },
      "paxmoneyGetWithdrawWalletsRequest": {
        "type": "object",
        "properties": {
          "include_archived": {
            "type": "boolean"
          }
        }
      },
      "paxmoneyWalletStatus": {
        "default": "PENDING",
        "x-enum-numbers": [
          0,
          1,
          2
        ],
        "type": "string",
        "enum": [
          "PENDING",
          "UNDER_REVIEW",
          "VERIFIED"
        ]
      },
      "paxmoneyWallet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "archived_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyWalletStatus"
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "chain",
          "address",
          "created_time_ms",
          "status"
        ]
      },
      "paxmoneyGetWithdrawWalletsResponse": {
        "type": "object",
        "properties": {
          "wallets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyWallet"
            }
          }
        }
      },
      "paxmoneyGetWithdrawWalletRequest": {
        "type": "object",
        "properties": {
          "withdraw_wallet_id": {
            "type": "string"
          }
        },
        "required": [
          "withdraw_wallet_id"
        ]
      },
      "paxmoneyGetWithdrawWalletResponse": {
        "type": "object",
        "properties": {
          "wallet": {
            "$ref": "#/components/schemas/paxmoneyWallet"
          }
        },
        "required": [
          "wallet"
        ]
      },
      "paxmoneyGetWithdrawWalletByAddressRequest": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "wallet_address": {
            "type": "string"
          }
        },
        "required": [
          "chain",
          "wallet_address"
        ]
      },
      "paxmoneyGetWithdrawWalletByAddressResponse": {
        "type": "object",
        "properties": {
          "wallet": {
            "$ref": "#/components/schemas/paxmoneyWallet"
          }
        },
        "required": [
          "wallet"
        ]
      },
      "paxmoneyArchiveWithdrawWalletRequest": {
        "type": "object",
        "properties": {
          "withdraw_wallet_id": {
            "type": "string"
          }
        },
        "required": [
          "withdraw_wallet_id"
        ]
      },
      "paxmoneyArchiveWithdrawWalletResponse": {
        "type": "object"
      },
      "paxmoneySubmitCryptoWithdrawalRequest": {
        "type": "object",
        "properties": {
          "chain": {
            "type": "string"
          },
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "withdraw_wallet_address": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "chain",
          "asset",
          "amount",
          "withdraw_wallet_address",
          "idempotency_key"
        ]
      },
      "paxmoneyCryptoWithdrawalCryptoWithdrawalStatus": {
        "x-enum-numbers": [
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "string",
        "enum": [
          "QUEUED",
          "IN_PROGRESS",
          "PENDING_ON_CHAIN",
          "COMPLETION_NOTIFIED",
          "COMPLETED",
          "FAILURE_NOTIFIED",
          "FAILED"
        ]
      },
      "paxmoneySubmitCryptoWithdrawalResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/paxmoneyCryptoWithdrawalCryptoWithdrawalStatus"
          }
        },
        "required": [
          "status"
        ]
      },
      "paxmoneyGetCryptoWithdrawalsRequest": {
        "type": "object"
      },
      "paxmoneyCryptoWithdrawal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "withdraw_wallet_address": {
            "type": "string"
          },
          "chain": {
            "type": "string"
          },
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "fee_token": {
            "type": "string"
          },
          "fee": {
            "type": "string",
            "format": "int64"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyCryptoWithdrawalCryptoWithdrawalStatus"
          },
          "transaction_hash": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "received_amount": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "idempotency_key",
          "withdraw_wallet_address",
          "chain",
          "asset",
          "amount",
          "fee_token",
          "fee",
          "status",
          "transaction_hash",
          "created_time_ms",
          "updated_time_ms"
        ]
      },
      "paxmoneyGetCryptoWithdrawalsResponse": {
        "type": "object",
        "properties": {
          "withdrawals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyCryptoWithdrawal"
            }
          }
        }
      },
      "paxmoneyGetCryptoWithdrawalRequest": {
        "type": "object",
        "properties": {
          "withdrawal_id": {
            "type": "string"
          }
        },
        "required": [
          "withdrawal_id"
        ]
      },
      "paxmoneyGetCryptoWithdrawalResponse": {
        "type": "object",
        "properties": {
          "withdrawal": {
            "$ref": "#/components/schemas/paxmoneyCryptoWithdrawal"
          }
        },
        "required": [
          "withdrawal"
        ]
      },
      "paxmoneyGetCryptoWithdrawalByIdempotencyKeyRequest": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "idempotency_key"
        ]
      },
      "paxmoneyGetCryptoWithdrawalByIdempotencyKeyResponse": {
        "type": "object",
        "properties": {
          "withdrawal": {
            "$ref": "#/components/schemas/paxmoneyCryptoWithdrawal"
          }
        },
        "required": [
          "withdrawal"
        ]
      },
      "paxmoneyGetWithdrawBankAccountsRequest": {
        "type": "object",
        "properties": {
          "include_archived": {
            "type": "boolean"
          }
        }
      },
      "paxmoneyBankAccountBankAccountType": {
        "x-enum-numbers": [
          1
        ],
        "type": "string",
        "enum": [
          "US"
        ]
      },
      "paxmoneyBankAccountUsBankAccountTransferType": {
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "type": "string",
        "enum": [
          "ACH",
          "WIRE",
          "RTP"
        ]
      },
      "paxmoneyBankAccountUsBankAccount": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "nickname": {
            "type": "string"
          },
          "transfer_type": {
            "$ref": "#/components/schemas/paxmoneyBankAccountUsBankAccountTransferType"
          },
          "account_holder_name": {
            "type": "string"
          },
          "account_number": {
            "type": "string"
          },
          "bank_name": {
            "type": "string"
          },
          "bank_routing_number": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "nickname",
          "transfer_type",
          "account_holder_name",
          "account_number",
          "bank_name",
          "bank_routing_number"
        ]
      },
      "paxmoneyBankAccountStatus": {
        "default": "STATUS_UNKNOWN",
        "x-enum-numbers": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "string",
        "enum": [
          "STATUS_UNKNOWN",
          "PENDING",
          "ACTIVE",
          "FAILED",
          "INACTIVE"
        ]
      },
      "paxmoneyBankAccount": {
        "type": "object",
        "properties": {
          "bank_account_type": {
            "$ref": "#/components/schemas/paxmoneyBankAccountBankAccountType"
          },
          "us_bank_account": {
            "$ref": "#/components/schemas/paxmoneyBankAccountUsBankAccount"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyBankAccountStatus"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "archived_time_ms": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "bank_account_type",
          "us_bank_account",
          "status",
          "created_time_ms"
        ]
      },
      "paxmoneyGetWithdrawBankAccountsResponse": {
        "type": "object",
        "properties": {
          "bank_accounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyBankAccount"
            }
          }
        }
      },
      "paxmoneyGetWithdrawBankAccountRequest": {
        "type": "object",
        "properties": {
          "withdraw_bank_account_id": {
            "type": "string"
          }
        },
        "required": [
          "withdraw_bank_account_id"
        ]
      },
      "paxmoneyGetWithdrawBankAccountResponse": {
        "type": "object",
        "properties": {
          "bank_account": {
            "$ref": "#/components/schemas/paxmoneyBankAccount"
          }
        },
        "required": [
          "bank_account"
        ]
      },
      "paxmoneyArchiveWithdrawBankAccountRequest": {
        "type": "object",
        "properties": {
          "withdraw_bank_account_id": {
            "type": "string"
          }
        },
        "required": [
          "withdraw_bank_account_id"
        ]
      },
      "paxmoneyArchiveWithdrawBankAccountResponse": {
        "type": "object"
      },
      "paxmoneySubmitFiatWithdrawalRequest": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "withdraw_bank_account_id": {
            "type": "string"
          },
          "memo": {
            "type": "string"
          }
        },
        "required": [
          "idempotency_key",
          "currency",
          "amount",
          "withdraw_bank_account_id",
          "memo"
        ]
      },
      "paxmoneyFiatWithdrawalFiatWithdrawalStatus": {
        "default": "QUEUED",
        "x-enum-numbers": [
          0,
          1,
          4,
          5,
          6
        ],
        "type": "string",
        "enum": [
          "QUEUED",
          "PENDING",
          "COMPLETED",
          "FAILED",
          "RETURNED"
        ]
      },
      "paxmoneySubmitFiatWithdrawalResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/paxmoneyFiatWithdrawalFiatWithdrawalStatus"
          }
        },
        "required": [
          "status"
        ]
      },
      "paxmoneyGetFiatWithdrawalsRequest": {
        "type": "object"
      },
      "paxmoneyFiatWithdrawalTransferMethod": {
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "type": "string",
        "enum": [
          "US_ACH",
          "US_WIRE",
          "US_RTP"
        ]
      },
      "paxmoneyFiatWithdrawal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "idempotency_key": {
            "type": "string"
          },
          "bank_account_id": {
            "type": "string"
          },
          "transfer_method": {
            "$ref": "#/components/schemas/paxmoneyFiatWithdrawalTransferMethod"
          },
          "currency": {
            "type": "string"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "fee_currency": {
            "type": "string"
          },
          "fee": {
            "type": "string",
            "format": "int64"
          },
          "memo": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyFiatWithdrawalFiatWithdrawalStatus"
          },
          "reference": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "idempotency_key",
          "bank_account_id",
          "transfer_method",
          "currency",
          "amount",
          "fee_currency",
          "fee",
          "memo",
          "status",
          "reference",
          "created_time_ms",
          "updated_time_ms"
        ]
      },
      "paxmoneyGetFiatWithdrawalsResponse": {
        "type": "object",
        "properties": {
          "withdrawals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyFiatWithdrawal"
            }
          }
        }
      },
      "paxmoneyGetFiatWithdrawalRequest": {
        "type": "object",
        "properties": {
          "withdrawal_id": {
            "type": "string"
          }
        },
        "required": [
          "withdrawal_id"
        ]
      },
      "paxmoneyGetFiatWithdrawalResponse": {
        "type": "object",
        "properties": {
          "withdrawal": {
            "$ref": "#/components/schemas/paxmoneyFiatWithdrawal"
          }
        },
        "required": [
          "withdrawal"
        ]
      },
      "paxmoneyGetFiatWithdrawalByIdempotencyKeyRequest": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string"
          }
        },
        "required": [
          "idempotency_key"
        ]
      },
      "paxmoneyGetFiatWithdrawalByIdempotencyKeyResponse": {
        "type": "object",
        "properties": {
          "withdrawal": {
            "$ref": "#/components/schemas/paxmoneyFiatWithdrawal"
          }
        },
        "required": [
          "withdrawal"
        ]
      },
      "paxmoneyGetCryptoTransfersRequest": {
        "type": "object"
      },
      "paxmoneyCryptoTransferCryptoTransferType": {
        "x-enum-numbers": [
          1,
          2
        ],
        "type": "string",
        "enum": [
          "DEPOSIT",
          "WITHDRAWAL"
        ]
      },
      "paxmoneyCryptoTransfer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/paxmoneyCryptoTransferCryptoTransferType"
          },
          "chain": {
            "type": "string"
          },
          "asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "amount": {
            "type": "string",
            "format": "int64"
          },
          "fee_token": {
            "type": "string"
          },
          "fee": {
            "type": "string",
            "format": "int64"
          },
          "sender_wallet_address": {
            "type": "string"
          },
          "receiver_wallet_address": {
            "type": "string"
          },
          "deposit_status": {
            "$ref": "#/components/schemas/paxmoneyCryptoDepositCryptoDepositStatus"
          },
          "withdrawal_status": {
            "$ref": "#/components/schemas/paxmoneyCryptoWithdrawalCryptoWithdrawalStatus"
          },
          "transaction_hash": {
            "type": "string"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "type",
          "chain",
          "asset",
          "amount",
          "fee_token",
          "fee",
          "sender_wallet_address",
          "receiver_wallet_address",
          "deposit_status",
          "withdrawal_status",
          "transaction_hash",
          "created_time_ms",
          "updated_time_ms"
        ]
      },
      "paxmoneyGetCryptoTransfersResponse": {
        "type": "object",
        "properties": {
          "transfers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyCryptoTransfer"
            }
          }
        }
      },
      "paxmoneyCreateConversionQuoteRequest": {
        "type": "object",
        "properties": {
          "from_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "to_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "from_amount": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "from_asset",
          "to_asset",
          "from_amount"
        ]
      },
      "paxmoneyCreateConversionQuoteResponse": {
        "type": "object",
        "properties": {
          "from_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "from_amount": {
            "type": "string",
            "format": "int64"
          },
          "to_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "to_amount": {
            "type": "string",
            "format": "int64"
          },
          "valid_until_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "quote_id": {
            "type": "string"
          }
        },
        "required": [
          "from_asset",
          "from_amount",
          "to_asset",
          "to_amount",
          "valid_until_time_ms",
          "quote_id"
        ]
      },
      "paxmoneySubmitConversionRequest": {
        "type": "object",
        "properties": {
          "idempotency_key": {
            "type": "string"
          },
          "from_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "to_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "from_amount": {
            "type": "string",
            "format": "int64"
          },
          "min_to_amount": {
            "type": "string",
            "format": "int64"
          },
          "quote_id": {
            "type": "string"
          }
        },
        "required": [
          "idempotency_key",
          "from_asset",
          "to_asset",
          "from_amount",
          "min_to_amount",
          "quote_id"
        ]
      },
      "paxmoneyConversionConversionStatus": {
        "x-enum-numbers": [
          1,
          2,
          3
        ],
        "type": "string",
        "enum": [
          "PENDING",
          "COMPLETED",
          "FAILED"
        ]
      },
      "paxmoneySubmitConversionResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/paxmoneyConversionConversionStatus"
          },
          "id": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "id"
        ]
      },
      "paxmoneyGetConversionsRequest": {
        "type": "object"
      },
      "paxmoneyConversion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/paxmoneyConversionConversionStatus"
          },
          "from_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "from_amount": {
            "type": "string",
            "format": "int64"
          },
          "to_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "to_amount": {
            "type": "string",
            "format": "int64"
          },
          "created_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "updated_time_ms": {
            "type": "string",
            "format": "int64"
          },
          "fee_asset": {
            "$ref": "#/components/schemas/paxcommonAsset"
          },
          "fee_amount": {
            "type": "string",
            "format": "int64"
          }
        },
        "required": [
          "id",
          "status",
          "from_asset",
          "from_amount",
          "to_asset",
          "to_amount",
          "created_time_ms",
          "updated_time_ms",
          "fee_asset",
          "fee_amount"
        ]
      },
      "paxmoneyGetConversionsResponse": {
        "type": "object",
        "properties": {
          "conversions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxmoneyConversion"
            }
          }
        }
      },
      "paxmoneyGetConversionRequest": {
        "type": "object",
        "properties": {
          "conversion_id": {
            "type": "string"
          }
        },
        "required": [
          "conversion_id"
        ]
      },
      "paxmoneyGetConversionResponse": {
        "type": "object",
        "properties": {
          "conversion": {
            "$ref": "#/components/schemas/paxmoneyConversion"
          }
        },
        "required": [
          "conversion"
        ]
      },
      "paxcompatibility_apiCancelOrderRequest": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Order whose unfilled quantity, side and price level set the cancel.",
            "type": "string"
          },
          "client_order_id": {
            "description": "Client-assigned id for the cancel, at most 36 bytes. Omit or leave empty for none.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxcompatibility_apiCancelOrderResponse": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned id of the cancel order, not of the order named in the request.",
            "type": "string"
          }
        },
        "required": [
          "order_id"
        ]
      },
      "paxcompatibility_apiBatchSubmitOrdersRequest": {
        "type": "object",
        "properties": {
          "orders": {
            "description": "List of orders to place, in the order given. At most 10 per request.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxorder_apiSubmitOrderRequest"
            },
            "maxItems": 10
          }
        }
      },
      "paxcompatibility_apiOrderResult": {
        "type": "object",
        "properties": {
          "order_id": {
            "description": "Exchange-assigned order id. Empty if refused.",
            "type": "string"
          },
          "client_order_id": {
            "description": "The entry's client_order_id. Empty if none was sent.",
            "type": "string"
          },
          "accepted": {
            "description": "True if the exchange took the order.",
            "type": "boolean"
          },
          "reason": {
            "description": "Why the entry was refused. OSU_REASON_UNSPECIFIED if accepted.",
            "allOf": [
              {
                "$ref": "#/components/schemas/paxcommonOrderStatusUpdateReason"
              }
            ]
          },
          "message": {
            "description": "Error message for a refused entry.",
            "type": "string"
          }
        },
        "required": [
          "order_id",
          "client_order_id",
          "accepted",
          "reason",
          "message"
        ]
      },
      "paxcompatibility_apiBatchSubmitOrdersResponse": {
        "type": "object",
        "properties": {
          "results": {
            "description": "One result per entry, in request order.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxcompatibility_apiOrderResult"
            }
          }
        }
      },
      "paxcompatibility_apiBatchCancelOrdersRequest": {
        "type": "object",
        "properties": {
          "orders": {
            "description": "List of cancels to apply, in the order given. At most 10 per request.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxcompatibility_apiCancelOrderRequest"
            },
            "maxItems": 10
          }
        }
      },
      "paxcompatibility_apiBatchCancelOrdersResponse": {
        "type": "object",
        "properties": {
          "results": {
            "description": "One result per entry, in request order. order_id is the cancel order's id.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/paxcompatibility_apiOrderResult"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "ApiAccessKey": {
        "type": "apiKey",
        "in": "header",
        "name": "api-access-key",
        "description": "The key id of the API key making the request. Endpoints that need more than read access list `trade` or `withdraw` as a role."
      },
      "ApiTimestamp": {
        "type": "apiKey",
        "in": "header",
        "name": "api-timestamp",
        "description": "Request timestamp in milliseconds since the Unix epoch. Requests outside recvWindow are rejected."
      },
      "ApiSignature": {
        "type": "apiKey",
        "in": "header",
        "name": "api-signature",
        "description": "Signature over the request, produced with the API key's secret."
      }
    }
  },
  "security": [
    {
      "ApiAccessKey": [],
      "ApiTimestamp": [],
      "ApiSignature": []
    }
  ]
}