Repository navigation
0.4.0
Hyperliquid, a fifth venue
Hyperliquid's outcome markets (HIP-4), behind the same API as Kalshi, Polymarket, Polymarket US and Opinion.
pip install -U synpathimport synpath
hl = synpath.Hyperliquid()
markets = hl.fetch_markets(limit=5)
book = hl.fetch_order_book(markets[0].id)- Market data, no key.
- Outcomes and multi-outcome questions (
hyperliquid:q198), with titles rendered from the venue's own templates. - Search over the whole catalog.
- Order books (NO mirrored from YES), recent trades, and candles with volume.
- Fees: charged only when a position closes or settles.
- Outcomes and multi-outcome questions (
- Streams, no key.
HyperliquidMarketStream: books, trades, top of book.HyperliquidUserStream: an account's orders and fills, by address.
- Trading (
HyperliquidTrading).- Limit, market, IOC and post-only orders; batches are one signed action.
- Works with the account's key or an API wallet (
HYPERLIQUID_PRIVATE_KEY,HYPERLIQUID_ACCOUNT_ADDRESS,HYPERLIQUID_TESTNET=1). - Signing matches the venue SDK's own vectors.
synpath initandsynpath doctorknow Hyperliquid.
Hyperliquid's terms bar the US, Ontario and sanctioned places, and some outcome front ends bar more, the UK among them. Check what applies to you before trading with real funds.
Full details: #6.