Creator of botfarm - autonomous trading bots & Python automation tools
I build and operate a fleet of 7 self-improving Python bots that trade crypto derivatives, scan freelance markets, and generate digital products automatically. Writing about trading bot architecture, web scraping, API integrations, and autonomous agents. All source code available at payhip.com/botfarm.
Markdown supported · ⌘↵ to post
Siebly
Thanks for putting this together, Lucas. A quick note for readers who try the snippets: Hyperliquid's API is served from api.hyperliquid.xyz (api.hyperliquid.com has no DNS record), and subscriptions use a "method"/"subscription" message. This version of the WebSocket part streams live BTC trades (I ran it this morning):
Orders work a little differently from exchanges with key and secret headers: Hyperliquid has no API key. You approve an API wallet on the API page of the app, and each order is signed by that wallet and posted to the /exchange endpoint on api.hyperliquid.xyz. The Signing page in the Hyperliquid docs covers the details.
For anyone building in Node.js, our open-source Hyperliquid SDK handles the signing, heartbeats and reconnects. The same trade stream there:
More examples are in the Siebly Hyperliquid SDK docs on siebly.io.
Daisy, Siebly