@deeeed/hyperliquid-node20
Version:
Unofficial Hyperliquid API SDK for all major JS runtimes, written in TypeScript. Fork with Node.js 20.18.0+ compatibility.
26 lines (25 loc) • 527 B
JavaScript
;
/**
* This module contains all types related to the Hyperliquid API.
*
* @example
* ```ts
* import type { OrderParams } from "@nktkas/hyperliquid/types";
*
* const myOrder: OrderParams = {
* a: 0, // Asset index
* b: true, // Buy order
* p: "30000", // Price
* s: "0.1", // Size
* r: false, // Not reduce-only
* t: {
* limit: {
* tif: "Gtc", // Good-til-cancelled
* },
* },
* };
* ```
*
* @module
*/
Object.defineProperty(exports, "__esModule", { value: true });