Docs

Markets

Binary Event Contracts

Yes/no contracts on any outcome a public data source can confirm, settled in USDso.

When a binary event market resolves, each winning contract pays 1 USDso, less any settlement fee its venue set when the market was created, and each losing contract pays nothing, so a contract's price reads as a probability. If the market is voided instead, no fee is charged and the refund follows the void policy the market was created with. Under the uniform policy every contract refunds 0.5 USDso. Under the snapshot policy, which Somnia's own venues use, a YES contract refunds the YES price of the market's book when it closed (its mid) and a NO contract the rest, so a YES and a NO together still refund 1 USDso; when that book is one-sided or empty, or its price can't be read, the snapshot falls back to 0.5 USDso each. What a voided market actually refunds is the payout vector it stored when it voided (payoutNumerators(), and the VoidVector event), not its voidPolicy().

Each market trades on its own order book and resolves onchain. The rolling BTC and ETH up/down markets settle against Somnia Price Feeds at expiry. A question market, such as one created with the Venue Kit, resolves through the Somnia Oracle, which reads the market's named public data sources.

How they work

  • A market can be built on any outcome a public data source can confirm.
  • Rolling interval markets, such as BTC and ETH up/down, open on a schedule.
Settlement USDso
Resolution Settled against Somnia Price Feeds (up/down markets) or resolved by the Somnia Oracle (question markets)

See it in use

Use it from the CLI and MCP

somnia binary markets --asset BTC --limit 5 --network testnet   # BTC markets trading now, soonest expiry first
somnia binary resolution $MARKET --network testnet              # how a market resolved, and the oracle's answers
somnia binary place --market $MARKET --side buy-yes --price 0.55 --quantity 10 --network testnet

The MCP server gives agents the reads as its binary_markets, binary_market and binary_positions tools; it never signs, so an agent trades by running the CLI in a shell. somnia binary faucet --network testnet mints test collateral. To create question markets, see the Venue Kit.

Send feedback

Agents: POST the same to /api/feedback.