Market Depth Lab

v0.2.2
io.github.derkcc/market-depth-lab Checked 1 day ago Published 4 months ago

Read-only Hyperliquid, funding-rate and cross-exchange perpetual spread tools.

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

calculate_hyperliquid_fees Calculate Hyperliquid fees

Estimate Hyperliquid spot or perpetual trading fees from notional, maker/taker role, fee tier, discounts, asset multiplier, maker rebate, and builder fee. This is a transparent estimate, not an exchange quote.

ParameterTypeDescription
notional_usd *numberOne-side trade notional.
asset_fee_multipliernumber
builder_fee_bpsnumber
maker_rebate_percentnumber
marketstring
referral_discount_percentnumber
rolestring
sidesnumber1 for entry only, 2 for entry plus exit.
staking_discount_percentnumber
tierintegerHyperliquid fee tier, 0 through 6.

get_hype_market_snapshot Get HYPE market snapshot

Fetch a live HYPE spot/perpetual snapshot from Hyperliquid and convert either HYPE to USD or USD to HYPE. Reports spot-perp basis, 24h spot change, and 24h spot notional when available.

analyze_hyperliquid_wallet Analyze a Hyperliquid wallet

Read the public main-account state for one Hyperliquid address: perpetual positions, spot balances, open orders, recent fills, exposure, leverage, PnL and fee totals. No private key, signature or wallet connection is requested.

ParameterTypeDescription
address *stringPublic EVM wallet address.
recent_fill_limitinteger

hyperliquid_summarize_large_trader_positions Summarize large Hyperliquid trader positions

Aggregate current long and short exposure by market within Market Depth Lab's rolling monitored-address cohort. This is not a protocol-wide holder census or a simultaneous snapshot of every address.

ParameterTypeDescription
directionstring
limitinteger
market_typestring
min_gross_notional_usdnumber
offsetinteger
querystring
sort_bystring

hyperliquid_list_top_position_holders List top position holders in a Hyperliquid market

List the largest current positions for one canonical market inside Market Depth Lab's monitored public-address cohort. Rankings are cohort-relative and the index retains only the published top positions per market.

ParameterTypeDescription
market *stringCanonical market, for example BTC or xyz:NVDA.
address_querystring
limitinteger
min_position_notional_usdnumber
offsetinteger
sidestring
sort_bystring

list_active_hyperliquid_twaps List active Hyperliquid TWAP orders

List publicly visible active Hyperliquid TWAP schedules and estimate current notional using live market references. Schedule time is known; execution progress and unfilled quantity are not inferred.

ParameterTypeDescription
limitinteger
market_typestring
min_estimated_notional_usdnumber
offsetinteger
querystring
sidestring
sort_bystring

hyperliquid_list_funding_rates List Hyperliquid funding rates

List current main-perpetual and HIP-3 funding, open interest, 24h notional and basis. Optionally computes exact trailing-24h funding for only the returned page to limit upstream requests.

ParameterTypeDescription
include_trailing_24hboolean
limitinteger
market_typestring
min_open_interest_usdnumber
offsetinteger
payerstring
querystring
sort_bystring

scan_cross_exchange_funding_spreads Scan cross-exchange perpetual funding spreads

Compare current perpetual funding on Binance USD-M, OKX and Hyperliquid. For each symbol, the scanner pairs a long on the lower hourly funding rate with a short on the higher rate, normalizes different settlement intervals, and estimates gross carry, user-supplied costs and break-even time. It does not place orders or describe the result as risk-free arbitrage.

ParameterTypeDescription
holding_hoursnumber
limitinteger
minimum_annualized_spread_percentnumber
round_trip_cost_bpsnumberUser estimate for all entry, exit, fee and slippage costs across both legs. Zero means gross carry only.
symbolsarrayBase symbols to scan, for example BTC, ETH, SOL or HYPE. Maximum 12 per call.
venuesarrayTwo or three venues to compare.

scan_cross_exchange_perp_price_spreads Scan cross-exchange perpetual price spreads

Compare best bid and ask quotes for selected perpetual symbols on Binance USD-M, OKX and Hyperliquid. The engine ranks the cheapest cross-venue buy against the richest cross-venue sell, reports top-of-book capacity and subtracts configurable taker-fee estimates. It is a persistent-divergence screen, not a latency-arbitrage or order-execution tool.

ParameterTypeDescription
binance_taker_fee_bpsnumber
cost_basisstring
hyperliquid_taker_fee_bpsnumber
limitinteger
minimum_net_bpsnumber
minimum_top_of_book_notional_usdnumber
okx_taker_fee_bpsnumber
symbolsarrayBase symbols to scan, for example BTC, ETH, SOL or HYPE. Maximum 12 per call.
venuesarrayTwo or three venues to compare.