GuidesBuild schemas by venue
Step zero — from nothing to your first trade
Section titled “Step zero — from nothing to your first trade”- Create the account. Go to limitless.exchange and connect an
eligible EOA on Base. The hosted service accepts no venue account credential or
profileId; Predictefy has no verified information on a separate registration or KYC requirement, so confirm that prerequisite with Limitless. - Set up signing. A fresh user must first create an EVM wallet and secure the seed phrase offline. The wallet signs each order locally. Predictefy never sees the private key.
- Fund it. Put Base-native USDC in that EOA, keep a little ETH for Base gas, and grant only a
finite approval to the market’s authoritative exchange. Predictefy has no verified numeric deposit
minimum, so fund one small intended order. If funds start elsewhere, request the assisted LI.FI
route with
GET /v1/bridge/quote. - Allow time. Budget about 1–2 hours if this is your first wallet; an existing funded Base wallet is faster. Predictefy’s hosted service refuses US-region callers through its own geofence by design.
What you need first
Section titled “What you need first”- Production status: Enabled for build, submit, and cancel.
- Wallet and chain: An EOA on Base (
8453) signs the server-built EIP-712 order client-side. - Venue account: The hosted service accepts no caller account credential or
profileId; verify any separate venue registration and eligibility requirement with Limitless. - Credentials: No caller venue credential. Predictefy holds the partner HMAC credential, while the EOA private key remains only in the caller’s process.
- Funding: Base-native USDC in the EOA, with a finite approval to the market’s authoritative exchange. The LI.FI helper can fund the wallet.
| Field | Type | Required | Rejection |
|---|---|---|---|
owner | EVM address | yes | owner (the EOA that will sign) is required |
tokenId | CTF position id, digits only | yes | tokenId (CTF position id) is required |
orderSide (or side) | BUY/SELL or 0/1 | yes | orderSide must be BUY or SELL |
orderType | FOK, GTC, or FAK (see below) | yes | orderType must be FOK or GTC |
postOnly | boolean, GTC only | no | postOnly is only supported for GTC orders |
marketSlug | string | yes | marketSlug is required |
price | number in (0, 1) exclusive | yes | price in (0,1) is required |
shares | number > 0 | yes | shares (> 0) is required |
amountUsd | number > 0 | FOK buy | amountUsd (> 0) is required |
expiration | unix seconds (default now + 1 hour) | no | expiration must be a non-negative safe integer (unix seconds) |
nonce | number (default 0) | no | — |
feeRateBps | integer 0-10000 (enabled only) | see fees | feeRateBps is required on a fee-enabled Limitless market |
profileId | rejected outright | — | profileId is not accepted — the bound owner address is the relay identity |
Note the exclusive bound: Hyperliquid accepts price = 1, Limitless does not. The server fixes
every remaining field: feeRateBps 300 when the order-type enablement is off, signatureType 0,
taker the zero address, the salt, and maker = signer = owner. You sign exactly what was
cap-checked. Notional is makerAmount / 1e6: exact USDC for a buy, a conservative dollar ceiling
for a sell.
FAK orders and post-only
Section titled “FAK orders and post-only”When the deployment enables Limitless order types, orderType: FAK builds a fill-and-kill order:
it matches what it can at the signed price and cancels the remainder instead of resting. FAK uses
the same price and shares inputs as a GTC limit order, returns the same amount shape, and
records a declared position.
postOnly: true guarantees a maker-only GTC order, because the venue rejects it when it would
cross the book. It is refused with FAK or FOK, and it is never part of the signed EIP-712 order.
The venue accepts only a zero expiration and a zero nonce, so orders built with this enablement
sign expiration: "0" and nonce: 0; a request asking for any other value is refused before
signing.
The server resolves the wallet through your partner sub-account listing and stores the numeric
Limitless profile id in the unsigned artifact. A wallet that is not a Core partner sub-account is
refused before signing, because a standalone Limitless profile cannot be attached to a partner and
is not reachable through onBehalfOf. Placement and cancellation send that id as both ownerId
and onBehalfOf.
Without that enablement, FAK answers the existing orderType must be FOK or GTC error and
postOnly is ignored exactly as before.
Fees, prices and amounts
Section titled “Fees, prices and amounts”While the order-type enablement is on, the signed order follows the venue’s exact rules:
feeRateBpsis market- and owner-specific. Send your account’seffectiveFeeRateBpson a fee-enabled market; there the build refuses to sign without it. On a market without taker fees, or a venue whosefeeModuleTypeisCOLLATERAL, the build signs 0 and refuses any other value. A stale rate comes back from the venue asFEE_RATE_MISMATCHwithexpectedFeeRateBps, so rebuild with that rate.pricehas at most three decimal places (0.001 to 0.999).sharesandamountUsdhave at most six decimal places, andprice × contractsmust be an exact integer raw-unit amount with no rounding.- The maker amount must be at least 100 raw units.
A build that breaks one of these rules is refused before signing. With the enablement off, the
legacy amounts and the ported feeRateBps 300 are unchanged.
Batch cancel and cancel all
Section titled “Batch cancel and cancel all”When the deployment enables Limitless order types, the shared
POST /v1/exec/limitless/orders/batch-cancel route accepts 1 to 20 of your own execution ids and
builds ONE cancel intent. Submit that intent through the normal /submit route, exactly like a
single cancel. The intent sends the venue’s POST /orders/batch-cancel with the explicit stored
order ids and your numeric Limitless profile id. It never asks the venue to cancel every order on
a wallet, so another account using the same wallet, and orders placed outside Predictefy, are
untouched. Every target must belong to one wallet and one Limitless profile.
On submit the cancel execution is canceled only when every order is confirmed. A partial or
refused batch is failed, with one closed-code outcome per requested order in
submittedArtifact.results (order_not_found, order_release_in_progress, or cancel_failed).
Venue message text is never returned or stored. The usual trade scope and Idempotency-Key
apply, and the batch build is one billed cancel action that its submit reuses.
To cancel every live order Predictefy tracks for you in one Limitless market, use the SDK helper
exec.cancelAllOrders({ venue: 'limitless', marketSlug }). It pages your open executions, groups
them by bound wallet so every intent is one delegated identity, builds one batch intent per wallet
per group of at most 20, and submits each. No signer is needed for a Limitless cancel.
A single cancel of an order that was built while the enablement was off resolves and stores your profile id first, so an existing live order stays cancelable through the documented route. Single cancel and order status keep working after that enablement is turned off, so an order you placed earlier stays cancelable and readable.