Skip to content

feat(v1.0.4): exchangeCode on HyperliquidApiError, insufficientWeiCanceled status - #15

Merged
tiagosiebler merged 2 commits into
sieblyio:mainfrom
JJ-Cro:update16112026
Nov 19, 2026
Merged

tiagosiebler merged 2 commits into
sieblyio:mainfrom
JJ-Cro:update16112026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Expose the numeric error code from Hyperliquid node errors and add a new order status.

Changelog

  • Add insufficientWeiCanceled to the order status union (returned by Hyperliquid, not yet in their docs)
  • HyperliquidApiError now has an optional numeric exchangeCode, parsed from Unexpected error (code=N) responses; message, response and code are unchanged
  • Bump .nvmrc to v24.22.3
  • Version 1.0.4

Checks

  • npm run lint, tsc --noEmit, npm run test:types, npm run test:unit (189 tests), npm run build: pass
  • Endpoint docs, examples/apidoc and llms.txt regenerated with the regex runner

JJ-Cro and others added 2 commits November 16, 2026 12:14
- Add support for the insufficientWeiCanceled order status.
- Expose numeric Hyperliquid node errors as exchangeCode while preserving messages, responses and Axios codes.
- Release SDK version 1.0.4 and update the Node.js pin to v24.22.3.

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiagosiebler
tiagosiebler merged commit ab89d81 into sieblyio:main Nov 19, 2026
1 check failed
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.

2 participants