Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

A Lean API key, sent as Authorization: Bearer <key>. A test key (lean_sk_test_...) simulates orders and fills with no money; a live key (lean_sk_live_...) trades for real within the key's limits. Every successful response says which mode answered in data.livemode.

Body

application/json
market_id
string
required

The market whose YES and NO shares are merged. A venue symbol, such as a Polymarket token id or a Hyperliquid book coin, merges that one listing. A Lean market id works when the market has one listing on venue.

Required string length: 1 - 512
venue
enum<string>
required

The venue whose shares are merged. Kalshi and Polymarket US have no merge.

Available options:
polymarket,
hyperliquid

Response

The merge

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required