Predict API (Beta)
  1. Orders
Predict API (Beta)
  • FAQs
  • Guides
    • Understanding the Orderbook
    • How to authenticate your API requests
    • How to create or cancel orders
  • Authorization
    • Get auth message
      GET
    • Get JWT with valid signature
      POST
  • Accounts
    • Get connected account
      GET
    • Set a referral
      POST
  • Orders
    • Get order by hash
      GET
    • Get orders
      GET
    • Create an order
      POST
    • Remove orders from the orderbook
      POST
  • Categories
    • Get categories
      GET
    • Get category by slug
      GET
  • Markets
    • Get markets
      GET
    • Get market statistics
      GET
    • Get market last sale information
      GET
    • Get the orderbook for a market
      GET
  • Positions
    • Get positions
      GET
  • OAuth
    • Finalize a OAuth connection
      POST
    • Get the orders for a OAuth connection
      POST
    • Create an order for a OAuth connection
      POST
    • Cancel the orders for a OAuth connection
      POST
    • Get the positions for a OAuth connection
      POST
  1. Orders

Remove orders from the orderbook

POST
/v1/orders/remove
Remove orders from the orderbook for the JWT signer.
Important: This will not cancel the order on-chain, you should also cancel the order on-chain as outlined in the documentation. This endpoint allows you to cancel orders fast and batch the on-chain cancellation of orders later.
You can also just cancel the order on-chain directly (recommended for most use cases).
By using this endpoint, you acknowledge that you understand and accept all the potential risks associated with not invalidating an order on-chain.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired

Example
{
    "data": {
        "ids": [
            "string"
        ]
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-testnet.predict.fun/v1/orders/remove' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "data": {
        "ids": [
            "string"
        ]
    }
}'

Responses

🟢200
application/json
Response 200
Body

Example
{
    "success": true
}
Modified at 2025-12-11 01:33:41
Previous
Create an order
Next
Get categories
Built with