Create an OTC blocktrade as the maker (BID to buy outcome shares with USDT, or ASK to sell outcome shares for USDT). The maker wallet is resolved server-side by userId; signing is done server-side via SAS typedDataSign. Returns orderId and a one-time secretToken to share out-of-band with the intended taker.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
| side | makerAmount | takerAmount |
|---|---|---|
BUY |
USDT (wei) | shares (wei) |
SELL |
shares (wei) | USDT (wei) |
side encoding: this request uses a string enum (BUY/SELL). Responses from Get Blocktrade Detail / Preview / List return side as an integer and also include a quoteType string — both encode the same concept."Request side |
Response side (Integer) |
Response quoteType |
|---|---|---|
BUY |
0 |
"Bid" |
SELL |
1 |
"Ask" |
Request parameters.
Fulfil an open maker blocktrade as the taker, using the secretToken the maker shared out-of-band. All-or-nothing fill (no partial fill); the taker order is the server-derived symmetric inverse of the maker order.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
Query the maker's own blocktrade by orderId. Returns full order data including status and secretToken.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
Paginated feed of blocktrade lifecycle and settlement events (CREATE, FULFIL, MATCH_SUBMIT, MATCH_SUCCESS, EXPIRE, FAILED, etc.).
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
Query PredictFun reserved balances for the caller's bound wallet — these are funds locked by the caller's open OTC blocktrade orders (maker BID locks USDT, maker ASK locks shares). Not tied to a specific blocktrade id; the path nesting under otc/blocktrade reflects the cause of the lock, not a per-order query. Returns one entry per requested asset, aligned with the request order. Pass {type:"USDT"} for reserved USDT, or {type:"SHARE", tokenId:"..."} for a specific outcome token's reserved shares.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
| Name | Type | Mandatory | Description |
|---|---|---|---|
| type | STRING | YES | Asset type. Enum: USDT, SHARE |
| tokenId | STRING | NO | Outcome token id (present for SHARE entries only) |
Request parameters.
List the maker's own blocktrades with optional status filter and cursor pagination.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
Inspect an open blocktrade by secretToken (no orderId needed). Taker uses this to preview the maker order before fulfilling. Returns the same shape as Get Blocktrade Detail, but orderId is null and secretToken is never returned from this endpoint.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
Cancel open or fulfilled-but-unsettled blocktrades. Terminal orders (already MATCHED/CANCELLED/EXPIRED/FAILED) are returned in noop instead of removed.
Weight(IP): 200
Security Type: PREDICTION_TRADE
Notes:
Request parameters.
OtcApi - object-oriented interface OtcApi