<<< Typescript SDK for the Hyperliquid API >>>
npm install hyperliquid-sdk
npm i -S hyperliquid-sdk
`
or yarn:
`
yarn add hyperliquid-sdk
`
Usage
`typescript
import { Hyperliquid } from 'hyperliquid-sdk';const wallet = new ethers.Wallet(); // or any other BaseWallet compatible
const sdk = new Hyperliquid(wallet);
await sdk.info.getAllMids();
`Examples
Run the CLI script for NodeJS applications, using the CLI playground (from root):
`
npm run playground-cli
`
or run the ReactJS application with the integrated SDK, using command (from root):
`
npm run playground-reactjs
``