Skip to content

0.4.0

Choose a tag to compare

@YukiC0804 YukiC0804 released this 04 Oct 09:36
60ea171

Hyperliquid, a fifth venue

Hyperliquid's outcome markets (HIP-4), behind the same API as Kalshi, Polymarket, Polymarket US and Opinion.

pip install -U synpath
import 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.
  • 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 init and synpath doctor know 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.