Skip to main content
Package: @ironflowsh/sdk (0.6.0)
Requires: Node.js 18+ or any runtime with native fetch
The SDK is deprecated (0.6.1, no longer maintained) and needs an API key for every data call. Use the REST API with plain fetch (see the Quickstart), or the MCP server from an AI agent.

Installation

Setup

TypeScript

Account & status

TypeScript

Markets registry

TypeScript
This endpoint reads the registry directly — no per-tier query window applies.

REST API

All REST methods return a Page<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
For cross-issuer queries (every builder’s GOLD-PERP in one call) use the 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) carry market_class: "prediction". Display symbols read as {UNDERLYING}-{TARGET}-{EXPIRY}-{Yes|No} and complementary outcomes have prices summing to 1.0 (the implied probability).
TypeScript
Perp-only endpoints (/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 and vault-leaderboard return a sample without a key and everything with any key (a free key works). order-flow is retired and answers 410.
TypeScript

Error handling

TypeScript

Full type reference

All response types are exported from the package:
TypeScript