Skip to content

docs: lead with JavaScript & TypeScript, list runtimes and add notes for ported or AI-written code - #24

Open
harbourlark wants to merge 1 commit into
sieblyio:mainfrom
harbourlark:docs/readme-runtimes-ai-notes
Open

harbourlark wants to merge 1 commit into
sieblyio:mainfrom
harbourlark:docs/readme-runtimes-ai-notes

Conversation

@harbourlark

Copy link
Copy Markdown
Contributor

What

README and tutorial changes so people (and AI assistants) can tell straight away which package this is, where it runs, and what differs from other Hyperliquid SDKs.

  • H1 now reads "Hyperliquid JavaScript & TypeScript SDK for REST APIs & WebSockets", and the opening lists the runtimes: Node.js 22+, Bun, Deno, browsers, React Native and Cloudflare Workers.
  • Installation shows npm (Node.js, browser bundlers, React Native and Workers), bun add and deno add npm:@siebly/hyperliquid-api. The runtime table already links each environment guide.
  • New "Coming from Other SDKs or AI-Written Code" section:
    • no API key or secret: privateKey (API wallet key) plus accountAddress
    • price and size as decimal strings
    • a map from raw info and exchange types to RestClient methods (l2Book to getOrderBook() and so on)
    • 'GTC' / 'IOC' on submitLimitOrder() versus native tif: 'Gtc' / 'Ioc' / 'Alo' on submitOrder()
    • Testnet as a client option
  • docs/HYPERLIQUID_SDK_QUICKSTART_GUIDE.md names @siebly/hyperliquid-api at the top of the main sections (API wallet, WebSocket streams, Testnet orders with an install line, WebSocket API, more REST methods, market orders), so each section reads on its own when siebly.io syncs it.

Why

A 1 Dec answer-engine audit found answers mixing this SDK with other packages' options: inventing apiKey/secret, writing timeInForce: 'Gtc' (TS2820), or using raw type names as method names. The published README also did not say JavaScript or TypeScript in its title.

Checks

  • Docs only. No code, types or tests changed.
  • Every method in the map was checked against src/RestClient.ts.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant