Coming soon. On-chain trading is not yet available on
https://api.futuur.com. Production still uses HMAC-only ledger settlement and does not accept the fields on this page. This page describes how on-chain trading will work.How a bot trade works
- Get HMAC keys from Settings or wallet derive.
- Register and deploy your Safe, then enable trading once per token (a standing
approveof OOM or USDC to the pool). - Ask the API for a signing context, sign
LimitOrderIntentwith the owner EOA, then create the order. Do this one order at a time: the nonce is sequential per Safe. - The CLOB matches. Collateral transfers run on-chain, asynchronously, before share balances update.
Matching
The matching engine is a CLOB with price, then time priority. The best price fills first, whether it comes from another user or the platform AMM. At the same price, a resting user order fills before the AMM, and older orders fill before newer ones. Complementary both-buy is a first-class match. If you bid long at 0.55 and someone else bids short at 0.45, the prices sum to 1 and the orders can match without an ask on the book. On a binary event, that is Yes vs No of the same event. On an exclusive event with three or more markets, it is Yes vs No of the same market — not Yes on one market vs Yes on another. See Conditional tokens.
A filled on-chain order without a collateral
Transfer is a failure. The API does not credit positions until collateral has moved.
Settlement at match
The first release moves collateral (OOM or USDC) and keeps share balances in the Futuur database. A later cutover mints those positions as ERC-1155 outcome tokens. Matching stays the same CLOB either way.
Settlement is asynchronous. Create returns before the transfers confirm, and an order can read
processing while a match settles. Follow settlement_status on the order (ready → settling → settled) or the order-update websocket event. See Order lifecycle.
Fees
Only the taker pays a fee. The taker is the order that arrives second and crosses a resting order. Makers pay nothing.p is the price of the fill and the fee rate is 5% for both OOM and USDC. The fee is highest at p = 0.50 and falls toward zero at the extremes.
- A taker bid pays
shares × price + fee. - A taker ask receives
shares × price − fee. - A resting bid that gets filled pays
shares × priceminus a maker reward of 80% of the taker’s fee. A resting ask receivesshares × pricewith no reward.
maxUsdcRaw in the signing context already includes the fee for a bid, so you never need to compute it to sign. After a fill, proceeds on the order shows the net cash of its taker fills.
Funding, withdrawals, and payouts
Legacy balances. When you register a Safe, your old ledger balance is migrated to it as USDC. Coins other than USD-denominated ones are converted at the stored exchange rate. The old ledger balance is debited once the transfer confirms. From then on the legacy
/withdrawals/ flow rejects USDC and USD for your account (403 WithdrawalBalanceMigratedToSafe): withdraw from the Safe instead.
What the API does not have
- No endpoint returns fills or trades. Use the fill fields on the order (
shares_filled,average_price,proceeds), theorder-updatewebsocket event, andGET /wagers/for positions. - No endpoint returns a single order by ID. Filter
GET /orders/. - Market orders (
price: null) cannot be used in on-chain currencies. Usetime_in_force: "ioc"with a price. Send an explicit share count rather thanshares: "max": the signedsharesRawmust match the quantity that is sold. PATCH /wagers/{id}/does not sell an on-chain position. It returnsonchain_sell_requires_limit_order. Place a signedask.
Two-layer auth
HMAC never replaces the wallet signature. Get both credentials from Get your API keys. Canceling needs HMAC only.
Coming soon: session keys let an interactive client sign orders with a throwaway key that the owner wallet authorizes once.
What stays the same
- Events, markets, and the existing order and wager resources
- Play money (
OOM) and real money (USDC) as currencies - HMAC signing for every authenticated request — see Authentication
Not in this release
These are not part of the first release:- Splitting a complete set. It is documented only. For merging, see Merge a complete set for its own status
- Conditional / outcome tokens (ERC-1155 Yes/No positions; binaries and exclusive N≥3)
- A dedicated exchange contract (settlement uses the pool Safe; operator fills come later)
- An official TypeScript or Python SDK
- Chains other than the one Futuur publishes at launch