<<< Typescript SDK for the Hyperliquid API >>>
npm install @hyper-d3x/hyperliquid-ts-sdk
npm i -S @hyper-d3x/hyperliquid-ts-sdk
`
or yarn:
`
yarn add @hyper-d3x/hyperliquid-ts-sdk
`
Usage
`typescript
import { Hyperliquid } from '@hyper-d3x/hyperliquid-ts-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
``