HIP-4 — Outcomes
Discover, trade, and make markets on Hyperliquid outcomes.
Direct orders use <outcome-id>:<side> and the hyperliquid venue.
Discover and trade
mlab markets --exchange hyperliquid --hip 4 --search BTC
mlab markets --exchange hyperliquid --hip 4 --deployer out
mlab trade long 1210:0 --venue hyperliquid --margin 100 --dry-runPython V2
ctx.order({
"exchange": "hyperliquid",
"symbol": "1210:0",
"side": "buy",
"margin": 100,
"order": {"type": "limit", "price": 0.42, "tif": "alo"},
})Market-making bots
Bots take the bare outcome ID:
mlab bot run mid-price 1210 --venue hyperliquid --margin 100 --duration 3600 --dry-runOutcomes do not support leverage, naked shorting, attached SL/TP, or perpetual close operations.
Account actions
mlab outcome split <OUTCOME_ID> --amount <AMOUNT>
mlab outcome merge <OUTCOME_ID> [--amount <AMOUNT>]
mlab outcome merge-question <QUESTION_ID> [--amount <AMOUNT>]
mlab outcome negate <QUESTION_ID> <OUTCOME_ID> --amount <AMOUNT>These actions are not required before running an outcome bot.
See HIP-4 market data.