hip3pulse

v0.3.1
io.github.HIP3Pulse/hip3pulse Checked 1 day ago Published 10 days ago

Hyperliquid HIP-3 off-hours gap, Cross-DEX Twins L2 scanner, corp-action guard & β/R² hedge radar.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_hip3_dislocations

Dynamically discover active Hyperliquid HIP-3 DEXs (xyz, io, para, mkts), filter thin-book wide-spread noise via native impactGapBps, classify 9 global market sessions (incl. CRYPTO_24_7 & PRE_IPO_INTERNAL), check Nasdaq ex-dividend/split/earnings risk, OI cap utilization, and isolated-only ADL flags.

ParameterTypeDescription
dexstringActive HIP-3 DEX name ('xyz', 'io', 'para', 'mkts', or 'all')
exclude_noisebooleanExclude WIDE_SPREAD_NOISE and PRE_IPO_INTERNAL (default: true)
limitintegerMax results sorted by |impactGapBps|
min_abs_gap_bpsnumberMinimum absolute impactGapBps (default: 15)
min_oi_usdnumberMinimum Open Interest in USD (default: 500000)

diagnose_hip3_contract

Full institutional diagnostic for a single HIP-3 contract: 9-class session state machine, external close anchor drift vs 30m EMA oracle gap, Nasdaq ex-dividend/split/earnings circuit breakers, exact dynamic taker/maker fees (9.0 vs 0.9 bps), L2 slippage, isolated-only ADL & OI cap warnings.

ParameterTypeDescription
coin *stringFull HIP-3 coin symbol, e.g. 'xyz:COST', 'xyz:GOLD', 'xyz:OURA', 'io:PRL', 'xyz:JPY'
notional_usdnumberOrder notional USD for L2 book slippage check (default: 10000)

scan_xstocks_cross_chain_spread

Compare 13 high-liquidity Solana Token-2022 xStocks against Hyperliquid HIP-3 perpetuals using exact live activeMultiplier (scaledUiAmountConfig.state.newMultiplier when effective) and surface upcoming dividend/split rebases.

scan_hip3_cross_dex_twins

Scan same-underlying 1:1 twin perpetual pairs across active Hyperliquid HIP-3 DEXs (xyz, io, para, mkts — including ANT<->ANTH and TCNT<->TENCENT aliases). Computes real L2 orderbook Taker VWAP entry spread, deducts 4-leg Taker fees, computes net annualized funding carry, flags WIDE_BOOK_UNEXECUTABLE illusions, and sorts strictly by executableNetSpreadBps descending.

ParameterTypeDescription
limitintegerMax twin pairs returned
min_oi_usdnumberMinimum Open Interest USD required on BOTH legs (default: 50000)
notional_usdnumberOrder notional USD per leg for real L2 VWAP simulation (default: 2500)

build_beta_hedged_order_plan

Compute asset-class-aware 14-day 1h log-return empirical Beta (β), correlation (ρ), and R² hedge plan. Rejects low-correlation pairs (R² < 0.35 -> HEDGE_REJECTED_LOW_R2), checks same-underlying cross-DEX twins (sameUnderlyingCrossDexTwin), and calculates exact normalized dual-leg round-trip costs & dual-leg net hourly funding carry.

ParameterTypeDescription
coin *stringPrimary HIP-3 contract, e.g. 'xyz:NVDA', 'xyz:CL', 'xyz:SKHX', 'xyz:UNITREE'
notional_usd *numberPrimary leg notional USD (N1) or total notional if budget_mode='total'
budget_modestring'primary' treats notional_usd as N1 (N2 = N1*|beta|); 'total' splits N1 + N2 = notional_usd
builder_fee_bpsnumberOptional Builder Code fee in bps (e.g. 2.0) to include transparently
hedge_coinstringBenchmark hedge coin or 'auto' for asset-class-aware best R² routing

build_hyperliquid_order_payload

Zero-custody Hyperliquid /exchange dual-leg IOC protected limit order payload generator. Automatically splits SINGLE_DEX_BATCH (atomic orders array) vs CROSS_DEX_PARALLEL (2 independent parallel order actions with sequential nonces + userDexAbstraction + reduceOnly legged-fill recovery). Enforces corporate-action & R² >= 0.35 guardrails, computes exact HIP-3 asset IDs, safe 5-sig-fig price formatting, and optional Builder Code.

ParameterTypeDescription
coin *stringPrimary HIP-3 contract, e.g. 'xyz:NVDA', 'xyz:GOLD', 'xyz:SKHX'
notional_usd *numberPrimary leg notional USD (N1)
builder_addressstringOptional Builder 0x address (defaults to HIP3PULSE_BUILDER_ADDRESS env var; omitted if empty)
builder_fee_tenths_bpsintegerBuilder fee in tenths of bps (20 = 2.0 bps; ignored when builder_address is empty)
hedge_coinstringBenchmark hedge coin (e.g. 'PAXG', 'io:SKHX') or 'auto'
max_slippage_bpsnumberIOC limit protection slippage cushion in bps (default: 25)
override_corporate_action_guardbooleanAllow payload generation despite ex-dividend/earnings warning (never overrides SPLIT_SETTLEMENT_HALT)