Cancel one or more active prediction orders in a single request. Requires SAS authorization.
Known Issue — Bracket Encoding Incompatibility:*
This endpoint uses indexed bracket notation (cancelInfoList[0].orderId). Binance SAPI signature verification runs over the raw, unencoded canonical string. However, mainstream HTTP libraries (Python requests, Java HttpURLConnection/URI, Go net/url, Node.js url) automatically percent-encode [ → %5B and ] → %5D, producing a signature mismatch with error -1022 Signature for this request is not valid. Postman is unaffected because it does not encode keys.
Workarounds* (use low-level HTTP APIs that do not normalize URLs):
http.client (stdlib) and hand-build the body string.HttpURLConnection and write the raw body bytes directly.strings.NewReader with a hand-built body instead of url.Values.Encode().Weight(IP): 200
Security Type: TRADE
Notes:
cancelInfoList[0].orderId, cancelInfoList[1].orderId, etc.vendor does not need to be supplied. The server automatically sets the correct vendor (predict_fun) for every item in the batch.Request parameters.
Get a price quote for a prediction order. The returned quoteId must be used in the subsequent Place Order request.
Weight(IP): 200
Security Type: TRADE
Response Notes:
feeAmount is a string because it is denominated in wei (18 decimals) and may exceed JavaScript's safe integer range. feeDiscountBps is also a string to allow fractional basis-point values in the future. feeRateBps and slippageBps are integers and will never exceed safe integer bounds.MARKET orders, amountIn must be at least approximately 1.5 USDT (in wei: 1500000000000000000). The exact minimum varies by market liquidity. If the amount is too small, the server returns -9000 Your order amount is too small. This limit does not apply to LIMIT orders.Request parameters.
Place a prediction order using a previously obtained quote. Requires SAS authorization.
Weight(IP): 200
Security Type: TRADE
Notes:
| orderType | timeInForce | priceLimit |
|---|---|---|
MARKET |
Must be FOK |
Not required |
LIMIT |
Must be GTC |
Required, must be > 0 |
Request parameters.
Get active (open) prediction orders for the authenticated user.
Weight(IP): 200
Security Type: USER_DATA
Request parameters.
Get historical prediction orders (all statuses) for the authenticated user, with optional filters.
Weight(IP): 200
Security Type: USER_DATA
Request parameters.
TradeApi - object-oriented interface TradeApi