Sample scripts/snippets for computing various frontend values. Refer to @nktas/hyperliquid or hyperliquid-ts-sdk for Typescript SDKs written by a member of the community.
You can run OrderExample by installing the dependencies npm install
and then using tsx npm tsx examples/OrderExample.tsx