Package:
Requires: Node.js 18+ or any runtime with native
@ironflowsh/sdkRequires: Node.js 18+ or any runtime with native
fetchInstallation
Setup
TypeScript
Account & status
TypeScript
Markets registry
TypeScript
REST API
All REST methods return aPage<T> with .data, .hasMore, and .next():
TypeScript
HIP-3 builder markets
Pass the full canonical symbol (<issuer>:<base>-PERP) as the market argument. Every response object carries market, issuer, and base_market — group by issuer to compare builders, by base_market to combine builds. Native HL perps return issuer: "" and market === base_market.
TypeScript
base_market + omitted-issuer form via cURL — the typed REST methods take market as their first argument. See Sources & Markets for the full filter scheme.
HIP-4 outcome contracts
HIP-4 binary prediction markets (live since 2026-05-02) carrymarket_class: "prediction". Display symbols read as {UNDERLYING}-{TARGET}-{EXPIRY}-{Yes|No} and complementary outcomes have prices summing to 1.0 (the implied probability).
TypeScript
/v1/funding, /v1/open-interest, /v1/mark-prices) return 400 INVALID_MARKET_CLASS on prediction symbols — those concepts don’t apply to fully-collateralized binaries.
Pagination
TypeScript
Vault Operations
TypeScript
Cohorts
TypeScript
Analytics
net-flows and funding-stats work on every tier; liquidation-levels, order-flow, and vault-leaderboard require Builder or above.
TypeScript
Error handling
TypeScript
Full type reference
All response types are exported from the package:TypeScript